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

ci: pass run condition to reusable workflow #9771

Merged
merged 15 commits into from
Dec 31, 2024

Conversation

mitsudome-r
Copy link
Member

@mitsudome-r mitsudome-r commented Dec 24, 2024

Description

This PR resolves the issue raised in #9769 by alternative method.

This PR:

For the details, please refer to the comment here.

Related links

How was this PR tested?

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@mitsudome-r mitsudome-r requested a review from xmfcx December 24, 2024 22:14
@github-actions github-actions bot added the type:ci Continuous Integration (CI) processes and testing. (auto-assigned) label Dec 24, 2024
Copy link

github-actions bot commented Dec 24, 2024

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@mitsudome-r mitsudome-r added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Dec 24, 2024
@xmfcx
Copy link
Contributor

xmfcx commented Dec 24, 2024

Thanks, you need to do the same for the clang tidy one as well.

@mitsudome-r mitsudome-r force-pushed the modify-workflow-condition branch from 9540240 to 4b96407 Compare December 24, 2024 23:52
@xmfcx xmfcx requested a review from sasakisasaki December 27, 2024 07:29
@xmfcx xmfcx force-pushed the modify-workflow-condition branch from 4b96407 to b6c0d68 Compare December 30, 2024 11:09
Copy link

codecov bot commented Dec 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 28.77%. Comparing base (c8e0040) to head (86186e1).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9771      +/-   ##
==========================================
- Coverage   28.77%   28.77%   -0.01%     
==========================================
  Files        1457     1457              
  Lines      109219   109228       +9     
  Branches    42567    42571       +4     
==========================================
  Hits        31432    31432              
- Misses      74706    74715       +9     
  Partials     3081     3081              
Flag Coverage Δ *Carryforward flag
differential 0.00% <ø> (?) Carriedforward from c360775
differential-cuda 0.00% <ø> (?)
total 28.77% <ø> (ø) Carriedforward from c360775

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions github-actions bot added the component:perception Advanced sensor data processing and environment understanding. (auto-assigned) label Dec 30, 2024
@xmfcx
Copy link
Contributor

xmfcx commented Dec 30, 2024

Tests - 01 ❌

🖱️Click here to expand🔛

Normal Package Modification

🟢 Good Change

image

🔴 Bad Change

image

CUDA Package Modification

🟢 Good Change

image

I'll fix this and re-run the tests.

@xmfcx xmfcx force-pushed the modify-workflow-condition branch from 2af88df to 9a8f0a1 Compare December 30, 2024 12:36
@github-actions github-actions bot removed the component:perception Advanced sensor data processing and environment understanding. (auto-assigned) label Dec 30, 2024
@xmfcx
Copy link
Contributor

xmfcx commented Dec 30, 2024

Tests - 02 ❌

🖱️Click here to expand🔛

Normal Package Modification

🟢 Good Change

image

🔴 Bad Change

image

CUDA Package Modification

🟢 Good Change

image

🔴 Bad Change

image

@xmfcx xmfcx force-pushed the modify-workflow-condition branch from 9a8f0a1 to ff1db9d Compare December 30, 2024 12:42
Signed-off-by: M. Fatih Cırıt <[email protected]>
@xmfcx xmfcx force-pushed the modify-workflow-condition branch from ff1db9d to 45bdd84 Compare December 30, 2024 12:43
@github-actions github-actions bot added the component:perception Advanced sensor data processing and environment understanding. (auto-assigned) label Dec 30, 2024
Signed-off-by: M. Fatih Cırıt <[email protected]>
@xmfcx xmfcx force-pushed the modify-workflow-condition branch from 2468053 to ddf48c8 Compare December 30, 2024 14:27
@github-actions github-actions bot removed the component:perception Advanced sensor data processing and environment understanding. (auto-assigned) label Dec 30, 2024
@xmfcx
Copy link
Contributor

xmfcx commented Dec 30, 2024

Tests - 03 ❌

🖱️Click here to expand🔛

