Repository navigation
util_viewer finds a launch's workdir timing, and --update-allowlist keeps the allowlist's notes - #466
Merged
Conversation
…e its launch directory util_viewer looked for a run's timing.json beside the tog.so its log names. Since each process launches from <workdir>/launch-<pid>/ (contract.dir_for), TOGSim is handed the launch directory's tog.so, and the workdir's timing.json is one level up: neither the automatic lookup nor --timing's join by directory name matched a current log. contract.workdir_of(path) is the inverse of dir_for, the workdir a path in a launch directory belongs to; util_viewer joins through it (join_workdir_timing, out of main). test_breakdown_viewer: a log naming launch-<pid>/tog.so joins the workdir's timing.json; the old lookup found none.
… it drops an entry triton_route_sweep.py --update-allowlist rewrote triton_route_passing.txt from a three-line header and the passing tests, so the 225 lines of notes above the entries went with it, and it returned 0 even when an allowlisted test had failed and so left the list. write_allowlist keeps the comment block above the first entry, rewrites the entries, and returns the ones it drops; the sweep prints them and exits 1 when there are any. test_route_allowlist (in the CI matrix beside the other system tests that emit no kernel): the header stays, the entries are replaced, the dropped one is named.
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.
Two tool bugs found while reading the refactor (#449-#460). Each commit carries a test that fails on the old code.
<workdir>/launch-<pid>/(contract.dir_for), so TOGSim is handed the launch directory'stog.so, and the workdir'stiming.jsonsits one level up.timing.jsonbeside thetog.so, so neither its automatic lookup nor--timing's join by directory name matched a current log.contract.workdir_of(path)is the inverse ofdir_for. util_viewer joins through it, injoin_workdir_timing, which is moved out ofmain.test_breakdown_viewer.--update-allowlistkeeps the allowlist's comments and fails when it drops an entry.triton_route_passing.txtfrom a three-line header, so the ~225 lines of notes above the entries were lost.write_allowlistkeeps the comment block above the first entry and returns the entries it drops. The sweep prints them and exits 1.test_route_allowlist, added to the CI matrix beside the other system tests that emit no kernel.