summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-04-10Release 1.2.5v1.2.5Klaus Aehlig
2024-04-10bugfix: cli: remote-execution-property: allow for accumulating multiple pairs.Alberto Sartori
Before this patch, if the option `--remote-execution-property KEY:VAL` is repeated multiple times (also with different `KEY`s), only the last one is taken into account. This patch fixes the intended behavior. (cherry picked from commit 2e953b04bbd8e619172c9d0eeafd0342700d6ee9)
2024-04-10bug fix in expresion, Union: propagate the disjointness propertyKlaus Aehlig
To avoid too many intermediate results, we compute the union of a list in a divide and conquer fashion. Of course, for a disjoint union, the recursive calls on the lists of half the length have to be disjoint as well, i.e., the template parameter kDisjoint has to be passed on. Fix this. (cherry picked from commit 469a7190bee490344d147099c3511fc45e2aadf0)
2024-04-10grpc: hide dependency on google_rpc_statusKlaus Aehlig
grpc is used in the toolchain defaults for proto servive libraries. Still, it is typically built on its own, with its own toolchain, flags, etc. Now, grpc, however has a public dependency on a the rpc-status proto library, that the user may well use on their own, however building in their own way which can yield conflicts. To solve this, we hide the dependency on that proto library, as infrastructure libs should not make assumptions on user-servicable libraries. - First, we note that the dependency can be made a private one, which already solves the conflict on header files (which will essentially be the same, but might be defined in a different way). - Next, we note that the library at linking basically only acts as a default implementation; if the user provides their own version of the rpc-status library, we should prefer that anyway. As infrastructure is linked last, we have that default character anyway; the only thing to do is to rename the library that no staging conflict occurs. (cherry picked from commit dc97c25fabb53f95c4f0826db2323008e22505fd)
2024-04-10end-to-end tests: fix tool set upKlaus Aehlig
For historic reasons (as quite some tests date back till before the public name of the build tools was decided), the end-to-end tests assume generic names for the tools. This used to be done by simple staging the artifacts. As soon as we started to support dynamic linking, we also have to allow the runtime dependnecies, as provided by our install-with-deps rule. ae2e515ab84ea3ab08764685f84441c0741f8039 attempted to add those dependencies by replacing the staging by a generic action doing a copy. This, however, made the "lib" dir containing the dependencies an opaque tree - defined by different actions, and, more importantly, - containing only the run-time dependencies of one of the tools. This causes staging conflicts between those two lib dirs (currently hidden by a bug in the computation of the disjoint union) and things only worked because in the canonical configuration used for testing both "lib" dirs are empty anyway. The correct way of adding dependencies while renaming the tool is still staging; fix this. (cherry picked from commit ddd2f5937a9016f5ff2f6bf659ba459129e49826)
2024-04-10atomic: Fix potential raceOliver Reiche
... as any unguarded access to non-const members of the same shared_ptr instance require the use of `atomic_load` and `atomic_store`. (cherry picked from commit bda3dabe37fdde648f90ce5aa4b20d7336570cf0)
2024-04-10Correctly report taintedness of "configure" targetsKlaus Aehlig
Taken from commit fb365b17ca339a25688ff61918280a46d64943b9
2024-04-10just-mr: don't make the command line pretend a fixed nameKlaus Aehlig
Our fetch and launch tool is parametric in the tool to be launched. Reflect this in the documentation and do not pretend it to be the name "just" hard coded. While there, also fix the hard-coded name "git" in the documentation of the default value. (cherry picked from commit e15f11ce0a7813602d9627e95ae9fb125afa891e)
2024-04-10bootstrap: accept a build dir inside the source treeKlaus Aehlig
While it is best practise to build outside the source tree, some package formats require that a build be carried out inside the source tree. As there are no principle obstacles, as long as a non-existing directory is requested as build dir, support it by ignoring the destination in the recursive copy. (cherry-picked from 264ba60e221231109201da1c6d336c642959a0c2)
2024-04-10SystemCommand: Fix handling of child statusOliver Reiche
(cherry-picked from commit c3d28a4cc3115644414ddba41d4b7ada5fd74fc2)
2024-04-10expression map: properly wrap logger for import callsKlaus Aehlig
... to provide an informative error message on how a rule is related to a particular import and, in particularly, at which expression a problem with the import occurred. While there, also improve the message in the other error case to follow our standard line-breaking scheme. (cherry picked from commit be91d666a483d0c982aea3c7b2d77a1c1dfa1bf9)
2024-04-10Start 1.2.5 development cycleKlaus Aehlig
2023-12-19Release 1.2.4v1.2.4Klaus Aehlig
2023-12-13Filesystem: Fix copy overwrite of symlink with fileOliver Reiche
... and improve log messages in case of failure. (cherry picked from commit 65d35006de65e540355833a56bcaa7659f6f1afd)
2023-12-13Documentation for "configure" rule: clarify role of "config"Klaus Aehlig
... as an overlay for the configuration, not the configuration to be used for the target to configure. (cherry picked from commit 76582028a15e265518fad839039ec0efff75383e)
2023-12-13just: Fix wrong access to moved structPaul Cristian Sarbu
The traverser instantiation consumes the arguments.build struct, therefore one must not access that struct later in the code. (cherry picked from commit bc09302c2772c979c45ecc716c36e4a70bb484ac)
2023-12-13LocalAction: Fix staging of empty treesOliver Reiche
(cherry picked from bab0d949d51fe4f10c8d492083427d514206cb63)
2023-12-13just-import-git.1: Fix wordingPaul Cristian Sarbu
(cherry picked from 2e54838fae527baba13d88e505f3e4241c45a3a8)
2023-12-13built-in "install" rule: verify well-formedness of resulting stageKlaus Aehlig
The install target, like any other target, has to have artifacts and runfiles being proper stages, i.e., in such a way that the keys can be interpreted as names in the file system without causing conflicts. This property used to be unchecked, thus allowing users to define mal-formed targets that, when used as inputs to actions, would result in unspecified layout of the action directory. Fix this by adding an appropriate check enforcing well-formedness of the resulting stage. (cherry picked from f66db4bb21efeead140a453f91280bb9471f24a9)
2023-12-13Start 1.2.4 development cycleOliver Reiche
2023-11-15Release 1.2.3v1.2.3Klaus Aehlig
2023-11-15bugfix: Also unlink symlinks before installingOliver Reiche
Make sure that all CopyFile, WriteFile, and CreateSymlink functions properly unlink the target file (if it exists and overwrite requested) to avoid interferences of the install command. With this change, the clean up step for install-cas and the within GraphTraverser can new be omitted. (cherry-picked from 04e2f0aa0ccfe4f39c5f6c713bde182c6b7704dd)
2023-11-15Fix serialization of the target cache keyOliver Reiche
... which was accidentially a list of (a single) object, instead of only a single JSON object. (cherry-picked from 63a874517618a57dd5ca223d19a795c28a39c123)
2023-11-15Base export target chache key on the exported targetKlaus Aehlig
The cache key for an export target should contain as target name that of the export target (and its effective configuration) rather than the exported target. As we computed the repository part of the cache key for the target included in the key, this was still a correct cache key except in the case an explicit file reference was exported (as here, the information that the file was to be taken rather than the target of the same name got lost). We still fix this issue by making the implementation match our design (rather than by including the file-reference bit in the cache key), as the original design gives the cleaner protocol for target-level caching as a service. (cherry-picked from 180d8d89ffa92f8c3e8b8bcb912ec1a4990569c9)
2023-11-15just execute: fix race condition during garbage collection...Alberto Sartori
...of the internal cache used for keeping track of running operations. (cherry-picked from bec4dbd9bd995f73eab1ff803e7895187068ddb0)
2023-11-15Start 1.2.3 development cycleKlaus Aehlig
2023-10-17Release 1.2.2v1.2.2Klaus Aehlig
2023-10-17curl_easy_handle: Ensure we report a fail on HTTP codes >=400Paul Cristian Sarbu
...which signal either cient- or server-side failures. This ensures we exit with a failed network fetch early in cases where it is clear we won't receive useful data. (cherry-picked from 4ef74caa5d96471d058bd1c9542d79ad58538da7)
2023-10-17just-mr fetch: Fix exception on fetched data hash mismatchPaul Cristian Sarbu
After successfully fetching data over the network for an archive, if the optional checksums are not provided, the code will throw if there is a mismatch between the hash of the fetched data stream and the provided content hash. This commit fixes the issue by adding an additional check which properly handles the possible mismatch. (cherry-picked from 9acaa7f60c88c97f58b757ffb6ce206f3f2953a2)
2023-10-17Avoid conflicts on case-insensitive file systemsKlaus Aehlig
... by renaming test/end-to-end/targets. (cherry-picked from d95d8121199e2519aa441cb1a471cf5aec69574d)
2023-10-17bootstrap: for package builds use -Wno-pedanticKlaus Aehlig
... as well as the already present -Wno-error. In this way, packagebuilding should work out of the box on more systems. (cherry-picked from 5abcd4140a91236c7bda1c21ce69e76a28da7c8a)
2023-10-17utils: No hash for upcoming libstdc++ 11 releasesOliver Reiche
(cherry-picked from 82e0bd818aee1ca8751e0abf20455af88cc513bf)
2023-10-17Start 1.2.2 development cycleKlaus Aehlig
2023-08-29Release 1.2.1v1.2.1Klaus Aehlig
2023-08-29fmt: Specialize formatter only for version >= 10Oliver Reiche
(cherry picked from 53ba5581070bc8914a35a5e16af901c562923e61)
2023-08-29man: Fix missing quoting of literalsPaul Cristian Sarbu
(cherry picked from 3e4e2b6fcbffe5de62d7c3eab47fdf3987dc778d)
2023-08-28Fix path hash for libstdc++ bug-fix release 11.4Oliver Reiche
... std::hash<fs::path> was first implemented in libstdc++ version 12. However, that change was also backported to bug-fix release 11.4, so we may not include our reimplementation if that version is used. (cherry picked from 8fb4a41a63e5d195c2463ce0bc75e9d41cc0c5be)
2023-08-28Add explicit fmt::formatter for nlohmann::basic_jsonMichael Thies
The formatter is based on fmt's ostream_formatter, using the provided operator<<(std::ostream&) of nlohmann::basic_json. This is required to allow compilation against fmt 10.x (cherry picked from 601d546b8452159c38d65231d52f0dbd05e793d2) Co-authored-by: Oliver Reiche <oliver.reiche@huawei.com>
2023-08-28absl: avoid off64_tKlaus T. Aehlig
... to improve portability (cherry picked from 2b2719c7507437d722ad673d8c563f1c54974770)
2023-08-28Start 1.2.1 development cycleOliver Reiche
2023-08-25Release 1.2.0v1.2.0Klaus Aehlig
2023-08-24tests: Improve error reporting in scriptsOliver Reiche
2023-08-24tests: Fix equal operator type mismatchOliver Reiche
... causing an error with gcc 13.2.0.
2023-08-24imports: Silence warnings of external codeOliver Reiche
2023-08-24lzma: Add missing definesOliver Reiche
2023-08-24LinkedMap: Simplify ::Find() methodsOliver Reiche
... to silence false-positive 'possible dangling reference' warning produced by gcc 13.2.0.
2023-08-24test: verify that actions with incompelete outputs are requestedKlaus Aehlig
... on next invocation, instead of being taken from cache.
2023-08-24Execution: only take complete actions from cacheKlaus Aehlig
... which are only actions that, besides giving exit code 0 also created all the outputs they promised to.
2023-08-23utils path: Add missing inline specifierOliver Reiche
... to suppress 'unused function' warnings.
2023-08-23target_map: Use iterators instead of pointer arithmeticOliver Reiche