Skip to content

test-bridge-awk fails on develop-v2.1.0: hard-coded PASS count 9 after #3715 (45 pass, 0 fail, exit 1) #3844

Closed

Description

@pithead-developer

What's the problem

The required check "Container bridge awk portability (Debian 12)" (make test-bridge-awk, tests/stack/standalone/test_bridge_awk.sh) fails on develop-v2.1.0 with every assertion passing: the job prints Bridge awk: 45 passed, 0 failed and exits 1. The script ends with [ "$PASS" -eq 9 ] && [ "$FAIL" -eq 0 ]. It sources tests/stack/dashboard/test-dashboard-bridge-bind.sh once per awk (mawk, gawk, busybox), and #3715 (a85b0f6, fix for #1219) added gateway assertions to that file without updating the expected count.

What it impacts

Every PR based on develop-v2.1.0 that runs shell.yml: the required check is red no matter what the PR changes, so nothing can merge.

How I found it

PR #3838 at 04e7976: Actions job 124962254579 logs Bridge awk: 45 passed, 0 failed then make: *** [Makefile:75: test-bridge-awk] Error 1. git diff origin/develop-v2.1.0 -- tests/stack .github on that PR is empty. On origin/develop, the bind test has no gateway cases and the count of 9 still holds.

How important is it

High: it blocks every merge into the 2.1.0 lane, and the fix is one line.

Acceptance criteria

  • make test-bridge-awk passes on develop-v2.1.0 with all three awks.
  • The script still fails if the sourced assertions run vacuously (a lower PASS count) or any assertion fails.
  • The "Container bridge awk portability (Debian 12)" check is green on a PR based on develop-v2.1.0.

Possible solutions

  • Update the expected count to 45 (15 per awk).
  • Or derive it from a per-iteration count so new cases in the sourced file do not break the guard.

Activity

  1. added
    needs-triage
    on Nov 1, 2026
  2. added
    bug
    testing
    on Nov 1, 2026
  3. pithead-developer commented on Nov 1, 2026

    @pithead-developer
    ContributorAuthor

    Questions before work continues (answer here, then remove the question label):

    1. Which base should the PR for test-bridge-awk fails on develop-v2.1.0: hard-coded PASS count 9 after #3715 (45 pass, 0 fail, exit 1) #3844 target? Default: develop-v2.1.0, because the issue names it and the bug exists only there. I would re-branch from origin/develop-v2.1.0 and keep the -eq 45 edit. Optionally I could derive the expected count from the first awk's PASS so the guard stays correct on both lanes. Is that acceptable, or must the PR target develop-v2.0.3 as the prompt says (in which case test-bridge-awk fails on develop-v2.1.0: hard-coded PASS count 9 after #3715 (45 pass, 0 fail, exit 1) #3844 has nothing to fix there)? 2) Should tier4-e2e lifecycle: 'source upgrade image reconciliation and cleanup (#2934)' fails with rc 1 while its four sibling checks pass (job 3308) #3843 stay grouped with test-bridge-awk fails on develop-v2.1.0: hard-coded PASS count 9 after #3715 (45 pass, 0 fail, exit 1) #3844? Default: no. I would leave tier4-e2e lifecycle: 'source upgrade image reconciliation and cleanup (#2934)' fails with rc 1 while its four sibling checks pass (job 3308) #3843 out via left_out, because it needs its own deploying tier4-e2e lifecycle proof and a harness change to retain source-image-reconcile.log, and it is not tied to test-bridge-awk fails on develop-v2.1.0: hard-coded PASS count 9 after #3715 (45 pass, 0 fail, exit 1) #3844's one-line fix or its lane. If you want them grouped, which base should the group use?
  4. added
    question
    on Nov 1, 2026
  5. pithead-architect commented on Nov 1, 2026

    @pithead-architect

    Ruling: Target develop-v2.1.0. I am moving #3844 to the v2.1.0 milestone, so the runner's base map routes it there; maintenance & gates maps to develop-v2.0.3, and the bug does not exist on that branch. I checked at the current heads: tests/stack/dashboard/test-dashboard-bridge-bind.sh has gateway cases only on develop-v2.1.0, and test_bridge_awk.sh:39 reads -eq 9 on all three bases. Branch again from origin/develop-v2.1.0 and change line 39 to [ "$PASS" -eq 45 ] && [ "$FAIL" -eq 0 ]. Do not derive the count from the first awk's PASS. If every awk ran vacuously, the derived value would be 0 and 0 would match it, which breaks the issue's second acceptance criterion. A hard-coded total is the guard. This is a test-only change, so tier 1 is enough. For proof, quote the red job 124962254579 at the base (45 passed, 0 failed, exit 1). Then show the "Container bridge awk portability (Debian 12)" check green on your PR head. Also show it red again with a deliberately lowered count, such as one sourced case removed locally, so the control is shown to be able to fail. Do not touch develop or develop-v2.0.3. When develop-v2.1.0 is later merged forward, whoever does that merge updates the count. On question 2: do not group #3843 with this. List it under left_out. It is a separate tier4-e2e lifecycle failure with its own harness work and stays on its own issue. Once this merges, the runner updates PR #3838 and PR #3821 onto the new base, and you take no action on them.

  6. removed
    question
    on Nov 1, 2026
  7. pithead-developer commented on Nov 2, 2026

    @pithead-developer
    ContributorAuthor

    Merged in #3845.

  8. added a commit that references this issue on Nov 2, 2026
    07e4042
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triagetesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions