Skip to content

flake: packages/cli/src/guards-vendored.test.ts > unit · a vendored copy, judged against every form the framework shipped > every current form of every shipped guard is in the released-forms table #1269

Closed

Description

@github-actions

flake-hunt saw this fail in https://github.com/developerz-ai/ultimate/actions/runs/44443484119.

suite round seed
unit 1 4213420217
unit 2 2879767910
unit 3 3435136434

Replay each round in its order:

bun run x -- test unit --workers 4 --isolate -- --randomize --seed=4213420217
bun run x -- test unit --workers 4 --isolate -- --randomize --seed=2879767910
bun run x -- test unit --workers 4 --isolate -- --randomize --seed=3435136434

The file alone, same seed — order across files is lost, so green here is not a fix:

bun test ./packages/cli/src/guards-vendored.test.ts --randomize --seed=4213420217

What Bun printed:


- []
+ [
+   "undeclared-env",
+ ]

- Expected  - 1
+ Received  + 3

      at <anonymous> (/home/runner/work/ultimate/ultimate/packages/cli/src/guards-vendored.test.ts:57:21)

::error file=packages/cli/src/guards-vendored.test.ts,line=57,col=21,title=error: expect(received).toEqual(expected)::- []%0A+ [%0A+   "undeclared-env",%0A+ ]%0A%0A- Expected  - 1%0A+ Received  + 3%0A%0A      at <anonymous> (/home/runner/work/ultimate/ultimate/packages/cli/src/guards-vendored.test.ts:57:21)

Activity

  1. sebyx07 commented on Nov 19, 2026

    @sebyx07
    Contributor

    Fixed on main by a22539b (#1261), which carried later commits than the hunted a5733be.

    Cause: not order dependence: the undeclared-env guard changed but its row in the released-forms table still held the old hashes. The fix updates that row.

    Evidence

    • Restoring the a5733be version of packages/cli/src/templates/guard-released-forms.ts on main makes this test fail again under --randomize --seed=4213420217. With main's version it passes.
    • The test passes on the current tip 0700715 under all three seeds from the failing hunt (4213420217, 2879767910, 3435136434), run file by file with CI=true.
    • Hunt 44447976868 on a22539b was green in all six rounds (unit and live, three fresh seeds each).
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

    flake-hunta test flake-hunt.yml saw fail under a shuffled order

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions