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

Allocation Check #459

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

Allocation Check #459

wants to merge 2 commits into from

Conversation

gonsie
Copy link
Member

@gonsie gonsie commented Nov 5, 2021

Related to #320

This changes the behavior of make check to add the option --stop-on-failure. It also adds a 'check allocation' test/script before any of the parallel tests are run. The idea is that this script will check that users have a proper allocation before running the tests and prevent the very slow running of multiple 'srun' commands outside of an allocation. It only prevents users from running if they use make check and will not stop all the parallel tests from running if the users use make test... but at least it will print out an error message the users can stare at while their srun is queueing.

Right now only the fact that the script is in allocation is checked (that is, that a job id environment variable is set).

Things to add:

  • check that the right number of nodes are allocated
  • check for proper aprun environment variable

- Add a prerequisite test for any builds where the resource
  manager is set (i.e., not NONE).
- `make check` now sets `--stop-on-failure`, essentially
  preventing tests from running outside of a job allocation
- allocation checker script is examples/check_allocation.sh and
  can be extended in the future
@gonsie
Copy link
Member Author

gonsie commented Jun 5, 2024

@gonsie review this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant