Skip to content

patches: report # Upstream: carry markers in BUILD and .bzl files (part of #11967) - #13976

Merged
TrapsterDK merged 1 commit into
mainfrom
issue-11967-carry-upstream
Nov 19, 2026
Merged

TrapsterDK merged 1 commit into
mainfrom
issue-11967-carry-upstream

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

Part of #11967

//patches:upstream now reads # Upstream: owner/repo#N comment lines in BUILD, BUILD.bazel and .bzl files (the walk skips ./bazel- dirs and node_modules). These carries are reported in the same sections as patch headers. //patches:headers_test fails when a marker is unreadable; it reads them from @dx_test_tags_sources//:sources.json. The clang_cl LIB targets in cc/private/toolchain/clang_cl/BUILD.bazel are marked # Upstream: hermeticbuild/hermetic-llvm#973, so the weekly issue flags them once an llvm release ships the fix.

Remaining for #11967:

Tests:

  • bazel test //patches:upstream_unit_test //patches:headers_test //patches:render_unit_test //tools/ci:prose_rules_test: the three patches tests pass. prose_rules_test fails with .github/workflows/README.md issue-number 5: 4 allowed; remove the new one. origin/main already has 5 issue numbers in that file, and this PR adds none.
  • tools/dx check --affected: tools/api:api_test (API snapshot), tools/ci:aggregate_gates_test (ci.yml "Write job summary" || true) and tools/ci:config_consistency_test (README .bazelversion, clippy config) fail. This PR touches none of those files.
  • carry_files('.') from the repo root finds cc/private/toolchain/clang_cl/BUILD.bazel, and it is the only file with a marker.
  • Nested-Bazel and consumer tests were not run locally.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K

…rt of #11967)

//patches:upstream now also reads `# Upstream: owner/repo#N` comment lines
in BUILD, BUILD.bazel and .bzl files, so code that carries an upstream fix
is flagged by the weekly report like a patch. //patches:headers_test fails
on an unreadable marker. The clang_cl LIB targets carry
hermeticbuild/hermetic-llvm#973.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K
@TrapsterDK
TrapsterDK force-pushed the issue-11967-carry-upstream branch from fbf7f1a to ff7c3d4 Compare November 19, 2026 16:21
@TrapsterDK
TrapsterDK marked this pull request as ready for review November 19, 2026 16:21
@TrapsterDK
TrapsterDK merged commit 2f2f27b into main Nov 19, 2026
@TrapsterDK
TrapsterDK deleted the issue-11967-carry-upstream branch November 19, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-review Touches review paths; needs a second-session Review: comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant