Skip to content

test(e2e): default the controls check to Gatepost main - #14

Merged
TN019 merged 17 commits into
mainfrom
test/verified-hub-revision
Dec 1, 2026
Merged

TN019 merged 17 commits into
mainfrom
test/verified-hub-revision

Conversation

@TN019

@TN019 TN019 commented Dec 1, 2026

Copy link
Copy Markdown

Why

scripts/e2e-gatepost.sh controls stopped with an error unless GATEPOST_REF was set, although the README runs it against main. The double-admission log line also still used the old "race" wording.

What changed

  • scripts/e2e-gatepost.sh controls defaults GATEPOST_REF to main; setting the variable still overrides it. The branch first pinned the default to the race-fix revision and then settled on main, which every Gatepost checkout has.
  • e2e/real-double-admission.spec.ts prints double admission <mode>: tries=<n>, double-green=<n> instead of race <mode>: ....

How to verify

grep -n 'GATEPOST_REF' scripts/e2e-gatepost.sh

With Docker and a Gatepost checkout at ../gatepost, scripts/e2e-gatepost.sh controls now runs against main without extra variables.


背景

README 里是用 main 运行 scripts/e2e-gatepost.sh controls 的,但脚本在没设置 GATEPOST_REF 时会直接报错退出。另外,双闸机放行的日志行还沿用旧的“race”说法。

改动

  • scripts/e2e-gatepost.sh controls 的 GATEPOST_REF 默认为 main,设置该变量时仍以变量为准。这个分支起初把默认值固定为竞态修复所在的版本,最后改用 main,因为每个 Gatepost 检出都有这个分支。
  • e2e/real-double-admission.spec.ts 的输出从 race <mode>: ... 改为 double admission <mode>: tries=<n>, double-green=<n>。

怎么验证

grep -n 'GATEPOST_REF' scripts/e2e-gatepost.sh

安装 Docker 并在 ../gatepost 准备 Gatepost 检出后,scripts/e2e-gatepost.sh controls 无需额外变量即可针对 main 运行。

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Author

Mateo Rossi · reviewer

Why not keep the verified race-fix revision as the default?


为什么不保留已验证过的竞态修复版本作为默认值?

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Author

Noah Williams · author

A pinned short id only resolves in a checkout that already has that commit, while main always exists and matches the README. Anyone who needs the exact revision can still set GATEPOST_REF.


固定的短 ID 只有在已经包含该提交的检出里才能解析,而 main 总是存在,也和 README 一致。需要指定确切版本时,仍然可以设置 GATEPOST_REF。

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Author

Ingrid Larsen · reviewer

Does anything parse the renamed log line?


改名后的日志行有没有被别的地方解析?

@TN019

TN019 commented Dec 1, 2026

Copy link
Copy Markdown
Author

Noah Williams · author

No, it is console output for the person running the check; nothing in the repository reads it.


没有,它只是给运行检查的人看的控制台输出,仓库里没有任何地方读取它。

@TN019
TN019 merged commit ce16003 into main Dec 1, 2026
1 check failed
@TN019
TN019 deleted the test/verified-hub-revision branch December 1, 2026 00:15
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.

1 participant