-
Notifications
You must be signed in to change notification settings - Fork 54
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
test: Add PR number to build info and share test caches #219
test: Add PR number to build info and share test caches #219
Conversation
When filtering builds for a CI run and the commit ID is printed for an image that was already built, also print the PR number (and URL) if it's set.
The same way we print a list of image configurations built in a specific CI run, let's also print a list of configurations built in the same PR (identified by the CI_COMMIT_BRANCH). Again, this makes it a bit more convenient to check which images were rebuilt in a PR, but we should eventually use this information to inform PR authors and reviewers of changes in image definitions.
These have already been set in the repository config.
Set the cache root to be under the working directory. This is used for rpmmd and the build info downloaded from S3. By putting it in the working directory, we can share the cache with subsequent pipelines to speed up subsequent runs.
The test cache holds the RPM metadata for depsolving (rpmmd) and a local copy of the build info from s3. Caching it and sharing it between jobs should speed up config generation.
2728ea3
to
048ecfb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't judge how the cache bits work, but the PR info looks good! Thank you so much for this - CI speedups ftw ❤️
Looking at the numbers of the jobs, it doesn't seem to have had much of an effect. Maybe there's a smarter way to do it, but I think it doesn't hurt to keep it. |
I want to add a starter job that pulls in all the |
This PR makes two small changes to the test pipelines:
check-build-coverage
jobs. Eventually, we can use this information to add messages to the PR so it's easier to track what is being built by each pipeline run.