Skip to content

NMS-20341: Improve files we store under evidence folder for flaky tests - #8882

Open
mershad-manesh wants to merge 6 commits into
foundation-2026from
mem/NMS-20341
Open

mershad-manesh wants to merge 6 commits into
foundation-2026from
mem/NMS-20341

Conversation

@mershad-manesh

Copy link
Copy Markdown
Contributor

All Contributors

External References

@cgorantla cgorantla left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Change /target/logs/${SIMPLE_CLASS}* to /target/logs/${TEST_CLASS}- and match only the test-level directory. That stops ThresholdingIT from grabbing SentinelThresholdingIT logs, and stops each container folder from being copied twice.
  2. Keep container logs out of ~/test-results. That path is what store_test_results parses as JUnit output. Copy the non-XML evidence to a sibling folder and store only that as an artifact.

@cgorantla cgorantla left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we also copy target/logs/startup-failures into ${FLAKY_EVIDENCE_DIR} after the per-class loop?

This will give us logs when containers doesn't start properly

@mershad-manesh

Copy link
Copy Markdown
Contributor Author

Could we also copy target/logs/startup-failures into ${FLAKY_EVIDENCE_DIR} after the per-class loop?

This will give us logs when containers doesn't start properly

good idea, but we should copy it per attempt.
If we want to make that file to be per-class, then we need to change how we create that file.

cgorantla
cgorantla previously approved these changes Sep 25, 2026

@cgorantla cgorantla left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants