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

[WIP] Framework: Expand CodeQL job to run on all non-deprecated packages modified at a time #13478

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from

Conversation

achauphan
Copy link
Contributor

@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.

Want to test the difference in speed with its current configuration settings
on a self-hosted machine (using our gcc-serial containers for now).

Signed-off-by: Anderson Chauphan <[email protected]>
@achauphan achauphan added AT: WIP Causes the PR autotester to not test the PR. (Remove to allow testing to occur.) PA: Framework Issues that fall under the Trilinos Framework Product Area labels Sep 25, 2024
@achauphan achauphan self-assigned this Sep 25, 2024
@achauphan achauphan added the AT2-SpecialApprove (Beta) Special approval label for AT2. label Sep 25, 2024
Signed-off-by: Anderson Chauphan <[email protected]>
@achauphan achauphan added AT2-SpecialApprove (Beta) Special approval label for AT2. and removed AT2-SpecialApprove (Beta) Special approval label for AT2. labels Sep 25, 2024
@achauphan achauphan added AT2-SpecialApprove (Beta) Special approval label for AT2. and removed AT2-SpecialApprove (Beta) Special approval label for AT2. labels Sep 25, 2024
Our gcc-openmpi runner has the necessary TPLs required to configure and build.
@achauphan achauphan added AT2-SpecialApprove (Beta) Special approval label for AT2. and removed AT2-SpecialApprove (Beta) Special approval label for AT2. labels Sep 26, 2024
@csiefer2
Copy link
Member

Looks reasonable to me! @achauphan

@achauphan achauphan added AT2-SpecialApprove (Beta) Special approval label for AT2. and removed AT2-SpecialApprove (Beta) Special approval label for AT2. labels Sep 30, 2024
Move get dependencies to its own step to utilize unique bash arguments.

This is due to how LoadEnv from GenConfig spawns a subshell.
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 ..
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AT: WIP Causes the PR autotester to not test the PR. (Remove to allow testing to occur.) AT2-SpecialApprove (Beta) Special approval label for AT2. PA: Framework Issues that fall under the Trilinos Framework Product Area
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants