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

chore(ci): change way to get modified files for cppcheck #7610

Merged
merged 4 commits into from
Jun 21, 2024

Conversation

HansRobo
Copy link
Member

@HansRobo HansRobo commented Jun 20, 2024

Description

I tried to apply the knowledge gained from autowarefoundation/get-modified-packages action's development to cppcheck workflow.
autowarefoundation/autoware-github-actions#299

This PR fixes the issue where diffs could not be obtained correctly when the branch is not up-to-date.

Tests performed

when the branch is up-to-date

image
https://github.com/autowarefoundation/autoware.universe/actions/runs/9596328091/job/26462963086

when the branch is not up-to-date

image
https://github.com/autowarefoundation/autoware.universe/actions/runs/9596328104/job/26495780548#step:7:8

Effects on system behavior

Not applicable.

Interface changes

N/A

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

Signed-off-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
@github-actions github-actions bot added the type:ci Continuous Integration (CI) processes and testing. (auto-assigned) label Jun 20, 2024
HansRobo added 2 commits June 20, 2024 20:02
Signed-off-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
Signed-off-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
@HansRobo HansRobo marked this pull request as ready for review June 21, 2024 00:50
@HansRobo HansRobo requested review from kminoda and veqcc June 21, 2024 00:50
@HansRobo HansRobo added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Jun 21, 2024
@HansRobo HansRobo changed the title chore(ci): change way to modified files for cppcheck chore(ci): change way to get modified files for cppcheck Jun 21, 2024
@HansRobo HansRobo enabled auto-merge (squash) June 21, 2024 02:00
Copy link
Contributor

@veqcc veqcc left a comment

Choose a reason for hiding this comment

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

Thank you !!

@HansRobo HansRobo merged commit bdc8503 into autowarefoundation:main Jun 21, 2024
24 checks passed
@HansRobo HansRobo deleted the fix/cppcheck-differential branch June 21, 2024 02:55
simon-eisenmann-driveblocks pushed a commit to simon-eisenmann-driveblocks/autoware.universe that referenced this pull request Jun 26, 2024
…ndation#7610)

* chore(ci): change way to modified files for cppcheck

Signed-off-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>

* fix(ci): use correct base ref in cppcheck differential

Signed-off-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>

* chore: remove typo

Signed-off-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>

---------

Signed-off-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
Signed-off-by: Simon Eisenmann <simon.eisenmann@driveblocks.ai>
KhalilSelyan pushed a commit that referenced this pull request Jul 22, 2024
* chore(ci): change way to modified files for cppcheck

Signed-off-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>

* fix(ci): use correct base ref in cppcheck differential

Signed-off-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>

* chore: remove typo 

Signed-off-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>

---------

Signed-off-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
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
None yet
Development

Successfully merging this pull request may close these issues.

2 participants