-
Notifications
You must be signed in to change notification settings - Fork 594
HDDS-5000. Run CI checks selectively #2479
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
Conversation
Co-authored-by: GeorgeJahad <github@blackbirdsystems.net>
|
I like the new bats script a lot. A couple of questions:
which I fixed like so: Was I running it wrong?
Everything else looks good. I like how the 3 functions were unified. |
Ideally it should, but I know it currently does not. Filed HDDS-5559 for follow-up.
Thank you for trying it. The only difference is that I used a bit newer version of bats (and its libraries).
Thanks, added with updated URLs. |
|
Hi @adoroszlai this PR seems to be very useful to reduce our build burden on available resources in github actions. So thank you very much to taking this on. One question... do we have any general documentation about our CI flow, and how the different parts are working together based on what rules? If not, then it would be a nice follow up to document it together with how this part of the CI system is working in the project, if we already have something it would be great to extend with some docs for new selective checks. |
@adoroszlai @fapifta I can write something up if you want, but won't have time for a week or so. I would create a separate PR for that. Let me know if that would be helpful. |
|
@GeorgeJahad sounds good to me unless Attila insists on doing it :) Would you mind create a separate JIRA to track the effort, and link it to HDDS-5000 as well? |
|
Thanks @GeorgeJahad for the offer. Please feel free to take HDDS-5609. |
fapifta
left a comment
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.
@GeorgeJahad as I believe your questions were addressed just as mine, I am +1 to commit the changes. Please let Attila know if anything is missig still.
|
Great work @adoroszlai and @GeorgeJahad! I am waiting for this PR to be committed. |
I've checked all the most recent changes. Everything looks good to me too! |
|
Thanks @fapifta, @GeorgeJahad and @vivekratnavel for the reviews. |
* master: HDDS-5358. Incorrect cache entry invalidation causes intermittent failure in testGetS3SecretAndRevokeS3Secret (apache#2518) HDDS-5608. Fix wrong command in ugrade doc (apache#2524) HDDS-5000. Run CI checks selectively (apache#2479) HDDS-4929. Select target datanodes and containers to move for Container Balancer (apache#2441) HDDS-5283. getStorageSize cast to int can cause issue (apache#2303) HDDS-5449 Recon namespace summary 'du' information should return replicated size of a key (apache#2489) HDDS-5558. vUnit invocation unit() may produce NPE (apache#2513) HDDS-5531. For Link Buckets avoid showing metadata. (apache#2502) HDDS-5549. Add 1.1 to supported versions in security policy (apache#2519) HDDS-5555. remove pipeline manager v1 code (apache#2511) HDDS-5546.OM Service ID change causes OM startup failure. (apache#2512) HDDS-5360. DN failed to process all delete block commands in one heartbeat interval (apache#2420) HDDS-5021. dev-support Dockerfile is badly outdated (apache#2480)
* master: HDDS-5358. Incorrect cache entry invalidation causes intermittent failure in testGetS3SecretAndRevokeS3Secret (apache#2518) HDDS-5608. Fix wrong command in ugrade doc (apache#2524) HDDS-5000. Run CI checks selectively (apache#2479) HDDS-4929. Select target datanodes and containers to move for Container Balancer (apache#2441) HDDS-5283. getStorageSize cast to int can cause issue (apache#2303) HDDS-5449 Recon namespace summary 'du' information should return replicated size of a key (apache#2489) HDDS-5558. vUnit invocation unit() may produce NPE (apache#2513) HDDS-5531. For Link Buckets avoid showing metadata. (apache#2502) HDDS-5549. Add 1.1 to supported versions in security policy (apache#2519) HDDS-5555. remove pipeline manager v1 code (apache#2511) HDDS-5546.OM Service ID change causes OM startup failure. (apache#2512) HDDS-5360. DN failed to process all delete block commands in one heartbeat interval (apache#2420) HDDS-5021. dev-support Dockerfile is badly outdated (apache#2480)
What changes were proposed in this pull request?
Introduce a new job (
build-info) in the CI workflow to determine which other jobs should be run. The goal is to skip checks which are not applicable to a specific change.hadoop-hdds/docsBig thanks to Apache Airflow for the libraries and large chunks of the script.
https://issues.apache.org/jira/browse/HDDS-5000
How was this patch tested?
Created test pull requests in my own fork:
Main one with various incremental changes to verify the tests being triggered:
adoroszlai#22
One with full tests needed label, triggers all tests:
adoroszlai#23
Robot test change (minor improvement over the main PR):
adoroszlai#24
Regular CI:
https://github.com/adoroszlai/hadoop-ozone/actions/runs/1082718710
I have also added a bats-based test suite. It is not run as part of CI currently, because it uses optional bats libraries. I haven't figured out how best to integrate in a developer-friendly way (HDDS-5559). But at least it can be run manually and I found it saves lots of time (not having to open lots of PRs in my fork).