aboutsummaryrefslogtreecommitdiff
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
* Bugfix: Allow cibuildwheel if docker is usablecibuildwheelJoseph Hunkeler2026-02-191-1/+0
| | | | * --no-docker is for disabling image builds, not wheels
* Error checking and sequencingJoseph Hunkeler2026-02-181-4/+13
| | | | | | * Add error checks for allocations * Check docker is usable on Linux, if not fall back to the host tools * check_system_requirements initializes the docker capabilities struct
* Only utilize cibuildwheel on linuxJoseph Hunkeler2026-02-131-2/+1
|
* Tentative solution for building wheels on modern OSesJoseph Hunkeler2026-02-131-3/+9
|
* Fix memory leak when reading a commentJoseph Hunkeler2026-02-131-0/+1
|
* errmsg argument must be a valid pointerretry-downloadJoseph Hunkeler2026-02-121-3/+4
| | | | * Remove redundant status check already performed by HTTP_ERROR()
* Use ssize_t to avoid rollover from strtol on user inputJoseph Hunkeler2026-02-121-3/+3
|
* Error message pointer must be validJoseph Hunkeler2026-02-121-1/+4
|
* Error message pointer must be validJoseph Hunkeler2026-02-121-1/+4
|
* CommentJoseph Hunkeler2026-02-121-0/+2
|
* Implement STASIS_DOWNLOAD_RETRY_SECONDSJoseph Hunkeler2026-02-121-0/+11
|
* Only set http_code on success. Return -1 otherise.Joseph Hunkeler2026-02-121-3/+4
|
* Change "ATTEMPT" to "RETRY" and emit vital informationJoseph Hunkeler2026-02-121-1/+1
|
* max_retries should use value of max_retries_strJoseph Hunkeler2026-02-121-1/+1
|
* Use snprintf for user_agent stringJoseph Hunkeler2026-02-121-1/+1
|
* Rename STASIS_DOWNLOAD_RETRIES to STASIS_DOWNLOAD_RETRY_MAXJoseph Hunkeler2026-02-121-1/+1
|
* Add a retry loop to downloadJoseph Hunkeler2026-02-111-30/+56
| | | | * Configurable with env var: STASIS_DOWNLOAD_RETRIES
* Merge pull request #121 from jhunkeler/timeout-in-test-blockJoseph Hunkeler2026-01-203-0/+19
|\ | | | | Timeout in test block
| * Allow per-test timeoutsJoseph Hunkeler2026-01-183-0/+19
| | | | | | | | * Test blocks without a timeout use the global timeout setting
* | Fixes number of seconds in an hour. Oops.timeout-hours-bugJoseph Hunkeler2026-01-161-1/+1
|/
* Trying to fix a buffer overflow reported by the CIJoseph Hunkeler2026-01-033-14/+18
| | | | * Locally ASAN wasn't complaining.
* Consolidate timer dataJoseph Hunkeler2026-01-022-22/+23
| | | | | * Add MultiProcessingTimer struct * Replace raw timespec and double counters with MultiProcessingTimer(s)
* Move utility functions to utils.cJoseph Hunkeler2026-01-023-18/+50
|
* Update multiprocessing to use semaphoreJoseph Hunkeler2025-12-316-69/+1233
| | | | | | | | | | | | | | | | | * Introduce a small public domain timespec handling library * Renamed MultiProcessingTask members _now and _seconds to _interval_start and _interval_stop * Added interval_elapsed member * Change elapsed member from type int to double * mp_pool_free no longer tries to free semaphores with empty names * semaphore_init uses the correct default value of 1 instead of 2. The bug was related to calling semaphore_wait before the child() process started and semaphore_post after the parent exited. Now we post before the child to prevent a deadlock * Replace sleep with usleep in mp_pool_join. Set to 100ms. * Replace time() with clock_gettime() (helper functions created to prevent mistakes) * Stop recording time when the process ends. This fixes a bug where a process ends and up to 3 different elapsed times were reported to the user. * Progress output is now always available, not only when pid > 0 * Implement seconds_to_human_readable and hook it up to progress reporting calls. Breaking down thousands of seconds in my head after a long run was mentally exhausting. * Cleaned up some if-statements; removed else-if for clarity * Implemented a global timeout for pool tasks * Add register_semaphore() and semaphore_handle_exit() to aid with clean up. On Darwin a dangling shared memory file will lead to unexpected failures. These are destroyed via atexit().
* Fix broken header guardJoseph Hunkeler2025-12-301-0/+1
|
* Implement task timeoutJoseph Hunkeler2025-12-304-0/+6
| | | | | | * Add argument: --task-timeout=1[s,m,h] * Timed out tasks are SIGKILL'd * If killing a task fails, the entire program ends
* Fix undefined PSEMNAMLEN on DarwinJoseph Hunkeler2025-12-241-0/+5
|
* Remove blank lineJoseph Hunkeler2025-11-181-1/+0
|
* Add destroy to exampleJoseph Hunkeler2025-11-181-0/+2
|
* Enforce maximum buffer length of `name`Joseph Hunkeler2025-11-181-1/+8
|
* Remove debugging codeJoseph Hunkeler2025-11-171-4/+0
|
* Do not print error from within functionJoseph Hunkeler2025-11-171-1/+0
|
* Document semaphore usageJoseph Hunkeler2025-11-172-1/+43
|
* Integrate --no-task-logging CLI argumentJoseph Hunkeler2025-11-141-11/+24
|
* Add --no-task-logging CLI argumentJoseph Hunkeler2025-11-142-0/+2
|
* Decrease length of semaphore nameJoseph Hunkeler2025-11-141-1/+1
|
* Flush buffersJoseph Hunkeler2025-11-141-0/+3
|
* Integrate semaphoreJoseph Hunkeler2025-11-141-1/+3
|
* Integrate semaphoreJoseph Hunkeler2025-11-141-0/+11
|
* Integrate semaphoreJoseph Hunkeler2025-11-142-3/+19
|
* Add semaphore wrapperJoseph Hunkeler2025-11-143-0/+44
|
* Squelch unused argument warningsJoseph Hunkeler2025-11-062-0/+4
|
* Delivery context is constantJoseph Hunkeler2025-11-061-1/+1
|
* Duplicate testsJoseph Hunkeler2025-11-061-0/+17
|
* Duplicate jfrog_authJoseph Hunkeler2025-11-061-0/+11
|
* Move docker struct duplication down to jfrog struct duplicationJoseph Hunkeler2025-11-061-9/+9
|
* Delivery context is not modifiedJoseph Hunkeler2025-11-061-1/+1
|
* Fix System struct comment positionsJoseph Hunkeler2025-11-041-4/+2
|
* Duplicate upload contextJoseph Hunkeler2025-11-041-1/+43
|
* Add delivery_duplicate() and strdup_maybe() helperJoseph Hunkeler2025-11-042-0/+110
| | | | | * The indexer needs to generate copies of the delivery context. The previous implementation (memcpy) left a lot to be desired. * strdup_maybe() might be useful elsewhere but for now I am leaving it static