binpash / pash

PaSh: Light-touch Data-Parallel Shell Processing
MIT License
547 stars 37 forks source link

feat: --assert_all_regions_parallelizable flag that has the same func… #722

Closed YUUU23 closed 1 month ago

YUUU23 commented 3 months ago

To introduce the --assert_all_regions_parallelizable flag (should exit with error when both UnparallelizableError and general exception are caught) and changing the original --assert_compiler_success flag to exiting with error only when general exceptions are caught (does not exit with error when UnparallelizableError are caught), the following were added:

Tested the above for expected behavior by running some intro scripts in the directory, and it does seem like we are exiting with error for --assert_compiler_success only when general exceptions are caught and not the unparallelizable ones. We are also exiting on error for both reasons when --assert_all_regions_parallelizable flag is on. When both flags are used at the same time, we follow the behavior of --assert_all_regions_parallelizable. PaSh testing scripts locally also seems to pass all tests.

github-actions[bot] commented 3 months ago

OS:ubuntu-20.04 Sun Jun 16 21:02:20 UTC 2024 intro: 2/2 tests passed. interface: 41/41 tests passed. compiler: 54/54 tests passed.

github-actions[bot] commented 3 months ago
OS = CPU = Ram = Hash = 349efe6d Kernel=
yizhengx commented 3 months ago

LGTM :-)

github-actions[bot] commented 2 months ago
OS = CPU = Ram = Hash = 9e67a362 Kernel=
github-actions[bot] commented 2 months ago

OS:ubuntu-20.04 Fri Jul 12 20:03:49 UTC 2024 intro: 2/2 tests passed. interface: 41/41 tests passed. compiler: 54/54 tests passed.

github-actions[bot] commented 2 months ago
OS = CPU = Ram = Hash = 536bd8e5 Kernel=
github-actions[bot] commented 2 months ago

OS:ubuntu-20.04 Fri Jul 12 20:06:57 UTC 2024 intro: 2/2 tests passed. interface: 41/41 tests passed. compiler: 54/54 tests passed.

angelhof commented 1 month ago

Thank you for this fix!!