aboutsummaryrefslogtreecommitdiff
path: root/src/deliverable.c
Commit message (Collapse)AuthorAgeFilesLines
* Allow filtering of tags from repositories during build/test phaseJoseph Hunkeler2024-04-121-0/+44
| | | | | * The version requested and the tag resolved by git describe may be different if the project's maintainer tagged a commit object more than once. * If version 1.2.3 and 1.2.3a fall on the same commit, one can now filter the "a" to ensure the tag is reported correctly during build/test.
* Bootstrap delivery contextJoseph Hunkeler2024-04-121-2/+19
| | | | | | * Gives access to build information before directory creation * Better control over where data ends up * Decreases complexity related to uploading artifacts from a delivery tree
* Free directory pointerJoseph Hunkeler2024-04-121-0/+1
|
* Ignore request to initialize mission data if it's already thereJoseph Hunkeler2024-04-121-0/+4
|
* Only initialize the time, release name, and deferred package arrays if requiredJoseph Hunkeler2024-04-121-14/+12
|
* Only initialize the release name, and deferred package arrays if requiredJoseph Hunkeler2024-04-121-9/+17
|
* Protect INIFILEs from clobberingJoseph Hunkeler2024-04-121-3/+9
|
* conv_{str,str_noexpand}() attempt to free the destination before writing dataJoseph Hunkeler2024-04-121-0/+6
| | | | * Avoids memory leaks when updating destination with a repeated call
* Disable git output paginationJoseph Hunkeler2024-04-101-0/+3
|
* Setting the XDG_DATA_HOME won't work. Podman stores container files as root ↵Joseph Hunkeler2024-04-101-4/+0
| | | | at this location and can't be purged by the user without making a dangerous call or two. Again, the user can set HOME on their own accord.
* Remove HOME redirectionJoseph Hunkeler2024-04-101-5/+0
| | | | * If the user wants that, they need to reassign HOME manually prior to executing OMC
* Fix docker build errorJoseph Hunkeler2024-04-101-5/+9
| | | | * Inject template string into spec only when the delivery requires it. Otherwise, conda's JSON files, or the pypi index will be missing, or invalid.
* The default tag should use the build number as the version, not the full ↵Joseph Hunkeler2024-04-101-1/+1
| | | | build name
* Use rsync to copy artifacts to the docker build directoryJoseph Hunkeler2024-04-101-0/+20
|
* A conda package version will be the repository tag resolved by git describe, ↵Joseph Hunkeler2024-04-101-1/+1
| | | | or to the extact version requested by a [test: block if that's not possible.
* fixme: tag variableJoseph Hunkeler2024-04-101-0/+1
|
* Stop duplicating the jfrog authentication context for each upload context.Joseph Hunkeler2024-04-101-16/+17
| | | | | | * We only need one * RAM isn't peppered with auth data * The artifactory URL has been consolidated and exposed as a template variable: deploy.jfrog.url
* * Refactor delivery_index_wheel_artifacts to generate a dumb pypi indexJoseph Hunkeler2024-04-101-20/+68
| | | | * Injects --extra-index-url into deferred package installation command
* Fix new context nameJoseph Hunkeler2024-04-101-1/+1
|
* requirement_from_test() helper returns a pointer to a Test structureJoseph Hunkeler2024-04-101-59/+11
| | | | * Reduces complexity
* Move build/ directory creation into delivery_init_dirs_stage2Joseph Hunkeler2024-04-101-6/+8
|
* Consolidate INIFILE handling across the delivery contextJoseph Hunkeler2024-04-101-90/+71
| | | | * Break delivery_init() into separate populate_* functions
* Consolidate INIFILE handling across the delivery contextJoseph Hunkeler2024-04-101-13/+93
| | | | * Break delivery_init() into separate populate_* functions
* Rewriting the specfile is now a two stage processJoseph Hunkeler2024-04-101-80/+68
| | | | | * This allows for generating a template spec file that can consumed and manipulated by the Dockerfile, and OMC's machinery * To reduce complexity the tpl_* functions are not used.
* Add docker_validate_image_compression()Joseph Hunkeler2024-04-101-15/+4
|
* Add docker_sanitize_tag()Joseph Hunkeler2024-04-101-3/+5
| | | | * Replace invalid docker tag characters with dash ('-')
* Write conda installer to a temporary location instead of the current working ↵Joseph Hunkeler2024-04-101-17/+43
| | | | | | directory * Replaces function argument "delivery" with "ctx" for better consistency
* Increase buffer size to match input argument sizesJoseph Hunkeler2024-04-101-0/+1
|
* Filter disabled requirements from listJoseph Hunkeler2024-04-021-0/+14
| | | | * Temporary bandage. This needs to be its own function, and with real comment detection.
* Remove unused codeJoseph Hunkeler2024-04-021-4/+1
|
* Fix segfault in delivery dockerJoseph Hunkeler2024-04-021-2/+27
| | | | | * Generate docker tags if no tags are defined by the user * Only use a registry if one is defined by the user
* Refactor delivery_rewrite_spec()Joseph Hunkeler2024-04-021-37/+30
|
* When a wheel doesn't exist at the destination directory, move it there. ↵Joseph Hunkeler2024-04-021-1/+6
| | | | Otherwise, overwrite it with latest build
* Apply necessary changes to file_replace_text callsJoseph Hunkeler2024-04-021-7/+8
|
* Reenable installation via local wheelsJoseph Hunkeler2024-04-021-27/+33
|
* Reset HOME to point to a temporary directory to prevent contaminating the ↵Joseph Hunkeler2024-04-021-0/+7
| | | | user account's home directory with build artifacts, caches, and other artifacts
* Addresses undesired effect when based_on is in use.Joseph Hunkeler2024-04-021-1/+6
|
* Move system.{arch,platform} template registrations into delivery_init_platform()Joseph Hunkeler2024-04-021-0/+6
|
* Use new COE_CHECK_ABORTJoseph Hunkeler2024-04-021-4/+4
|
* More strlist operationsJoseph Hunkeler2024-04-021-5/+6
|
* Changes to strlist_*() functions:Joseph Hunkeler2024-04-021-10/+10
| | | | | Functions that modify the input StrList have been refactored to use `struct StrList **` instead of `struct StrList *`. * Fixes realloc error handling
* Add error handler for system.platformJoseph Hunkeler2024-03-241-1/+5
|
* Move deliver_init_tmpdir() next to path_store() call to clarify what is ↵Joseph Hunkeler2024-03-241-8/+9
| | | | happening to tmpdir
* Encapsulate the tox.ini generation.Joseph Hunkeler2024-03-221-8/+8
| | | | * This avoids telling the user we're about to modify the tox.ini if there's no real work to be done.
* Free resources on errorJoseph Hunkeler2024-03-221-4/+9
| | | | * TODO: Use a goto for this one.
* Increase command string size.Joseph Hunkeler2024-03-221-1/+1
| | | | * OMC_BUFSIZ should be long enough to accommodate larger than normal paths.
* Return on error immediately to avoid an invalid readJoseph Hunkeler2024-03-221-1/+0
|
* Remove the user-facing "${VAR}" notation.Joseph Hunkeler2024-03-221-10/+14
| | | | * runtime_* functions will continue to use this functionality in internally to support strings such "PATH=/example.bin:${PATH}"
* Free more members from the delivery contextJoseph Hunkeler2024-03-221-0/+4
| | | | | | | * Delivery.storage.output_dir * Delivery.storage.build_docker_dir * Delivery.deploy.jfrog[n].repo * Delivery.deploy.jfrog[n].dest
* Dynamically allocate Delivery.system.platform array.Joseph Hunkeler2024-03-221-0/+5
| | | | * This avoids compiler warnings about passing the address to a stack-allocated chunk of member in tpl_register.