Skip to content

carbon_black_cloud,sentinel_one: ensure consistent ordering of arrays - #4296

Merged
efd6 merged 1 commit into
elastic:mainfrom
efd6:setorder
Sep 26, 2022
Merged

carbon_black_cloud,sentinel_one: ensure consistent ordering of arrays#4296
efd6 merged 1 commit into
elastic:mainfrom
efd6:setorder

Conversation

@efd6

@efd6 efd6 commented Sep 26, 2022

Copy link
Copy Markdown
Contributor

There has been a change in behaviour in the set iteration order between v8.3.3 and v8.4.1, so sort the array to ensure a stable order for testing.

In carbon_black the multiple argument appends with allow_duplicates=false also leads to a change in array ordering. The cause for this is less clear, but sort the array to work around the issue.

What does this PR do?

This ensures that arrays which showed unstable ordering between v8.3.3 and v8.4.1 are consistently ordered explicitly.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Screenshots

@efd6 efd6 added bug Something isn't working, use only for issues Team:Security-External Integrations Integration:carbon_black_cloud VMware Carbon Black Cloud Integration:sentinel_one SentinelOne labels Sep 26, 2022
@efd6 efd6 self-assigned this Sep 26, 2022
@efd6
efd6 force-pushed the setorder branch 2 times, most recently from f56b933 to 52e8c85 Compare September 26, 2022 02:09
@efd6 efd6 changed the title carbon_black_cloud,sentinel_one: ensure consisten ordering of arrays carbon_black_cloud,sentinel_one: ensure consistent ordering of arrays Sep 26, 2022
@elasticmachine

elasticmachine commented Sep 26, 2022

Copy link
Copy Markdown

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2022-09-26T03:58:04.693+0000

  • Duration: 17 min 58 sec

Test stats 🧪

Test Results
Failed 0
Passed 124
Skipped 0
Total 124

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@elasticmachine

elasticmachine commented Sep 26, 2022

Copy link
Copy Markdown

🚀 Benchmarks report

Package carbon_black_cloud 👍(3) 💚(1) 💔(1)

Expand to view
Data stream Previous EPS New EPS Diff (%) Result
asset_vulnerability_summary 9615.38 7874.02 -1741.36 (-18.11%) 💔

To see the full report comment with /test benchmark fullreport

@elasticmachine

elasticmachine commented Sep 26, 2022

Copy link
Copy Markdown

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (10/10) 💚
Files 100.0% (10/10) 💚 2.5
Classes 100.0% (10/10) 💚 2.5
Methods 98.507% (132/134) 👍 8.092
Lines 96.957% (3728/3845) 👍 6.639
Conditionals 100.0% (0/0) 💚

@efd6
efd6 marked this pull request as ready for review September 26, 2022 03:22
@efd6
efd6 requested a review from a team as a code owner September 26, 2022 03:22
@elasticmachine

Copy link
Copy Markdown

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

There has been a change in behaviour in the set iteration order between v8.3.3
and v8.4.1, so sort the array to ensure a stable order for testing.

In carbon_black the multiple argument appends with allow_duplicates=false also
leads to a change in array ordering. The cause for this is less clear, but sort
the array to work around the issue.
@efd6

efd6 commented Sep 26, 2022

Copy link
Copy Markdown
Contributor Author

/test

@efd6
efd6 merged commit c06f8ff into elastic:main Sep 26, 2022
@efd6
efd6 deleted the setorder branch February 5, 2025 22:06
orestisfl pushed a commit to orestisfl/integrations that referenced this pull request May 15, 2026
…elastic#4296)

There has been a change in behaviour in the set iteration order between v8.3.3
and v8.4.1, so sort the array to ensure a stable order for testing.

In carbon_black the multiple argument appends with allow_duplicates=false also
leads to a change in array ordering. The cause for this is less clear, but sort
the array to work around the issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working, use only for issues Integration:carbon_black_cloud VMware Carbon Black Cloud Integration:sentinel_one SentinelOne

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants