Skip to content

Conversation

@pietroalbini
Copy link
Member

Before this PR, to retrieve the XML file to upload from Buildomat to Trunk we relied on hardcoding the supported job names and using the artifacts published with Buildomat's [[publish]].

While investigating why Trunk wasn't marking tests as flaky (even after retrying the same job multiple times), Rain discovered that the published artifact remained the same even after retrying CI on the same commit. Turns out this was intended behavior, as Buildomat doesn't allow overriding already published artifacts.

To temporarily work around the problem, this PR switches the Trunk integration to scrape the HTML details page looking for junit.xml files. Hopefully once Buildomat provides a better way to retrieve the file we will be able to remove the hacky scraping code.

More details on the rationale and the options considered is available in code comments.

Copy link
Contributor

@sunshowers sunshowers left a comment

Choose a reason for hiding this comment

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

Thanks for doing this.

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