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] Fix install of PPA clang-tidy in config coverage job #3678

Merged

Conversation

whisperity
Copy link
Contributor

@whisperity whisperity commented Jun 8, 2022

GitHub seems to have modified the base Ubuntu image which now comes with a specific version of clang-tidy pre-installed.

The change happened last week because the job 10 days ago was successfully executed, while 3 days ago (last Sunday), we started observing the following failures across multiple projects:

  update-alternatives: error: alternative clang-tidy can't be slave of clang: it is a master alternative
  Error: Process completed with exit code 2.

Changing over to registering two top-level alternatives entries fixes the issue.

Mirrors whisperity/CodeChecker-Action#3

@whisperity whisperity added dev env ⛑️ Development environment CI 📦 analyzer 📈 Related to the analyze commands (analysis driver) config ⚙️ labels Jun 8, 2022
@whisperity whisperity requested review from dkrupp and steakhal June 8, 2022 10:33
GitHub seems to have modified the base Ubuntu image which now comes with
a specific version of `clang-tidy` pre-installed.
@whisperity whisperity force-pushed the fix/config-coverage-tidy-install branch from 72e3f97 to 45825a7 Compare June 8, 2022 10:47
@steakhal
Copy link
Contributor

steakhal commented Jun 8, 2022

It seems like we got a couple new checkers in the meanwhile, failing the checker-config-coverage ci step.
Could you please have a look? @whisperity

@whisperity
Copy link
Contributor Author

whisperity commented Jun 8, 2022

@steakhal That is normal! That job failing with the "non-configured checks" list getting emitted means that the script is doing its job. The issue this PR is fixing is that the job itself was unable to reach the stage where it can compare the list of checks, because installing Clang did not succeed.

- 'config/labels/analyzers/clang-tidy.json'
- 'config/labels/analyzers/clangsa.json'
pull_request:
paths:
- '.github/workflow/config_coverage.yml'
- '.github/workflow/config_label_check.py'
- '.github/workflows/config_coverage.yml'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bruntib This is why it wasn't working in the original PR #3367... typos...

@whisperity whisperity added this to the release 6.20.0 milestone Jun 9, 2022
Copy link
Contributor

@vodorok vodorok left a comment

Choose a reason for hiding this comment

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

LGTM

@vodorok vodorok merged commit 6faf7c8 into Ericsson:master Jun 9, 2022
@whisperity whisperity deleted the fix/config-coverage-tidy-install branch July 19, 2022 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer 📈 Related to the analyze commands (analysis driver) CI 📦 config ⚙️ dev env ⛑️ Development environment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants