Skip to content

merge bus: #510 - #585

Closed
github-actions[bot] wants to merge 2 commits into
mainfrom
merge-bus/42062043957
Closed

github-actions[bot] wants to merge 2 commits into
mainfrom
merge-bus/42062043957

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Batch of 1: #510

This PR exists so the ordinary gate runs against the combination of those
PRs rather than against each one separately against a base that has since moved.
If it goes green the members are squash-merged in order; if it goes red nothing
merges. Opened by merge-bus.yml, run 42062043957.

bmoore813 and others added 2 commits November 5, 2026 08:57
…cess

A `#` comment inside the `transform/pii_allowlist` OTTL expression made the
collector reject its ENTIRE config at startup:

    Error: invalid configuration: processors::transform/pii_allowlist:
    statement has invalid syntax: 16:3: lexer: invalid input text "# Set as..."

OTTL has no comment syntax, and the YAML `>-` block folds the line into the
expression. The comment was readable and the expression was not.

**The failure mode is the part worth keeping.** The ConfigMap updated, the
Deployment rolled, the new pod crashlooped, and the OLD pod kept serving — so
telemetry kept flowing, `deploy` reported success, and the change had simply
not taken effect. I had already reported the allowlist as live, on the
evidence that the ConfigMap contained it. Reading pod health is what showed
it; the ConfigMap containing the right bytes proves nothing about whether
anything accepted them.

Three changes, because one defect had three causes:

1. The comment moves out of the OTTL into a YAML comment above the processor,
   which also warns the next editor — the list looks like somewhere you could
   annotate, and it is not.

2. `collector_allowlist.rs` gains a test for exactly this. The gate I wrote
   with that PR parses the keep_keys list textually and never looked for a
   `#`, so it passed over the thing that broke. Observed failing before being
   trusted.

3. `obs_up.sh` now waits on the collector's rollout. `helm upgrade --install`
   reports success once the objects are applied, so nothing in the deploy path
   could have caught this — only openobserve had a `rollout status`, and the
   collector is the one release here that takes a config it can reject at
   startup. `deploy.yml` already states the intent ("a telemetry stack that
   silently fails to install is worse than a red deploy"); this is what
   delivers it.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@athvin

athvin commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Closing: the bus run that opened this died in its wait step on a missing checks: read scope, before it could report or clean up. Fixed in the PR above, along with the action_required misclassification this batch exposed — all three of this PR's runs were held for approval, not failing.

@athvin athvin closed this Nov 5, 2026
@athvin
athvin deleted the merge-bus/42062043957 branch November 5, 2026 16:50
athvin added a commit that referenced this pull request Nov 5, 2026
…n failing (#595)

The bus built and validated its first real batch — bus PR #585 for #510, a
genuine merge commit of main@1b4668bb and #510's head — and then died in the
wait step:

    GraphQL: Resource not accessible by integration
      (repository.pullRequest.statusCheckRollup…)

`statusCheckRollup` needs **`checks: read`**, which the permissions block did
not declare. `mergeStateStatus` kept working throughout, which is why the loop
logged BLOCKED six times before dying — only the rollup needed it. Third scope
learned this way after `actions: read`; the lesson is the block itself: naming
any permission sets every other to `none`.

Two further defects, both worse than the missing scope:

THE ROLLUP READ WAS FATAL. Under `set -euo pipefail` the failed assignment
aborted the step, so the first successful batch left its bus PR open with no
report and no cleanup. An unreadable rollup now means "keep waiting".

`ACTION_REQUIRED` WAS LISTED AS A BATCH FAILURE, and it is not. A bot-authored
pull request's runs are created `conclusion: action_required` with ZERO jobs,
waiting for a human to press "Approve and run" — observed on #585, all three
runs held, which is also why `/check-runs` returned HTTP 500. Reporting that as
"the batch went red" accuses the members of a failure nothing executed, and it
is indistinguishable from starvation by step count because both are zero.

So `held` is now its own verdict that blames nobody, names the exact remedy, and
is excluded from the starvation relabel. The wait step first ATTEMPTS to release
the runs itself (hence `actions: write`); approving runs no new untrusted code,
since the bus PR is a merge of PRs whose own CI already ran this content. If the
token may not approve, it says so and stops rather than inventing a cause.

Whether a `GITHUB_TOKEN` may approve its own held runs is the one open question,
and the next dispatch answers it. If it may not, the bus needs a different CI
vehicle than a pull request — dispatching the three workflows on the batch
branch is the obvious candidate — because a human click per round is not
unattended batching.

Covered by `held-released` and `held-stuck`. Three mutants caught: treating
ACTION_REQUIRED as red, removing the self-approval, and removing the guard that
keeps `held` out of the starvation path.

That last one needed the scenario fixed before it meant anything — the stub was
serving 42 executed steps for held runs, where real ones execute zero, so the
guard looked untested because the condition it protects never arose. Fourth time
this exercise that a sanitised scenario proved nothing; faithfulness to the real
failure is the whole value.

Also fixed: `paste -sd', '` treats the delimiter as a cycling LIST, so context
names joined as `entities,test` rather than `entities, test` in PR comments.

Suite now 84 assertions.

Co-authored-by: bmoore813 <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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