Normal Package Modification

🟢 Good Change

image

🔴 Bad Change

image

CUDA Package Modification

🟢 Good Change

image

🔴 Bad Change

image

No Package Modification

Without Label 🔴

image

@github-actions github-actions bot added the component:perception Advanced sensor data processing and environment understanding. (auto-assigned) label Dec 30, 2024
@xmfcx xmfcx removed component:perception Advanced sensor data processing and environment understanding. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) labels Dec 30, 2024
Signed-off-by: M. Fatih Cırıt <[email protected]>
@xmfcx xmfcx force-pushed the modify-workflow-condition branch from 9353e10 to 49394be Compare December 30, 2024 15:27
@xmfcx
Copy link
Contributor

xmfcx commented Dec 30, 2024

@xmfcx xmfcx added run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) and removed run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) labels Dec 30, 2024
Signed-off-by: M. Fatih Cırıt <[email protected]>
@xmfcx xmfcx force-pushed the modify-workflow-condition branch from 9924ad4 to c7b932f Compare December 30, 2024 15:57
@xmfcx xmfcx added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Dec 30, 2024
Signed-off-by: M. Fatih Cırıt <[email protected]>
Signed-off-by: M. Fatih Cırıt <[email protected]>
Signed-off-by: M. Fatih Cırıt <[email protected]>
@github-actions github-actions bot added the component:perception Advanced sensor data processing and environment understanding. (auto-assigned) label Dec 30, 2024
Signed-off-by: M. Fatih Cırıt <[email protected]>
Signed-off-by: M. Fatih Cırıt <[email protected]>
@github-actions github-actions bot removed the component:perception Advanced sensor data processing and environment understanding. (auto-assigned) label Dec 30, 2024
Copy link
Contributor

@xmfcx xmfcx left a comment

Choose a reason for hiding this comment

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

@mitsudome-r Could you also confirm the changes?

@mitsudome-r
Copy link
Member Author

@xmfcx Thanks, the modification looks fine.

FYI, in Test 3, you said

Without Label 🔴
It skipped build-and-test-differential sub-jobs. Needs to be fixed.
Fixed in: 49394be
you need additional fix

but I don't think it's a necessary change.
If we skip the sub-jubs, the status check in a PR will tell a developer that it is expecting for the results from the build-and-test-differential jobs, which is fine. The current change will report that the build-and-test-differential & build-and-test-differential have succeeded (skipped).
Either should be okay as long as we set the require-label as status checks.

@xmfcx
Copy link
Contributor

xmfcx commented Dec 31, 2024

but I don't think it's a necessary change.
If we skip the sub-jubs, the status check in a PR will tell a developer that it is expecting for the results from the build-and-test-differential jobs, which is fine.

We should not send the users mixed signals about skipping and failing. If I didn't make this change, It would show the build and test differential job as expected but it would never come up. Maybe the user would wait for a runner ro pick it up. It's not clear why it is yellow like this:

Screenshot_20241231_044131_Chrome

And would be the only occasion where we would have a job skipped but at the same time we would show it as yellow "expected".

With the fix, it show as skipped because it will be skipped.

The current change will report that the build-and-test-differential & build-and-test-differential have succeeded (skipped).

The CI treats skipping as success, yes. But this doesn't mean that the job was already skipped.
Showing it as yellow "expected" is more confusing. And require-label job will be the only failing check in this case, making it easier to spot for developers.

@mitsudome-r
Copy link
Member Author

okay, let's keep it consistent.

@xmfcx xmfcx merged commit 33b9913 into autowarefoundation:main Dec 31, 2024
25 of 26 checks passed
kyoichi-sugahara pushed a commit to kyoichi-sugahara/autoware.universe that referenced this pull request Jan 6, 2025
Signed-off-by: Ryohsuke Mitsudome <[email protected]>
Co-authored-by: M. Fatih Cırıt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) type:ci Continuous Integration (CI) processes and testing. (auto-assigned)
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants