Skip to content

crtm: disable testing if not self.run_tests#49469

Merged
tldahlgren merged 2 commits intospack:developfrom
AlexanderRichert-NOAA:patch-22
Mar 14, 2025
Merged

crtm: disable testing if not self.run_tests#49469
tldahlgren merged 2 commits intospack:developfrom
AlexanderRichert-NOAA:patch-22

Conversation

@AlexanderRichert-NOAA
Copy link
Copy Markdown
Contributor

This PR conditionallty disables testing (based on self.run_tests) in CRTM, which based on the CMake config always happens, and downloads massive files, to boot.

This will be resolved (with -DBUILD_TESTING) in a future release: JCSDA/CRTMv3#211

@spackbot-app
Copy link
Copy Markdown

spackbot-app bot commented Mar 13, 2025

@BenjaminTJohnson can you review this PR?

This PR modifies the following package(s), for which you are listed as a maintainer:

  • crtm

@AlexanderRichert-NOAA
Copy link
Copy Markdown
Contributor Author

@spackbot fix style

@spackbot-app
Copy link
Copy Markdown

spackbot-app bot commented Mar 13, 2025

Let me see if I can fix that for you!

@spackbot-app
Copy link
Copy Markdown

spackbot-app bot commented Mar 13, 2025

I was able to run spack style --fix for you!

spack style --fix
==> Running style checks on spack
  selected: import, isort, black, flake8, mypy
==> Modified files
  var/spack/repos/builtin/packages/crtm/package.py
==> Running import checks
  import checks were clean
==> Running isort checks
  isort checks were clean
==> Running black checks
All done! ✨ 🍰 ✨
1 file left unchanged.
  black checks were clean
==> Running flake8 checks
var/spack/repos/builtin/packages/crtm/package.py:103: [W605] invalid escape sequence '\('
var/spack/repos/builtin/packages/crtm/package.py:103: [W605] invalid escape sequence '\)'
  flake8 found errors
==> Running mypy checks
Success: no issues found in 640 source files
  mypy checks were clean
Keep in mind that I cannot fix your flake8 or mypy errors, so if you have any you'll need to fix them and update the pull request. If I was able to push to your branch, if you make further changes you will need to pull from your updated branch before pushing again.

I wasn't able to make any further changes, but please see the message above for remaining issues you can fix locally!

@tldahlgren tldahlgren self-assigned this Mar 13, 2025
@tldahlgren tldahlgren enabled auto-merge (squash) March 13, 2025 18:36
@tldahlgren tldahlgren merged commit 916755e into spack:develop Mar 14, 2025
16 checks passed
AlexanderRichert-NOAA added a commit to AlexanderRichert-NOAA/spack that referenced this pull request Mar 14, 2025
* crtm: disable testing if not self.run_tests
* Update package.py
AlexanderRichert-NOAA added a commit to JCSDA/spack that referenced this pull request Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants