Skip to content

fix(push): accept uppercase benchmark suite markers - #2274

Open
Kiko0301 wants to merge 1 commit into
Tencent:mainfrom
Kiko0301:fix/push-uppercase-suite-marker
Open

Kiko0301 wants to merge 1 commit into
Tencent:mainfrom
Kiko0301:fix/push-uppercase-suite-marker

Conversation

@Kiko0301

@Kiko0301 Kiko0301 commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Accept either supported benchmark suite marker when checking a single-file push against the remote default tree. A suite with SUITE.yaml was already accepted by the suite loader but every push --file --path into its tasks was rejected for missing suite.yaml.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)

Test Plan

  • Type checking passes (npm run typecheck, including npx tsc --noEmit).

  • npm run lint passes in full (oxlint passes; baseline documentation failures detailed below).

  • Relevant test file passes; no shared runner, helper or configuration changes require the entire suite.

  • Added/updated regression tests.

  • Runtime change verified with the real CLI in an isolated world; record below.

  • Regression-first proof: Before the fix, the same E2E case passes with suite.yaml and fails with SUITE.yaml. In the world, teamai --dry-run push --file new-task.yaml --path benchmarks/frontend/tasks/new-task.yaml changes from exit 1 (missing lowercase marker) to exit 0 (Would propose ..., Dry run — no changes made).

  • npm run test:e2e -- src/__tests__/e2e/push-file-path-1402.test.ts: 22 passed on Linux.

  • npm run typecheck: passed.

  • npm run lint: oxlint passed with 0 warnings and 0 errors. Documentation checking fails in two groups also reproduced on the untouched main snapshot: the internal-tool inventory expects workbuddypro, and three shipped runtime-driver guide blocks differ from their YAML. No documentation/default driver files are changed here.

Real-CLI record, 2026-12-02, Alpine Linux / Node v22.23.5 in an isolated WSL chroot (Windows itself does not support verify worlds):

VERIFIED: real CLI; git; Claude configuration; workspace scope
source: origin/main 1877feb + only this branch's patch (71db2e1666f2)
teamai: 0.22.0
npm run verify:world
world: 20261202T111907-1e2ea7
build.commit: 5e61e7d0546b9d04ff19e2ef4b6967d53ab5b5e8
build.dirty: false
build.sha256: e4a00817d36a8a8524af68e1636bde5ce12e128848f2b9d8bea8443b7c71642b
npm run -s verify -- sh 20261202T111907-1e2ea7 node /bridge/teamai-world-proof.mjs suite
npm run -s verify -- ledger 20261202T111907-1e2ea7
Ledger: CLEAN

The Linux checkout is a source-content snapshot with its own synthetic Git commit, so build.commit differs from the PR commit. Each repair was applied and tested independently; the world packed and installed the CLI before the commands above. The published branch was created through GitHub's Git Data API after Git transport failed TLS; its full tree hash was checked against the local repair branch. The temporary proof helper only prepares local fixtures and invokes the installed real CLI in the world's empty environment; it is not shipped.

Related Issues

Fixes #2269

Notes for Reviewers

The full E2E file covers dedicated git and self mode, a dirty team clone, repeat pushes/PR updates, exact-file proposals and symlink refusals. HTTP stays read-only. User/workspace scope and namespace/default-layer routing use the same tree check. No supported tool path or driver/runtime capability changes, and no checkout anchoring changes for linked worktrees, submodules, workspace children or bare repos. The real world uses git workspace scope; extra tool/provider combinations remain for CI.

The world uninstall ledger is clean. Documentation and skill-data wording were checked; existing guidance stays accurate. No shipped always-loaded text or hook/pull process counts grow. Windows CI and additional tool/provider combinations remain for CI; local Windows symlink-dependent tests are restricted by the host.

CI baseline cross-check: the representative Windows job fails five existing tool-inventory assertions in locate-mcp.test.ts, tools-channels.test.ts and tools.test.ts (including WorkBuddy Pro). Running those same files on untouched origin/main 1877feb on Windows reproduces exactly 5 failed / 889 passed. The CI lint log also fails the internal-tool documentation inventory, matching the baseline documentation check above. These files/tool descriptors are outside this repair. Other CI jobs were still running at the check; this PR does not claim a green full matrix.

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.

push --file --path rejects benchmark suites with an uppercase SUITE.yaml

1 participant