-
Notifications
You must be signed in to change notification settings - Fork 5
PR for #139: Improving logging to avoid concurrency issues. #167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
liaochris
merged 82 commits into
main
from
139-sconscriptlog-does-not-capture-logs-from-multiple-scripts
Jun 19, 2026
Merged
Changes from all commits
Commits
Show all changes
82 commits
Select commit
Hold shift + click to select a range
4ab2405
#139 bd issue demo
zhizhongpu 0e6a79b
Merge branch 'main' into 139-sconscriptlog-does-not-capture-logs-from…
liaochris ac6d472
Merge branch 'main' into 139-sconscriptlog-does-not-capture-logs-from…
liaochris 61c6ad4
v2.do bug
zhizhongpu e586b83
revert v2 bug source
zhizhongpu 6ce5c64
scons don't break bug upon stata error
zhizhongpu e4f39ae
proposed fix
liaochris 1952c11
#149 bd test raising stata error
zhizhongpu 8bba674
Merge branch 'main' into 139-sconscriptlog-does-not-capture-logs-from…
jmshapir 288af3c
Merge branch 'main' into 139-sconscriptlog-does-not-capture-logs-from…
liaochris 788086e
Merge branch 'main' into stata-builder-bug-demo
liaochris 4c53e87
Merge branch 'main' into stata-builder-bug-demo
liaochris ee9de78
Merge branch 'main' into 139-sconscriptlog-does-not-capture-logs-from…
liaochris 8bb2eda
first implementation pass #139
79015a0
clean up scripts #139
liaochris 62b6da2
comments on improvements #139
liaochris 99f7116
rerun with bug fix and improvements #149
liaochris fdbe558
restore executables #149
liaochris 5c9c22a
update naming #149
liaochris 779d6e4
Merge branch 'stata-builder-bug-demo' into 139-sconscriptlog-does-not…
liaochris 3fe2848
updates from test log removal #139
liaochris 23ba203
improve naming in stata builder helpers #139
liaochris 22b89b8
improve builders #139
liaochris 74d4884
simplify builder log #139
liaochris ccc224a
clean up code #139
liaochris 33e21b7
remove improvements doc #139
liaochris 7e94017
update stata builder #139
liaochris 096cd7a
add test for stata runtime #165
liaochris 825f6da
Merge branch 'stata-builder-bug-demo' into 139-sconscriptlog-does-not…
liaochris f57d949
update github actions workflows #139
liaochris 5bdec68
rename files #139
liaochris 1ecefea
update log format #139
liaochris 7b56576
improve logging #139
liaochris a85671b
remove traces of sconscript.log #139
liaochris 09fc63c
Update build_stata.py
liaochris 5750847
clean up #139
liaochris 5ede002
confirm tests work #165
liaochris 59745ac
Merge branch 'stata-builder-bug-demo' into 139-sconscriptlog-does-not…
liaochris a6eaa33
[run-actions-all] #165
liaochris 802f819
[run-actions-all] #165
liaochris 06e5294
refer log not found error to executable #165
liaochris 2407ae0
recompile to eliminate log errors #165 [run-actions-all]
liaochris 0780f42
git tracked run logs #139
liaochris 98cc949
Merge branch 'stata-builder-bug-demo' into 139-sconscriptlog-does-not…
liaochris 9a17116
fix matlab log + add start/end time #139
liaochris a68018e
Merge branch 'main' into 139-sconscriptlog-does-not-capture-logs-from…
simonessigaberg 877f75c
Merge branch 'main' into 139-sconscriptlog-does-not-capture-logs-from…
liaochris 34bc40d
rerun #139
liaochris a8fecab
Merge branch '139-sconscriptlog-does-not-capture-logs-from-multiple-s…
liaochris 9198a1e
recompile scons #139
liaochris 9a2940f
logs #139
liaochris 06fce0e
Merge branch 'main' into 139-sconscriptlog-does-not-capture-logs-from…
liaochris b743675
#139 fix merge issues
liaochris 5ac79a6
simplify failure detection #167
liaochris 370073a
relocate log + update dependencies + add test for mid-crash + remove …
liaochris 61f7c30
rerun #167
liaochris 7c43186
test fix to save data import dir #167
liaochris c0ee146
fix import #167
liaochris ba71fec
[run-actions-all] #167 test
liaochris 57b6c55
[run-actions-all] #167 anotoher save data test
liaochris 16c4143
fix paths #167 [run-actions-all]
liaochris 648f6f5
#139 error
zhizhongpu 9b2c6f8
Revert "#139 error"
zhizhongpu 3a2ad44
update log failures check #167 [run-actions-all]
liaochris 7c9d7ee
Merge branch '139-sconscriptlog-does-not-capture-logs-from-multiple-s…
liaochris 099bab2
Merge branch 'main' into 139-sconscriptlog-does-not-capture-logs-from…
liaochris f71e331
#139 cl extra space
zhizhongpu b52f9d9
#167 robustness for builder log #167
liaochris 8ceda1c
Merge branch '139-sconscriptlog-does-not-capture-logs-from-multiple-s…
liaochris d343653
Update source/lib/JMSLab/builders/jmslab_builder.py
liaochris 8a802e3
#167 lyx tex compilation docstrings #167
liaochris 5a0d1d4
Merge branch '139-sconscriptlog-does-not-capture-logs-from-multiple-s…
liaochris e2c2cc2
build docstrings #167
liaochris 3e71121
add logdir docstring for scripts #167
liaochris f61d18a
latest compile #167
liaochris ffe85cb
Log ignore for #167
jmshapir 9d94a3b
#139 local run
zhizhongpu 1805183
Revert "#139 local run"
zhizhongpu 36ce29b
make filenames unique, update bibtex logging #167
liaochris ddc3265
killing terminal mid scons run returns failed script, not failed log …
liaochris 1839fd9
make platform agnostic #167
liaochris a245bc4
update lyx to latest version #167
liaochris File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| #!/usr/bin/env python3 | ||
| import csv | ||
| import sys | ||
| from pathlib import Path | ||
|
|
||
| RUN_CSV = Path("output") / "run.csv" | ||
|
|
||
| def Main(): | ||
| with open(RUN_CSV, newline="") as f: | ||
| rows = list(csv.DictReader(f)) | ||
|
|
||
| script_failed = [row for row in rows if row["success"] != "1"] | ||
|
|
||
| sconstruct = Path("sconstruct.log").read_text() | ||
| scons_failed = ( | ||
|
liaochris marked this conversation as resolved.
|
||
| "done building targets." not in sconstruct | ||
| or "errors occurred during build" in sconstruct | ||
| or "building terminated because of errors" in sconstruct | ||
| ) | ||
|
|
||
| if not script_failed and not scons_failed: | ||
| print("All builds succeeded.") | ||
| return 0 | ||
|
|
||
| print("Failed scripts:") | ||
| for row in script_failed: | ||
| print(" -", row["filename"]) | ||
| if scons_failed: | ||
| print("SCons build failed. Check sconstruct.log for details.") | ||
| return 1 | ||
|
|
||
| if __name__ == "__main__": | ||
| sys.exit(Main()) | ||
This file was deleted.
Oops, something went wrong.
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| /drive | ||
| /datastore | ||
| /temp | ||
| /log | ||
| *.pyc | ||
| *.lyx~ | ||
| *.lyx# | ||
|
|
||
|
toogiii marked this conversation as resolved.
|
Binary file not shown.
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.