-
Notifications
You must be signed in to change notification settings - Fork 576
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
Framework: Expand CodeQL job to run on all non-deprecated packages modified at a time #13478
Framework: Expand CodeQL job to run on all non-deprecated packages modified at a time #13478
Conversation
Looks reasonable to me! @achauphan |
.github/workflows/codeql.yml
Outdated
cd trilinos_build | ||
|
||
bash ${GITHUB_WORKSPACE}/packages/framework/GenConfig/LoadEnv/load-env.sh --force rhel8_gcc-openmpi_debug_shared_no-kokkos-arch_no-asan_complex_no-fpic_mpi_no-pt_no-rdc_no-uvm_deprecated-on_no-package-enables | ||
|
||
cmake -G 'Unix Makefiles' -DTrilinos_ENABLE_TESTS=OFF -DTrilinos_ENABLE_Epetra=OFF -DTrilinos_ENABLE_AztecOO=OFF -DTrilinos_ENABLE_Ifpack=OFF -DTrilinos_ENABLE_ML=OFF -D Trilinos_ENABLE_Triutils=OFF -DTrilinos_ENABLE_Tpetra=ON -DTrilinos_ENABLE_MueLu=ON -DTrilinos_ENABLE_Krino=OFF .. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be changed to build the correct set of packages (the ones modified as part of this PR, but not downstream ones).
Could also use the PR scripts to facilitate this, and maybe add the configure option that turns off downstream packages (something like Trilinos_ENABLE_DOWNSTREAM_PACKAGES
ish)? Using GenConfig will likely fix your issues with not finding TPLs.
Squashing all the terrible commits I made while using the GitHub web interface. The interface does not seem to have support for signing with DCO. Includes changes which modify the event triggers to comply with new AT2 specifications, assignment of an AT2 runner to run on, usage of GenConfig to load the environment, and prototype implementation of calling the get-changed-trilinos-packages.sh script. Signed-off-by: Anderson Chauphan <[email protected]>
5f2a88e
to
1809708
Compare
Fix calling of get-changed-trilinos-packages.sh to correctly reference the origin remote. Signed-off-by: Anderson Chauphan <[email protected]>
The GenConfig step is just used to generate a cmake fragment for the configuration. This would fit nicely with the step that generates the other cmake fragment for package enables. Signed-off-by: Anderson Chauphan <[email protected]>
Tidy up workflow file with consistent naming and add newlines between each named step for better readability. Signed-off-by: Anderson Chauphan <[email protected]>
Signed-off-by: Anderson Chauphan <[email protected]>
Add TriBITS cache variables to reduce code built for packages that are not needed. Signed-off-by: Anderson Chauphan <[email protected]>
Signed-off-by: Anderson Chauphan <[email protected]>
Manually disable each deprecated package in the cmake command for CodeQL configuration. Since these are defined on the command line, they should take priority over any of the enables from the package_enables.cmake or the genconfig_fragment.cmake fragments. Signed-off-by: Anderson Chauphan <[email protected]>
Add default shell setting to CodeQL job specifying to use a `bash -l` login shell to clean the syntax throughout the file where these were being individually specified. Signed-off-by: Anderson Chauphan <[email protected]>
Signed-off-by: Anderson Chauphan <[email protected]>
Signed-off-by: Anderson Chauphan <[email protected]>
Add workflow concurrency cancelation check for previous workflows associated with the same PR. Signed-off-by: Anderson Chauphan <[email protected]>
Status Flag 'Pre-Test Inspection' - Auto Inspected - Inspection is Not Necessary for this Pull Request. |
Status Flag 'Pull Request AutoTester' - Testing Jenkins Projects: Pull Request Auto Testing STARTING (click to expand)Build InformationTest Name: PR_gcc-openmpi-openmp
Jenkins Parameters
Build InformationTest Name: PR_gcc
Jenkins Parameters
Build InformationTest Name: PR_gcc-openmpi_debug
Jenkins Parameters
Build InformationTest Name: PR_clang
Jenkins Parameters
Build InformationTest Name: Trilinos_PR_python3
Jenkins Parameters
Build InformationTest Name: PR_cuda
Jenkins Parameters
Build InformationTest Name: PR_intel
Jenkins Parameters
Build InformationTest Name: PR_cuda-uvm
Jenkins Parameters
Using Repos:
Pull Request Author: achauphan |
Status Flag 'Pull Request AutoTester' - Jenkins Testing: all Jobs PASSED Pull Request Auto Testing has PASSED (click to expand)Build InformationTest Name: PR_gcc-openmpi-openmp
Jenkins Parameters
Build InformationTest Name: PR_gcc
Jenkins Parameters
Build InformationTest Name: PR_gcc-openmpi_debug
Jenkins Parameters
Build InformationTest Name: PR_clang
Jenkins Parameters
Build InformationTest Name: Trilinos_PR_python3
Jenkins Parameters
Build InformationTest Name: PR_cuda
Jenkins Parameters
Build InformationTest Name: PR_intel
Jenkins Parameters
Build InformationTest Name: PR_cuda-uvm
Jenkins Parameters
|
Status Flag 'Pre-Merge Inspection' - - This Pull Request Requires Inspection... The code must be inspected by a member of the Team before Testing/Merging |
All Jobs Finished; status = PASSED, However Inspection must be performed before merge can occur... |
1 similar comment
All Jobs Finished; status = PASSED, However Inspection must be performed before merge can occur... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like all packages were enabled, but I think that's because of the logic in the changed package enabler script. This looks good to me.
Status Flag 'Pre-Merge Inspection' - SUCCESS: The last commit to this Pull Request has been INSPECTED AND APPROVED by [ sebrowne ]! |
Status Flag 'Pull Request AutoTester' - AutoMerge IS ENABLED, but the Label AT: AUTOMERGE is not set. Either set Label AT: AUTOMERGE or manually merge the PR... |
Status Flag 'Pull Request AutoTester' - Pull Request will be Automerged |
Merge on Pull Request# 13478: IS A SUCCESS - Pull Request successfully merged |
@trilinos/framework @csiefer2
Motivation
The current CodeQL test configuration will run only on Tpetra and MueLu. We want to expand CodeQL's analysis to include all non-deprecated packages that were modified in a PR (ignore downstream packages).
Doing so will increase build time, so this will need to run on our self-hosted runners being spawned by the AutoTester2.
Related Issues
Testing
Testing CodeQL changes will occur within this PR using the AutoTester2 system while the
[WIP]
label is being used.