Skip to content

ci: run examples on SoftHSM#355

Merged
keldonin merged 1 commit intoparallaxsecond:mainfrom
keldonin:ci_check_examples
Feb 5, 2026
Merged

ci: run examples on SoftHSM#355
keldonin merged 1 commit intoparallaxsecond:mainfrom
keldonin:ci_check_examples

Conversation

@keldonin
Copy link
Collaborator

@keldonin keldonin commented Feb 5, 2026

This PR adds the execution of all examples when performing checks.

@keldonin keldonin marked this pull request as ready for review February 5, 2026 07:37
Copilot AI review requested due to automatic review settings February 5, 2026 07:37
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enables automated execution of all examples during CI checks on SoftHSM, ensuring examples remain functional as the codebase evolves. The changes standardize test credentials across examples and tests, and establish guidelines for writing new examples.

Changes:

  • Updated example PINs to match test credentials (fedcba123456 and abcdef654321)
  • Added CI workflow step to run all examples during SoftHSM tests
  • Created README.md with guidelines for writing CI-compatible examples

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
cryptoki/examples/README.md New documentation establishing rules and best practices for writing examples that run in CI
cryptoki/examples/generate_key_pair.rs Updated PINs from short versions to standard test credentials and changed visibility to pub static for consistency
cryptoki/examples/thread_local_session.rs Updated PINs to match test credentials and changed from const to pub static
.github/workflows/ci.yml Added environment variables at job level and new step to run all examples sequentially

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@wiktor-k wiktor-k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👌 excellent idea!

Copy link
Member

@hug-dev hug-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you!

…xamples

Signed-off-by: Eric Devolder <eric.devolder@gmail.com>
@keldonin keldonin merged commit 1914f61 into parallaxsecond:main Feb 5, 2026
44 checks passed
@keldonin keldonin deleted the ci_check_examples branch February 5, 2026 15:52
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.

3 participants