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

fixing Covscan PR target #386

Merged
merged 1 commit into from
Apr 24, 2024
Merged

fixing Covscan PR target #386

merged 1 commit into from
Apr 24, 2024

Conversation

simo5
Copy link
Member

@simo5 simo5 commented Apr 24, 2024

Description

The Coverity Scan job that runs on PRs is supposed to pull the PR code when running in the pull_request_target case, but it is sourcing the incorrect ref.

Also The Coverity Scan is blocking, but we do not want to run it when there are no code changes, so add a new no-covscan label that makes the test pass w/o running one of the 4 covscan jobs/day we are allowed.

Checklist

  • Test suite updated

Reviewer's checklist:

  • Any issues marked for closing are addressed
  • There is a test suite reasonably covering new functionality or modifications
  • This feature/change has adequate documentation added
  • Code conform to coding style that today cannot yet be enforced via the check style test
  • Commits have short titles and sensible commit messages
  • Coverity Scan has run if needed (code PR) and no new defects were found

@simo5 simo5 added the covscan Triggers Coverity Scanner label Apr 24, 2024
@github-actions github-actions bot removed the covscan Triggers Coverity Scanner label Apr 24, 2024
@simo5 simo5 added the no-covscan-obsolete-label Do not use this label label Apr 24, 2024
This commit attempts to source the correct PR code in PR Cov Scans
It is not directly testable as pull_request_target code is only
really run after a PR is merged to main (by design).

This commit also adds support for a no-covscan label so that PRs
can be merged w/o running a covscan and yet having all tragets
met and not requiring to override the project policy at merge time

Signed-off-by: Simo Sorce <[email protected]>
@simo5 simo5 force-pushed the coverity_label_2 branch from 8fcac00 to 90da145 Compare April 24, 2024 16:34
@simo5 simo5 added no-covscan-obsolete-label Do not use this label and removed no-covscan-obsolete-label Do not use this label labels Apr 24, 2024
@simo5
Copy link
Member Author

simo5 commented Apr 24, 2024

Merging this in the hope the changes to coverity scan work as intended.
If not I will open another PR

@simo5 simo5 merged commit e96c973 into latchset:main Apr 24, 2024
26 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-covscan-obsolete-label Do not use this label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant