Skip to content

ci: re-enable Thales HSM and E2E FPGA integration tests - #339

Merged
willyzha merged 1 commit into
lowRISC:mainfrom
willyzha:ci-reenable-hsm-tests
Sep 28, 2026
Merged

willyzha merged 1 commit into
lowRISC:mainfrom
willyzha:ci-reenable-hsm-tests

Conversation

@willyzha

Copy link
Copy Markdown
Collaborator

Re-enable the hardware HSM (--prod) PA load test, TLS test, and ATE FPGA integration tests in .github/workflows/main.yml now that the CI Thales Luna HSM is online and upgraded to firmware 7.9.3. Include EXIT traps to clean up each step's temporary .otvar-prod* directory upon completion.

@willyzha
willyzha force-pushed the ci-reenable-hsm-tests branch 2 times, most recently from 855daf1 to d64c8f2 Compare September 22, 2026 23:38
- Re-enable the hardware HSM (--prod) PA load test, TLS test, and ATE FPGA
  integration tests in .github/workflows/main.yml now that the CI Thales
  Luna HSM is online and upgraded to firmware 7.9.3.
- Point SPM_HSM_TOKEN_OFFLINE and OTPROV_GEM_SLOT_OFFLINE in
  config/env/prod/spm.env to the activated 'spm' partition (Slot 0), and
  explicitly set OTPROV_GEM_SLOT_CERT_OPS per action in config/token_init.sh
  and close any stale sautil Application ID 10:11 session in
  rules/scripts/hsm_ca_sign.sh before opening a new one.
- Build //src/spm:spm_server synchronously before backgrounding it in
  util/integration_test_setup.sh, bind the TCP listener only after
  startSPMServer() completes in src/spm/spm_server.go, and wait for the SPM
  port to be reachable before starting client test programs to avoid Bazel
  client lock and server startup races.
- Include EXIT traps to clean up each step's temporary .otvar-prod*
  directory upon completion.
- Add a final 'Clean up Bazel cache' step (if: always()) using
  'bazelisk clean' and 'bazelisk --output_base=... clean --expunge' to
  safely clean build artifacts and expunge orphaned output bases without
  using raw 'rm -rf'.

Signed-off-by: Willy Zhang <willyzhang@google.com>
@willyzha
willyzha force-pushed the ci-reenable-hsm-tests branch from d64c8f2 to bec05f2 Compare September 23, 2026 19:38
@willyzha
willyzha requested a review from clundin25 September 28, 2026 23:04
@willyzha
willyzha merged commit 8994313 into lowRISC:main Sep 28, 2026
4 checks passed
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.

2 participants