Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update build triage script to include pipeline analysis #3692

Merged
merged 9 commits into from
Mar 8, 2024

Conversation

adamfarley
Copy link
Contributor

This update primarily allows the script to correctly identify
tag-driven build pipelines. JDK8 has three types of these, and
all types should be located where possible.

We can also ignore pipelines that are still running, as these will
have incomplete results.

User-launched pipelines will also be ignored, as the script cannot
yet spot the difference between a rerun using default options,
and an experimental rerun whose outcome should not be used to
indicate the overall health of the build system.

I have also repaired the bug where unstable builds are erroneously
included in the list of failed builds. Unstable builds are typically
passed builds which have a number of failed post-build unit tests.

Lastly, we no longer expect arm32 builds on JDK21 and up.

Minor cosmetic improvements included.

This update primarily allows the script to correctly identify
tag-driven build pipelines. JDK8 has three types of these, and
all types should be located where possible.

We can also ignore pipelines that are still running, as these will
have incomplete results.

User-launched pipelines will also be ignored, as the script cannot
yet spot the difference between a rerun using default options,
and an experimental rerun whose outcome should not be used to
indicate the overall health of the build system.

I have also repaired the bug where unstable builds are erroneously
included in the list of failed builds. Unstable builds are typically
passed builds which have a number of failed post-build unit tests.

Lastly, we no longer expect arm32 builds on JDK21 and up.

Minor cosmetic improvements included.

Signed-off-by: Adam Farley <[email protected]>
@adamfarley adamfarley self-assigned this Mar 7, 2024
@github-actions github-actions bot added arm Issues that affect or relate to the ARM OS testing Issues that enhance or fix our test suites labels Mar 7, 2024
@adamfarley
Copy link
Contributor Author

Tested here: https://github.com/adamfarley/temurin-build/actions/runs/8190313614/job/22397008637
Output issue here: adamfarley#65

Linter in progress.

Signed-off-by: Adam Farley <[email protected]>
Signed-off-by: Adam Farley <[email protected]>
Because the build triage script has no effect on the
build pipeline, and this action wastes user time and machine time.

Signed-off-by: Adam Farley <[email protected]>
@adamfarley
Copy link
Contributor Author

Made several style changes to satisfy the linter, and also improved logging.

Also excluded the "build" github action for future build triage script changes.

We don't need to test the build process against changes to the triage script, because build triage happens after the build pipeline is complete.

@adamfarley adamfarley force-pushed the update_build_triage_script branch from 4f586c5 to fe4fead Compare March 8, 2024 12:22
Putting the new trigger at the end causes failure. Reordering.

Signed-off-by: Adam Farley <[email protected]>
@adamfarley
Copy link
Contributor Author

Added a couple of updates to the autotriage workflow:

  • This workflow can now be run manually from the website if needed (for testing improvements).
    image
  • Amended the first few lines to make the action name display correctly on the web interface.

The latest code changes were tested here: https://github.com/adamfarley/temurin-build/actions/runs/8203403503
With the output issue located here: adamfarley#66

@adamfarley
Copy link
Contributor Author

Ready for reviews. Adding a link to #temurin-build Slack.

Copy link
Contributor

@andrew-m-leonard andrew-m-leonard left a comment

Choose a reason for hiding this comment

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

lgtm

@adamfarley
Copy link
Contributor Author

adamfarley commented Mar 8, 2024

Also, I tested the build.yml change here:

adamfarley#68

I tested it by cloning this branch into a false "master" branch in my fork, and by making trivial changes to the build triage script in a second branch of this branch, before creating a PR from one to the other.

The change to the build triage script should now not trigger the build workflow.

Update: Confirmed.

Copy link
Contributor

@steelhead31 steelhead31 left a comment

Choose a reason for hiding this comment

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

LGTM

@adamfarley adamfarley merged commit 3347a4f into adoptium:master Mar 8, 2024
22 of 23 checks passed
@adamfarley adamfarley deleted the update_build_triage_script branch July 10, 2024 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arm Issues that affect or relate to the ARM OS testing Issues that enhance or fix our test suites
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants