Repository navigation
test(e2e): default the controls check to Gatepost main - #14
Merged
Merged
Conversation
Author
|
Mateo Rossi · reviewer Why not keep the verified race-fix revision as the default? 为什么不保留已验证过的竞态修复版本作为默认值? |
Author
|
Noah Williams · author A pinned short id only resolves in a checkout that already has that commit, while 固定的短 ID 只有在已经包含该提交的检出里才能解析,而 |
Author
|
Ingrid Larsen · reviewer Does anything parse the renamed log line? 改名后的日志行有没有被别的地方解析? |
Author
|
Noah Williams · author No, it is console output for the person running the check; nothing in the repository reads it. 没有,它只是给运行检查的人看的控制台输出,仓库里没有任何地方读取它。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
scripts/e2e-gatepost.sh controlsstopped with an error unlessGATEPOST_REFwas set, although the README runs it againstmain. The double-admission log line also still used the old "race" wording.What changed
scripts/e2e-gatepost.sh controlsdefaultsGATEPOST_REFtomain; setting the variable still overrides it. The branch first pinned the default to the race-fix revision and then settled onmain, which every Gatepost checkout has.e2e/real-double-admission.spec.tsprintsdouble admission <mode>: tries=<n>, double-green=<n>instead ofrace <mode>: ....How to verify
grep -n 'GATEPOST_REF' scripts/e2e-gatepost.shWith Docker and a Gatepost checkout at
../gatepost,scripts/e2e-gatepost.sh controlsnow runs againstmainwithout 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运行。