-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Use cmake only for sonarcloud #13771
Closed
balaji-srin
wants to merge
49
commits into
nrfconnect:main
from
balaji-srin:use_cmake_only_for_sonarcloud
Closed
Use cmake only for sonarcloud #13771
balaji-srin
wants to merge
49
commits into
nrfconnect:main
from
balaji-srin:use_cmake_only_for_sonarcloud
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add workflow that rebases from ncs/main and creates a PR Signed-off-by: Balaji Srinivasan <[email protected]>
Add sonarcloud workflow Signed-off-by: Balaji Srinivasan <[email protected]>
The workflow now invokes sonarcloud with coverage option. This will make sonarcloud UI show code coverage data. Signed-off-by: Balaji Srinivasan <[email protected]>
Removed building of atv2 on all integration platforms because I am not sure if invoking build wrapper twice, once for building atv2 for integration platforms and once again for native_posix will work. Run tests separately after building. Running the tests under build wrapper fails mysterously for certain tests (lwm2m_* tests). Signed-off-by: Balaji Srinivasan <[email protected]>
This avoids code owners (with access to my fork) getting PR requests. Signed-off-by: Balaji Srinivasan <[email protected]>
Run all native_posix tests in sdk-nrf repo. Signed-off-by: Balaji Srinivasan <[email protected]>
Exclude modules from analysis. Signed-off-by: Balaji Srinivasan <[email protected]>
Expand the scope of sonarcloud to include integration tests. This has to be run on self-hosted setup because github actions does not have the resources to handle large twister runs. Signed-off-by: Balaji Srinivasan <[email protected]>
We dont want to analyse zephyr repo Signed-off-by: Balaji Srinivasan <[email protected]>
And also the code coverage Signed-off-by: Balaji Srinivasan <[email protected]>
This reverts commit beb643f. Signed-off-by: Balaji Srinivasan <[email protected]>
This is to make it produce debug output Signed-off-by: Balaji Srinivasan <[email protected]>
Ignore vsdx files Signed-off-by: Balaji Srinivasan <[email protected]>
Clobber output when running unit tests Signed-off-by: Balaji Srinivasan <[email protected]>
This is to make it print failures inline Signed-off-by: Balaji Srinivasan <[email protected]>
Created a new workflow file that runs sonarcloud by only invoking twister for native_posix tests. The sonarcloud analysis on main branch will run twister with integration scope and will take longer time to complete. Signed-off-by: Balaji Srinivasan <[email protected]>
This is mainly to exclude any failing unit tests Signed-off-by: Balaji Srinivasan <[email protected]>
Run native_posix tests on main so that sonarcloud gets some info about main branch. Signed-off-by: Balaji Srinivasan <[email protected]>
Renamed to reflect what it does Signed-off-by: Balaji Srinivasan <[email protected]>
This was done in sonarcloud for PR. Doing this in main sonarcloud now. Signed-off-by: Balaji Srinivasan <[email protected]>
We have another workflow that runs sonarcloud on integration scope on pushes to main Signed-off-by: Balaji Srinivasan <[email protected]>
Exclude zephyr from code coverage collection Signed-off-by: Balaji Srinivasan <[email protected]>
This is to debug any possible future failures Signed-off-by: Balaji Srinivasan <[email protected]>
This was causing gcovr to fail with an assert. Its a known issue Signed-off-by: Balaji Srinivasan <[email protected]>
They are now moved to sonar-project.properties file Signed-off-by: Balaji Srinivasan <[email protected]>
Add chatgpt review workflow Signed-off-by: Balaji Srinivasan <[email protected]>
Include python code in the sonarcloud analysis Signed-off-by: Balaji Srinivasan <[email protected]>
This is to avoid conflicts due to changes in upstream Signed-off-by: Balaji Srinivasan <[email protected]>
Create codeql.yml for security analysis of c and python code Signed-off-by: Balaji Srinivasan <[email protected]>
It has been fixed in ncs/main Signed-off-by: Balaji Srinivasan <[email protected]>
Make codeql run every day at 12am Signed-off-by: Balaji Srinivasan <[email protected]>
The usage limit for the API expired for my acc. So removing this. Signed-off-by: Balaji Srinivasan <[email protected]>
lwm2m_code test was fixed long time back. Removing from quarentine. But the download_client test started failing on docker on github actions (passes locally even in docker). My guess is that the failure is because of ioctl call return 2 because docker was not run in privilaged mode by github actions. Disabling now. Signed-off-by: Balaji Srinivasan <[email protected]>
Changed pull_request to pull_request_target Signed-off-by: Balaji Srinivasan <[email protected]>
This is done because I have not disabled the sonarcloud (all platforms) workflow on main. Signed-off-by: Balaji Srinivasan <[email protected]>
- Use PR's head sha when checking out code when triggered from PR. - Provided the PR number, head ref, sha to sonarcloud so that it consideres the run as a PR run. It would not treat pull_request_target events as a PR and hence wont do PR decoration if not done this way - Also when building/running unit tests on PRs, we should not use quarentine_downstream.yaml file as it is not available on the PR's branch. Signed-off-by: Balaji Srinivasan <[email protected]>
Signed-off-by: Balaji Srinivasan <[email protected]>
Signed-off-by: Balaji Srinivasan <[email protected]>
It is now included in the docker image Signed-off-by: Balaji Srinivasan <[email protected]>
Saves a lot of manual steps in the workflow Signed-off-by: Balaji Srinivasan <[email protected]>
Signed-off-by: Balaji Srinivasan <[email protected]>
The nrf-docker image build broke after it started to inclde the ncs toolchain manager. We had to run builds by calling docker directly and without using the container keyword in github actions. Hence I moved to official zephyr image Signed-off-by: Balaji Srinivasan <[email protected]>
Add clang-tidy review workflow Signed-off-by: Balaji Srinivasan <[email protected]>
The code changes in ncs/main need newest zcbor. Hence upgrading. See nrfconnect#12193 Signed-off-by: Balaji Srinivasan <[email protected]>
Bump version to see if java related error goes away. Signed-off-by: Balaji Srinivasan <[email protected]>
They fail currently due to mismatch in zcbor version. Signed-off-by: Balaji Srinivasan <[email protected]>
This is not needed because we no longer run native_posix tests in sonar_cloud action. This is why we needed zcbor in the first place. Signed-off-by: Balaji Srinivasan <[email protected]>
Due to zephyrproject-rtos/zephyr#57484. The board-root is not needed. Signed-off-by: Balaji Srinivasan <[email protected]>
This is done by stopping the twister at a stage where compilation database is generated. Signed-off-by: Balaji Srinivasan <[email protected]>
github-actions
bot
added
the
changelog-entry-required
Update changelog before merge. Remove label if entry is not needed or already added.
label
Jan 26, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
changelog-entry-required
Update changelog before merge. Remove label if entry is not needed or already added.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.