Skip to content

fix(qnx-build): support matrix and nested workspace test logs - #248

Merged
AlexanderLanin merged 1 commit into
mainfrom
4og/fix-qnx-test-log-artifacts
Oct 12, 2026
Merged

AlexanderLanin merged 1 commit into
mainfrom
4og/fix-qnx-test-log-artifacts

Conversation

@4og

@4og 4og commented Oct 12, 2026

Copy link
Copy Markdown
Member

Why

The QNX workflow currently uploads every invocation's test logs as qnx-testlogs.
Matrix builds with tests enabled cannot reliably use this upload step because multiple jobs try to create the same artifact in one workflow run.
GitHub rejects the duplicate artifact name, so an otherwise passing build can fail during log upload.

The upload path is also fixed to the repository root.
When working-directory points to another Bazel workspace, such as examples/integration, its test logs are not collected.
These two limitations block adopting the workflow in eclipse-score/baselibs, which runs QNX tests in a matrix covering both the root and integration workspaces.

Changes

  • Add the optional test-log-artifact-name input, defaulting to qnx-testlogs to preserve the existing artifact name for callers that omit it.
  • Resolve the test-log upload path relative to working-directory.
  • Document unique artifact names for matrix jobs and reruns.

For example, Baselibs can supply a distinct name for each matrix leg and run attempt:

test-log-artifact-name: qnx-testlogs-${{ matrix.bazel-disk-cache }}-${{ github.run_attempt }}

Allow callers to choose unique test-log artifact names while preserving the existing default. Collect logs relative to the configured working directory.

Signed-off-by: Andrey Babanin <andrey.babanin@bmw.de>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused workflow and documentation changes correctly address both reported artifact-upload limitations.

0 open findings

What changed in this PR

Adds matrix-safe, nested-workspace test-log uploads to the reusable QNX build workflow.

Changes:

  • Adds a configurable test-log artifact name.
  • Resolves test logs relative to the configured working directory.
  • Documents matrix and rerun naming requirements.
File Description
.github/​workflows/​qnx-build.yml Adds artifact-name input and nested-workspace upload path.
README.md Documents test-log naming and upload behavior.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@AlexanderLanin
AlexanderLanin merged commit 77760ad into main Oct 12, 2026
5 checks passed
@AlexanderLanin
AlexanderLanin deleted the 4og/fix-qnx-test-log-artifacts branch October 12, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants