Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Finish mp_pool_init() testadd-multiprocessing | Joseph Hunkeler | 2024-09-20 | 1 | -8/+31 |
| | | | | * Not sure what I was going to do with that data array, but whatever it was, it was wrong. | ||||
* | Export all variables when sourcing conda's profile scripts | Joseph Hunkeler | 2024-09-20 | 1 | -1/+1 |
| | | | | * This results in a fully activated environment; shell functions and all | ||||
* | Fix a likely buffer overflow | Joseph Hunkeler | 2024-09-18 | 1 | -1/+1 |
| | | | | * The log_root is appended to log_file, and might exceed the defined length. | ||||
* | Fix test code and expected values within test code | Joseph Hunkeler | 2024-09-18 | 1 | -1/+1 |
| | | | | * Errant undo operation! | ||||
* | Fix syntax issue in rt_generic.sh | Joseph Hunkeler | 2024-09-18 | 1 | -1/+1 |
| | | | | * line 106: [: missing `]' | ||||
* | More tests | Joseph Hunkeler | 2024-09-18 | 1 | -0/+30 |
| | |||||
* | Fix incorrect failure count | Joseph Hunkeler | 2024-09-18 | 1 | -1/+2 |
| | | | | * No longer adds the raw status value to the failure count. Just increment it instead. | ||||
* | Comment get_task_duration | Joseph Hunkeler | 2024-09-18 | 1 | -0/+2 |
| | |||||
* | Move process status checks outside of the if-statement | Joseph Hunkeler | 2024-09-18 | 1 | -10/+18 |
| | | | | | * Reverse the order of checks so signals actually get reported when they occur * Changed "Task finished" to "Task ended". "Finished" sounds more like "success" and might get confusing when an error occurs | ||||
* | mp_pool_kill marks PIDs as unused | Joseph Hunkeler | 2024-09-18 | 1 | -0/+2 |
| | |||||
* | Rename mp_task to mp_pool_task | Joseph Hunkeler | 2024-09-18 | 4 | -5/+5 |
| | |||||
* | Bugfix: log_show_contents() did not close FILE pointer | Joseph Hunkeler | 2024-09-18 | 1 | -0/+1 |
| | |||||
* | Remove workaround.tox_posargs | Joseph Hunkeler | 2024-09-18 | 1 | -1/+0 |
| | |||||
* | Remove short circuit test code | Joseph Hunkeler | 2024-09-18 | 2 | -35/+1 |
| | | | | * Remove exmain() and dead comments from main() | ||||
* | Fix test status expectation | Joseph Hunkeler | 2024-09-18 | 2 | -4/+3 |
| | | | | * Fix child not returning result of execvp(). task->status is for program status, not fork() status. | ||||
* | Fix format spacing | Joseph Hunkeler | 2024-09-18 | 1 | -1/+1 |
| | |||||
* | Implement mp_pool_show_summary | Joseph Hunkeler | 2024-09-18 | 1 | -3/+10 |
| | |||||
* | Add pool summary and elapsed time output | Joseph Hunkeler | 2024-09-18 | 2 | -0/+60 |
| | | | | | | | * Add get_task_duration() * Add get_pool_show_summary() * Add signaled_by member to MultiProcessingTask * Add time_data member to MultiProcessingTask for duration tracking | ||||
* | Wait for signaled processes to hang up | Joseph Hunkeler | 2024-09-18 | 1 | -1/+5 |
| | | | | * Only initiate a kill if we have more than one process. The current process is already failed out, no need to terminate it again. | ||||
* | Set task status to -1 by default | Joseph Hunkeler | 2024-09-18 | 1 | -0/+3 |
| | |||||
* | Add comments, remove dead code | Joseph Hunkeler | 2024-09-18 | 1 | -2/+24 |
| | |||||
* | Break parent/child calls into static functions | Joseph Hunkeler | 2024-09-18 | 1 | -71/+86 |
| | |||||
* | Add test_multiprocessing.c | Joseph Hunkeler | 2024-09-18 | 1 | -0/+73 |
| | |||||
* | Split mp_task into to functions | Joseph Hunkeler | 2024-09-18 | 1 | -63/+74 |
| | |||||
* | Guard against overrun | Joseph Hunkeler | 2024-09-18 | 1 | -2/+6 |
| | |||||
* | Update example config | Joseph Hunkeler | 2024-09-18 | 1 | -0/+13 |
| | |||||
* | Fix doxygen comments | Joseph Hunkeler | 2024-09-18 | 1 | -3/+3 |
| | |||||
* | Add multiprocessing.h to core.h | Joseph Hunkeler | 2024-09-18 | 3 | -2/+2 |
| | | | | * Remove multiprocessing.h from other files | ||||
* | Fix opt_flags assignment. | Joseph Hunkeler | 2024-09-18 | 1 | -1/+3 |
| | |||||
* | Fix mp_pool_join example | Joseph Hunkeler | 2024-09-18 | 1 | -1/+1 |
| | |||||
* | Workaround for a bug in firewatch | Joseph Hunkeler | 2024-09-18 | 1 | -1/+1 |
| | |||||
* | Fix sem_open initial state | Joseph Hunkeler | 2024-09-18 | 2 | -29/+16 |
| | | | | | | * Move slot->gate assignment to mp_pool_task() * Remove mmap() to slot->gate. * Change type of ident and log_root variables for the sake of easy (fewer maps) | ||||
* | Darwin: Remove mmap MAP_POPULATE flag | Joseph Hunkeler | 2024-09-18 | 1 | -3/+3 |
| | |||||
* | Darwin portability: Use sem_open and sem_close instead of sem_init and ↵ | Joseph Hunkeler | 2024-09-18 | 2 | -4/+8 |
| | | | | sem_destroy | ||||
* | Correct package name | Joseph Hunkeler | 2024-09-18 | 1 | -1/+1 |
| | |||||
* | Fixing headers | Joseph Hunkeler | 2024-09-18 | 2 | -12/+3 |
| | |||||
* | Update integration test to utilize the multiprocessing pool | Joseph Hunkeler | 2024-09-18 | 2 | -5/+30 |
| | |||||
* | Implement multiprocessing pool(s) | Joseph Hunkeler | 2024-09-18 | 7 | -86/+252 |
| | | | | | * Adds --cpu-limit and --parallel-fail-fast arguments * Adds disable, parallel, and setup_script keys to [test] blocks | ||||
* | Move guard_ macros to core_mem.h | Joseph Hunkeler | 2024-09-18 | 5 | -10/+515 |
| | | | | * Move core_mem.h below config.h | ||||
* | Reference basetemp_dir and junitxml_file functions in README.md (#44) | Joseph Hunkeler | 2024-09-18 | 1 | -11/+11 |
| | |||||
* | Fixes incorrect reference to conda environment variable (#45) | Joseph Hunkeler | 2024-09-18 | 1 | -1/+1 |
| | | | | * Change CONDA_ENV_DEFAULT to CONDA_DEFAULT_ENV * Thanks, @GeorgeJCleary! | ||||
* | Fix errant change of "cmd" string (#42) | Joseph Hunkeler | 2024-09-16 | 1 | -2/+2 |
| | | | * Was supposed to be pandoc_versioned_args | ||||
* | Fix typo: (#41) | Joseph Hunkeler | 2024-08-30 | 4 | -8/+8 |
| | | | * Change python_compat to python_compact | ||||
* | Bug fix: CONDA_ENV_DEFAULT should be CONDA_DEFAULT_ENV (#40) | Joseph Hunkeler | 2024-08-29 | 1 | -1/+1 |
| | |||||
* | Add test_environment.c (#39) | Joseph Hunkeler | 2024-08-29 | 1 | -0/+76 |
| | |||||
* | Pandoc improvements (#37) | Joseph Hunkeler | 2024-08-28 | 3 | -12/+355 |
| | | | | | | | | | | | | | | | * Tweak pandoc command and add a style sheet * Only search for platform sub-string when valid * Add get_pandoc_version * Add version checking and set options accordingly * Add support for globals.sysconfdir * Add missing brace * Remove options that are created dynamically | ||||
* | System calls fixup (#38) | Joseph Hunkeler | 2024-08-28 | 2 | -47/+20 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix up shell() behavior * Removes dead code after execl() * Return the return value of execl() immediately * Output redirection fix: if f_stderr and redirect_stderr were both set, stderr was not redirected * Move the file handles into the child process * Bash now executes with --norc to avoid clobbering environment variables. This mimics /bin/sh behavior. * Fix test script environment * shell() already provides a temporary script. Not jumping into another sub-shell should preserve help preserve the top-level environment. * Try a different approach using declare -f * Revert "Try a different approach using declare -f" This reverts commit ea8ec855c3c6870d29c55afe3787afb2c05026a1. * Revert "Fix test script environment" This reverts commit 0a4efe972a78378eba5c5fbc6819c39b3cc6c9cb. * Change script permissions: 0700 * Force conda reactivation in test script * Switch to the usual environment reactivation method | ||||
* | More tests (#36) | Joseph Hunkeler | 2024-08-26 | 2 | -0/+133 |
| | | | | | * Add test_copy.c * Add test_wheel.c | ||||
* | CI add pandoc (and bug fixes) (#35) | Joseph Hunkeler | 2024-08-20 | 3 | -1/+19 |
| | | | | | | | | | * Fix pandoc command regression * Add space between destination and input * Add pandoc dependency * Dump output of indexed files | ||||
* | Update mission configs (#34) | Joseph Hunkeler | 2024-08-20 | 9 | -103/+211 |
| | | | | | | | | | | | * Clean package caches (saves about 1GB of layer-space) * Update installation instructions * Update layout * Use template variables where appropriate * Instructions now provide release notes in one place * Pandoc now uses --standalone |