Skip to content

Add github workflow to check for wolfboot regressions#10029

Draft
danielinux wants to merge 4 commits intowolfSSL:masterfrom
danielinux:wolfboot-integration-tests
Draft

Add github workflow to check for wolfboot regressions#10029
danielinux wants to merge 4 commits intowolfSSL:masterfrom
danielinux:wolfboot-integration-tests

Conversation

@danielinux
Copy link
Member

Description

A selection of tests to intercept any changes that would break wolfboot.

Copilot AI review requested due to automatic review settings March 20, 2026 15:04
Copy link
Contributor

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

Adds a GitHub Actions workflow to run a curated set of wolfBoot integration checks against the wolfSSL code under test, aiming to catch regressions early.

Changes:

  • Introduces a new wolfboot-integration.yml workflow with multiple jobs (keytools, Renode configs, host smoke).
  • Clones wolfBoot and links the PR’s wolfSSL workspace into wolfBoot for integration validation.
  • Uploads Renode execution logs as build artifacts for debugging.

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

Copilot AI review requested due to automatic review settings March 20, 2026 17:11
Copy link
Contributor

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

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


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

push:
branches: [ 'master', 'main', 'release/**' ]
pull_request:
branches: [ '*' ]
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

pull_request.branches: ['*'] will not match base branches that contain / (e.g., release/1.2.3), so the workflow may not run on PRs targeting release branches. Use ['**'] or mirror the push branch filters (e.g., ['master','main','release/**']), or omit branches entirely to run on all PRs.

Suggested change
branches: [ '*' ]
branches: [ 'master', 'main', 'release/**' ]

Copilot uses AI. Check for mistakes.
- name: Build and exercise host-side smoke test
working-directory: wolfboot
run: |
set -euo pipefail
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

With set -e enabled, a failing ./test-lib ... inside command substitution will cause the script to exit immediately, so success_status=$? will never be reached and the intended error handling won’t run. Wrap that command substitution with a temporary set +e/set -e, or use an if output=$(...); then ... else ... fi pattern to capture output and status reliably.

Copilot uses AI. Check for mistakes.
Comment on lines +14 to +16
env:
WOLFBOOT_REPO: https://github.com/wolfSSL/wolfBoot.git
WOLFBOOT_BRANCH: master
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

Cloning the tip of wolfBoot master makes this workflow non-deterministic and can introduce CI flakiness (failures caused by unrelated wolfBoot changes). Consider pinning to a known-good wolfBoot tag/commit SHA (or a release branch), and optionally allowing an override via workflow_dispatch input when you explicitly want to test against wolfBoot master.

Copilot uses AI. Check for mistakes.
run: |
set -euxo pipefail

git clone --depth 1 --branch "${WOLFBOOT_BRANCH}" "${WOLFBOOT_REPO}" wolfboot
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

Cloning the tip of wolfBoot master makes this workflow non-deterministic and can introduce CI flakiness (failures caused by unrelated wolfBoot changes). Consider pinning to a known-good wolfBoot tag/commit SHA (or a release branch), and optionally allowing an override via workflow_dispatch input when you explicitly want to test against wolfBoot master.

Copilot uses AI. Check for mistakes.
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