Skip to content

Modernize plasma tests and fix CI workflow permissions#2318

Merged
adrianreber merged 5 commits intoopenhpc:4.xfrom
adrianreber:2026-01-05-plasma
Jan 5, 2026
Merged

Modernize plasma tests and fix CI workflow permissions#2318
adrianreber merged 5 commits intoopenhpc:4.xfrom
adrianreber:2026-01-05-plasma

Conversation

@adrianreber
Copy link
Copy Markdown
Member

  • Modernize plasma test framework to match other OpenHPC library tests
  • Fix printf format argument mismatch in plasma test (GitHub code scanning)
  • Update plasma configure.ac to modern autoconf syntax via autoupdate
  • Add explicit permissions to GitHub Action workflows (GitHub code scanning)
  • Bump factory version to 4.1

Update configure.ac to modern autoconf syntax using autoupdate:
- Update AC_PREREQ from 2.59 to 2.71
- Use proper quoting for AC_INIT arguments
- Replace deprecated AC_ERROR with AC_MSG_ERROR
- Remove empty parentheses from AC_OUTPUT

🤖 Generated with [Claude Code](https://claude.ai/code)

Signed-off-by: Adrian Reber <areber@redhat.com>
Add missing fourth argument to printf call in print_main_usage().
The format string contains four %s specifiers but only three
arguments were provided.

Fixes "Too few arguments to formatting function" as reported by
GitHub code scanning.

🤖 Generated with [Claude Code](https://claude.ai/code)

Signed-off-by: Adrian Reber <areber@redhat.com>
Modernize the plasma test infrastructure to match patterns used by
other OpenHPC library tests:

- Update source paths from ./common/ to ../../../common/
- Add setup_file() function for test initialization with proper
  variable exports (NODES, TASKS, ARGS, TIMEOUT, TESTNAME)
- Use ${RESOURCE_MANAGER} instead of local $RM variable
- Add timeout support with -t flag for run_serial_binary
- Enable parallel test execution with -j flag in shebang
- Use setup()/teardown() for temp file handling in test_module
- Use get_rpm_name helper instead of hardcoded rpm name
- Apply proper quoting throughout for shellcheck compliance
- Remove trailing cleanup code in favor of teardown function

🤖 Generated with [Claude Code](https://claude.ai/code)

Signed-off-by: Adrian Reber <areber@redhat.com>
Signed-off-by: Adrian Reber <areber@redhat.com>
Add permissions blocks to workflows that were missing them to fix
"Workflow does not contain permissions" warnings from GitHub code
scanning.

- lint.yml: contents read only
- stale.yml: contents read, issues and pull-requests write
- validate.yml: contents read only

🤖 Generated with [Claude Code](https://claude.ai/code)

Signed-off-by: Adrian Reber <areber@redhat.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 5, 2026

Test Results

27 files  ±0  27 suites  ±0   39s ⏱️ +6s
53 tests ±0  49 ✅ ±0  4 💤 ±0  0 ❌ ±0 
99 runs  ±0  93 ✅ ±0  6 💤 ±0  0 ❌ ±0 

Results for commit 730ce47. ± Comparison against base commit 4f7f051.

@adrianreber adrianreber merged commit d637ec2 into openhpc:4.x Jan 5, 2026
24 checks passed
@adrianreber adrianreber deleted the 2026-01-05-plasma branch January 5, 2026 16:18
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.

1 participant