Repository navigation
Finish a Factory CI verification whose check runs outgrow the node's output cap - #891
Merged
Merged
Conversation
The check-runs read asked GitHub for whole runs, about 3.5 KB each, and the node keeps 64 KiB of a command's output, so a pull request with twenty check runs got a cut answer that failed to parse; the CI poll read that signal-less error as pending and asked again every tick, and the Task stayed verifying with its required check green. The read now keeps only name, status, conclusion and link per run with --paginate, an undecided read waits out the poll interval, and an unreadable answer is its own poll outcome: it decides nothing, and the third one in a run leaves a notice on the Task.
A run sent back to its worker by an older build kept its attempt open, so a Task reported again carried two attempts shown as running. The restart that starts the last one again now closes every earlier unfinished attempt as cancelled, since nothing will answer it.
hide factory config printed the disk floor as disk_floor_bytes while --set takes disk_floor_gb, and a key --set does not take was refused with only config_invalid. The answer now carries settable, each setting the record keeps in another unit under its --set key and unit, and an unknown key is refused naming it and every key --set takes.
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.
Summary
CI가 초록인데 Factory Task가
검증 중에서 끝나지 않던 원인을 고칩니다 (운영 Factory의 T-1 #872, T-2 #873).check-runs 읽기가 run 전체(하나에 약 3.5 KB)를 받았고, node는 명령 출력을 64 KiB까지만 남깁니다.
check run이 20개인 PR은 답이 약 71 KB라 잘렸고, 잘린 JSON은 파싱에 실패했습니다. CI poll은 신호 없는 오류를
pending으로 읽었고, 2초 tick마다 다시 물었습니다.gh api --paginate ... --jq '.check_runs[] | {name, status, conclusion, html_url}'로 run마다 한 줄(약 180 B)만 받습니다.Unread입니다. 아무것도 결정하지 않고 실패로 세지 않으며, 한 run에서 세 번째면 Task에 notice를 남깁니다.cancelled로 닫습니다 (T-2처럼running이 둘 남은 기록).hide factory config의 답에settable(disk_floor_gb같이--set이 받는 키와 단위)을 더하고, 모르는 키는 그 키와 받는 키 전체를 말하며 거절합니다.Review
config, ms/bytes)를 그대로 두고settable을 덧붙였습니다. web 설정 화면이config.disk_floor_bytes를 읽어 이름을 바꾸지 않았습니다.hide-factory/src/project.rs- failure path. 오류도ci_pending간격을 타므로 main check의 오류 다음 30초는Pending으로 답합니다.hide-node-link/src/factory.rs- node가 만드는gh명령 줄. 이전 node가 답한 전체 JSON 한 줄은 run이 아니어서Unread로 읽힙니다 (잘못된 pass가 아님).Evidence
verify.started뒤verify.finished없이 7시간, 두 PR의 requiredverify는 success.gh로 위 두 commit의 전체 답이 64 KiB를 넘고, 새 명령의 답은 3507 B로verifysuccess를 담는 것.github::a_commit_with_many_check_runs_passes_on_its_named_check- node의 64 KiB 자르기를 흉내 낸 fake gh에서 3.5 KB run 20개가Passed.engine::an_unread_verification_answer_is_asked_again_and_told_to_a_person,engine::a_task_stuck_verifying_with_two_unfinished_attempts_concludes_after_a_restart,github::an_unreadable_check_answer_is_unread_and_asked_again_at_its_pace,engine::config_prints_each_setting_under_the_key_set_takes_and_names_a_refused_key.verify-cargo.sh lint,hakari, workspace nextest,scripts/tests319개,check-core-touches-no-machine,check-no-attribution,check-no-workstation-identity통과.gh답과 fake 경로로 나눠 확인했습니다.Passed). 설치는 하지 않았습니다.contracts/hide-cli.json에는 factory 명령이 없어 바꿀 것이 없었습니다.LabelledIssues200개 본문 등)는external.failed로 드러나지만,git diff --name-only(risk path)는 잘려도 조용합니다. 이슈로 따로 남기는 게 좋겠습니다.