Skip to content

api: record qt macro forwards; qt cells stub on hosts whose 7-Zip cannot read rpms (part of #13178) - #14244

Merged
TrapsterDK merged 1 commit into
mainfrom
cloud/13178
Nov 20, 2026
Merged

TrapsterDK merged 1 commit into
mainfrom
cloud/13178

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

Pull Request

Linked Issue

Part of #13178
Part of #13818
Part of #14050

Changes

  • qt/private/toolchain/seven_zip.bzl: new seven_zip_host and seven_zip_reads_rpm. On Windows the pinned extractor is 7zr.exe, which reads only 7z, xz and lzma.
  • qt/private/toolchain/repos.bzl: when a cell needs rpm runtime packages (the linux cells) and the host extractor cannot read them, qt_cell_repo writes stub_build(...) instead of downloading: empty licenses/runtime/sbom filegroups and a qt_unsupported target for every other hub target the module owns. Loading //tools/api:forwards_qt on Windows no longer fails.
  • qt/tests/toolchain_tests.bzl: checks that a stub defines every hub target, refuses libraries and ships no runtime.
  • tools/api/BUILD.bazel: qt leaves _FORWARDS_PENDING. Regenerated api/starlark.json (qt macro forwards).

Verification

tools/dx check --apply on the touched files: format and typecheck clean. The two lint findings (buildifier/attr-licenses at repos.bzl:23 and in toolchain_tests.bzl) are also on main.

Tested: //qt/tests:metadata, //tools/api:api_test passed, and //tools/api:forwards_qt builds, on linux_x86_64.

Not run: the Windows path, which is what this fixes. Kept draft until /evidence builds //tools/api:forwards_qt on windows_x86_64. --affected not run (cloud container, touched packages only).


Generated by Claude Code

@TrapsterDK TrapsterDK added the api label Nov 20, 2026 — with Claude

Copy link
Copy Markdown
Collaborator Author

/evidence platforms=["windows_x86_64", "macos_arm64"] task=build scope=//tools/api:forwards_qt


Generated by Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

/evidence could not read '"macos_arm64"]'. Use platforms=, task=, scope=, test_timeout=, displays=, android=, qualify=, relocate=, release_cell=, flags=, lock_refresh= or accept_licenses=.

Copy link
Copy Markdown
Collaborator Author

/evidence platforms=["windows_x86_64","macos_arm64"] task=build scope=//tools/api:forwards_qt


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

analysis (PR-time checks on linux_x86_64) fails in preflight: MODULE.bazel.lock is no longer up-to-date because an input to the extension '@@//dart:extensions.bzl%pub' changed: ... third_party/dart/pubspec.lock. This PR does not touch either file. bazel build --nobuild --lockfile_mode=error //dart/tests/fixtures/dart_app/cli:inventory_cli fails the same way on main at 8fb63b8, so this is a main failure, not this PR's.


Generated by Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

Evidence started on cloud/13178: https://github.com/devhusdk/rules_dx/actions/runs/44740467531

Copy link
Copy Markdown
Collaborator Author

affected tests (linux_x86_64, shard 8) fails on //core/quality/testdata:matrix_text_typos_fail, matrix_rust_typos_fail and matrix_sql_lint_parse_error. These are typos/sqlfluff goldens, and this PR touches neither tool. matrix_text_typos_fail and matrix_sql_lint_parse_error also fail on main at 8fb63b8: sqlfluff now reports "Couldn't find closing bracket" at 12:13, not "Found unparsable section" at 0:12. These are main failures, not this PR's.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

affected tests (linux_x86_64, shard 4) fails only on //config:workspace_policy; the 16 skipped targets are platform-incompatible skips. This PR does not touch config/, and bazel test //config:workspace_policy fails the same way on main at 8fb63b8. This is a main failure, not this PR's.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

affected tests (linux_x86_64, shard 0) fails only on //android/tests/conformance:format_error_test (subject_matches_mode); the other 18 targets are platform-incompatible skips. It fails the same way on main at 8fb63b8. This is a main failure, not this PR's.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

affected tests (linux_x86_64, shard 22) fails only on //rust/tests:rust_analyzer_acquisition_test (ide_acquisition_answers_version). It fails the same way on main at 8fb63b8, and this PR does not touch rust. This is a main failure, not this PR's. Shard 13 aborts on the MODULE.bazel.lock/pubspec.lock drift I reported above.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

affected tests (linux_x86_64, shard 26) runs no tests. The shard planner hands dx test external labels (@llvm//tests/stage0_features:stage0_features_test, @rules_cuda//tests/coverage:..., @shared_consumer//:...), and dx test rejects them with invalid_scope: ... workflow commands accept main-workspace labels ... only. That is a mismatch between the CI sharding and dx test, not something this diff changes; none of those packages are touched here.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

Shard 10 fails on //core/tests:pins, and shard 15 on gazelle tests (//gazelle/csharp:generation_test, //gazelle/rust:generation_test, //gazelle/ocaml:ocaml_test, //gazelle/julia:stdlib_test). //core/tests:pins and //gazelle/csharp:generation_test fail the same way on main at 8fb63b8, and this PR touches neither pins nor gazelle. These are main failures, not this PR's. Shards 5 and 12 abort on the same MODULE.bazel.lock/pubspec.lock drift reported above.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

Shard 25 fails on //tools/testing:language_skeleton_test (a known main failure) and //tools/testing/consumer:root_module_test (root_module_and_fixtures_follow_the_consumer_setup_or_are_pending, root_module_test.rs:616). root_module_test fails the same way on main at 8fb63b8. These are main failures, not this PR's.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

Shard 24 fails on the //tools/ci guard tests (starlark_docs_test, prose_rules_test, zero_compat_test, lint_attributes_test, unreferenced_files_test, sandbox_escape_test, lock_hub_names_test, lock_registry_test, test_budget_test) and on several //tools/docs///tools/ide tests. I ran the nine //tools/ci tests on main (8fb63b8) and on this branch: all nine fail on both. None of their logs on this branch name a file this PR touches (qt/private/toolchain/, qt/tests/toolchain_tests.bzl, tools/api/BUILD.bazel, api/starlark.json). These are main failures, not this PR's.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

Shard 23 fails on //tools/ci:aggregate_gates_test and config_consistency_test (known main failures), plus hub_literals_test and host_env_test. Shard 11 fails on //csharp/tests/fixtures/xunit:csharp_coverage_test_on. hub_literals_test, host_env_test and csharp_coverage_test_on fail on both main (8fb63b8) and this branch, and the guard logs name no file this PR touches. These are main failures, not this PR's.


Generated by Claude Code

…not read rpms (part of #13178)

On Windows the pinned extractor is 7zr.exe, which reads only 7z, xz and
lzma. Fetching a linux Qt cell there failed on its rpm runtime packages,
so //tools/api:forwards_qt could not load. Those cell repos now write a
BUILD file of empty runtime/licenses/sbom filegroups and qt_unsupported
targets instead, and qt leaves _FORWARDS_PENDING.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hxb5B17RJ7Rm8gcJL8
@TrapsterDK
TrapsterDK marked this pull request as ready for review November 20, 2026 22:26
@TrapsterDK
TrapsterDK merged commit 9f80c18 into main Nov 20, 2026
@TrapsterDK
TrapsterDK deleted the cloud/13178 branch November 20, 2026 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants