Add QNX build and test workflow with emulated execution#106
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an aggregate Bazel test suite and introduces a QNX CI workflow that builds/tests the repository using a reusable QNX pipeline, including a credential helper for authenticating to qnx.com during Bazel fetch/build operations.
Changes:
- Add a new
all_testsBazeltest_suiteaggregating existing test suites. - Add a new GitHub Actions workflow for QNX builds/tests (x86_64-qnx and aarch64-qnx).
- Add a Python credential helper script to acquire and provide QNX session cookies to Bazel.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| tests/BUILD | Adds an aggregate all_tests suite combining existing test categories. |
| .github/workflows/qnx.yml | Introduces a QNX CI workflow using a reusable QNX build workflow with matrix configs. |
| .github/tools/qnx_credential_helper.py | Adds a credential helper that logs into qnx.com and emits a cookie header for Bazel. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+42
to
+46
| bazel-target: "//:all_tests" | ||
| bazel-config: ${{ matrix.bazel-config }} | ||
| bazel-test-target: ${{ matrix.bazel-test-target }} | ||
| credential-helper: ".github/tools/qnx_credential_helper.py" | ||
| bazel-disk-cache: ${{ matrix.bazel-config }} |
Comment on lines
+30
to
+34
| data = json.load(sys.stdin) | ||
|
|
||
| if "qnx.com" not in data["uri"]: | ||
| eprint("Unsupported domain") | ||
| sys.exit(1) |
Comment on lines
+62
to
+65
| r = urllib.request.urlopen("https://www.qnx.com/account/login.html", data) | ||
| if r.status != 200: | ||
| eprint("Failed to login to QNX") | ||
| sys.exit(1) |
nradakovic
force-pushed
the
nira_add_qnx_ci
branch
16 times, most recently
from
July 17, 2026 09:05
42fb152 to
0a38d07
Compare
nradakovic
force-pushed
the
nira_add_qnx_ci
branch
from
July 17, 2026 09:15
0a38d07 to
282b8e9
Compare
Add a GitHub Actions workflow that builds and tests the x86_64-qnx and aarch64-qnx configs, running QNX binaries under QEMU emulation. - Add qnx.yml workflow and qnx_credential_helper.py for package auth. - Configure tests/.bazelrc: ImageFS toolchains, --run_under QNX emulator, and --test_lang_filters=cc for QNX configs. - Add :all_tests aggregate suite in tests/BUILD. - Update MODULE.bazel: add score_qnx_unit_tests and score_rules_imagefs dev deps, bump bazel_skylib to 1.9.0, move aarch64 QNX SDP to 8.0.4. - Make feature tests QNX-portable (skip Linux-only fully_static_link_test, drop redundant -lpthread, handle PIE base in user_link_flags_test).
nradakovic
force-pushed
the
nira_add_qnx_ci
branch
from
July 17, 2026 09:25
282b8e9 to
03275f8
Compare
antonkri
approved these changes
Jul 17, 2026
10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce a GitHub Actions workflow that builds and tests the toolchains
for the x86_64-qnx and aarch64-qnx configurations, running the resulting
QNX binaries under QEMU emulation.
CPU targets, setting up the QNX SDP, qemu-system and KVM, and dumping
test logs on failure.
downloads via --credential_helper.
toolchains, run cc tests under the QNX emulator (--run_under), and
restrict QNX runs to native cc targets (--test_lang_filters=cc).
on.
score_rules_imagefs dev dependencies with their ImageFS toolchains,
bump bazel_skylib 1.8.2 -> 1.9.0, and move the aarch64 QNX SDP to
8.0.4. Refresh MODULE.bazel.lock accordingly.
fully_static_link_test, drop the redundant -lpthread link flag (QNX
bundles pthread in libc), and account for PIE base addresses when
asserting the user_link_flags --defsym marker.