summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-07-20just-mr: Git root must always be a directoryOliver Reiche
... and not only located on the file system. This change enables the use of Git bundles as "non-local" repositories.
2022-07-12rules documentation: mention use cases for providersKlaus Aehlig
While there, fix a few typos in the same document as well.
2022-07-08In install-cas be more liberal in parsing artifact identifiersKlaus Aehlig
2022-07-07just-mr: more safely create directoriesKlaus Aehlig
While the just binary itself was carefully created to work correctly in the presence of several instances running simultaneously, the just-mr.py script started as proof-of-concept out of the need to conveniently generate a multi-repository configuration for just. Nevertheless, it is now actually used, so parallel running instances have to be taken seriously. Moreover, we have to ensure that in case of failures, we don't leave the local build root in a state giving a false impression on how an unpacked archive looks like. Both can be avoided by always working on temporary directories and, should a persistent location be needed, only renaming to the final desitantion once everything is set up correclty.
2022-07-07Traverser: Bring task system down gracefully on errorOliver Reiche
2022-07-07TaskSystem: Implement shutdownOliver Reiche
2022-07-06TaskSystem: Support wait for finishOliver Reiche
2022-07-06TaskSystem: Fix early shutdownOliver Reiche
... conceptually, it was possible that a previous task decrements the `num_threads_running_` counter before it is incremented by the next task. Therefore, we have to unify the queue and thread status in a single counter (`total_workload_`) and ensure that woken threads increment it before decrementing it for popping a queue.
2022-07-06External PCRE: Give meaningful error if OS/ARCH is not setOliver Reiche
2022-07-06When requesting action input, also provide action informationKlaus Aehlig
Extend the --request-action-input option to also provide command line, environment, etc, of the requested action. As this option is mainly for debugging, having that information available via the analyse subcommand is useful; for build/install that change does not make a difference anyway.
2022-07-05Make remote endpoint specification part of analysisKlaus Aehlig
The remote execution endpoint shards the target-level cache; still, for analysis, we want to specify a particular target-level cache, e.g., to analyse the inputs of a particular action that failed remotely. Note that the action identifier depends on the target-level cache in question, due to the extensional projection implicit in target-level caching.
2022-07-05Remove option --persistentKlaus Aehlig
... as the --request-action-input option provides a clean way of restoring the inputs to a specific action, without the need of interacting with the internal directory structure of the tool. In particular, the new option also works for remote builds.
2022-07-05Implement staging of action inputsKlaus Aehlig
Add an option to change the requested result to be (as artifacts) the input stage of a specified action. In this way, the inputs to individual actions can conveniently be inspected, e.g., for local debugging of why an action failed.
2022-07-05ResultMapTargetMap: support looking up an action by identifierKlaus Aehlig
2022-07-05Fix wrong output pipe for version info in mainPaul Cristian Sarbu
2022-07-04Externals: Give meaningful error if OS/ARCH is not setOliver Reiche
... which is required for boringssl, libg2 and grpc.
2022-07-04Main: Fix typo in include guardsOliver Reiche
2022-07-04Drop copy constructor from atomic valueOliver Reiche
2022-07-04Drop copy constructor from linked mapsOliver Reiche
2022-07-04Drop copy constructor for expressionsOliver Reiche
2022-07-04Improve move semantics with smart pointersOliver Reiche
2022-06-30Rules: Split library result and library artifact expressionOliver Reiche
2022-06-30Add section-5 man page for just-mr repository config file formatPaul Cristian Sarbu
2022-06-30just-mr: retry removal of temporary directoriesKlaus Aehlig
When converting a directory to git, just-mr.py shells out to git to to the actual conversion. However, not in all cases git waits for its children, in particular when deciding to implicitly run git-gc ("Auto packing the repository in background for optimum performance.") This causes problems, as we assume that after git finishes we safely can remove the temporary directory from which we pulled; however, the shutils.rmtree function we call for this assumes the directory to be removed not to be changed by other processes---like git removing the file gc.pid. Work around this, by retrying the removal of no longer needed temporary directories.
2022-06-29Error reporting: also abbreviate the expression in the stack traceKlaus Aehlig
... to the same limit as the values occuring in the stack.
2022-06-29rename private member in compliance with the used code styleAlberto Sartori
2022-06-29Use a more meaningful abbreviation of expression valuesKlaus Aehlig
... in error messages. The outer structure is usually more important than the the details of the first element.
2022-06-29util: support abbreviating jsonKlaus Aehlig
To an intended number of characters by leaving out the parts after a given depth. As the correct depths has to be determined, the JSON value is serialized several times; hence the method is slow, but acceptable for the generation of error messages.
2022-06-28Support more verbose error reportingKlaus Aehlig
2022-06-28Generic: add support for out_dirsAlberto Sartori
Before this patch, the built-in "generic" type allowed for just output files, listed in the field "outs". Now, the type also supports output directories, listed in the "out_dirs" field. The output directories are created before the command is executed.
2022-06-28sort and deduplicate outputs before creating the actionAlberto Sartori
2022-06-28define new header-only library for vector manipulationAlberto Sartori
2022-06-28improve error message when outpus are not disjointAlberto Sartori
2022-06-28add parenthesis to emphasize the order of evaluationAlberto Sartori
2022-06-27Share: Add section 5 man page for repository config formatOliver Reiche
2022-06-27just version information: support VERSION_EXTRA_SUFFIXKlaus Aehlig
... which, if defined, is appended to the suffix string. In this way, versions can be forked, e.g., if non-upstream changes are included.
2022-06-24Add a version subcommandKlaus Aehlig
To also allow identifying snapshot versions in a meaningful way, we support embedding SOURCE_DATE_EPOCH which ought to be set to the commit time of the commit used.
2022-06-24Add man page describing the action graph file formatKlaus Aehlig
2022-06-24action deserialisation: accept null for "may_fail"Klaus Aehlig
In that way, we are consistent with all other values in that there is a way to positively state that the default value should be taken. While there, fix a wrong error message.
2022-06-24Tutorial: Add section about testsOliver Reiche
2022-06-23update man 1 pageAlberto Sartori
add details for the --action-timeout and -f,--log-file command line options
2022-06-23Upd rules doc on writable directories available to test runnersPaul Cristian Sarbu
2022-06-23Add new distdir repo bootstrap testPaul Cristian Sarbu
2022-06-23Add distdir repo logic to bootstrap.pyPaul Cristian Sarbu
2022-06-23Fix style of bootstrap.pyPaul Cristian Sarbu
2022-06-23Add distdir repo to just config and its targets filePaul Cristian Sarbu
2022-06-23Fix handling of existing tmp paths in just-mrPaul Cristian Sarbu
2022-06-23Add distdir repo type in just-mrPaul Cristian Sarbu
2022-06-23Extract useful logic into own functions in just-mrPaul Cristian Sarbu
2022-06-23Fix style of just-mrPaul Cristian Sarbu