summaryrefslogtreecommitdiff
path: root/test/buildtool
AgeCommit message (Collapse)Author
6 daysAllow colons in remote-execution propertiesBin Yu
When user setting `remote-execution-properties` with commandline, we assume that input value must have format with `key:val`, in that case, if `val` includes colon(s), the real value after parsing won't be the same as user intends to have, for example, considering commandline flag: `--remote-execution-properties image:test.registry:8080/test`, will be parsed into a pair `<image, test.registry>` in existing implementation. Since it's reasonable to allow colon(s) in execution property value, we should allow this case, and still keep the restriction on key format. Signed-off-by: Bin Yu <yubin14@huawei.com>
2025-06-24Clarify use of a clang-tidy checkPaul Cristian Sarbu
The google-default-arguments check normally imposes that virtual methods have no default arguments. For our use-cases, all implementations of such methods are expected to use the same default arguments, and thus this check is manually disabled via NOLINT comments. However, this is not done consistently. This commit cleans this up and clarifies our intent by: - removing the default values (and the NOLINT statement) for all implementations of virtual methods with default argument values, matching the desired intended behaviour, but - keeping the clang-tidy check for future cases where derived classes would want to provide each different defaults.
2025-06-24Test: Add test for execution server APIsOliver Reiche
2025-06-24Test: Add test for API output path modesOliver Reiche
2025-06-24ExecutionAPI: Support output_paths in requestsOliver Reiche
... and prepare local execution for clients using only RBEv2.1 (setting only output_paths).
2025-06-24ExecutionApi: Drop DirectorySymlinks from common apiOliver Reiche
... as it is only needed for local execution, there is no need to provide it in the common api interface.
2025-06-16Avoid unnecessary work in accessing container entriesPaul Cristian Sarbu
- in sequence containers, use operator[] instead of .at() when accessing indices guaranteed to be in bound; - in associative containers, prefer .find() and reusing the returned const iterator to using .contains() and .at(); while there, make any so obtained iterators const if they are read-only.
2025-06-13Test: Fix flaky LargeObjectCAS test.Maksim Denisov
Due to a random nature of the LargeObjectUtils generator, it may generate 2 identical files in a row. To prevent the test from failing, check that a newly generated file doesn't collide with any already added to the CAS.
2025-06-12GarbageCollector: Support removal of all generations at onceMaksim Denisov
...that ignores compactification.
2025-06-04directory_map: Correctly report fatal on failures to read from workspace rootsPaul Cristian Sarbu
2025-06-04Tests: Verify symlink handling in APIsOliver Reiche
... which should not do any symlink checks in compatible mode.
2025-06-04Executor: Check validity of action outputs in compatible modePaul Cristian Sarbu
This ensures that any entries that the standard remote execution protocol accepts but are invalid in justbuild, i.e., upwards symlinks, are rejected. For this purpose, do not fail in the action response instances, just perform the check there, as all required information is available, and set a flag that the executor can check as needed.
2025-06-04FileRoot: Give git-based roots access to storage configPaul Cristian Sarbu
2025-06-04GitTree: Ensure all read entries are validPaul Cristian Sarbu
Match behaviour of reading trees, which always checks for invalid entries, also for reading blobs.
2025-05-12Tests: Assume only parents of out_dirs existOliver Reiche
... instead of the full out_dir path, which is not guaranteed by the RBE protocol.
2025-05-12LocalAction: Fix collection of directory symlinkOliver Reiche
2025-05-05TreeOperationsUtils: add tree-overlay deduplication testSascha Roloff
This test ensures that the AsyncMap implementation of the tree-overlay computation works as expected and properly prevents duplicated work when it comes to the repeated computation of the same trees.
2025-04-22FileSystemManager: When copying, take into account equivalent files.Maksim Denisov
2025-04-22FileSystemManager: Always copy directories recursivelyMaksim Denisov
2025-04-22FileSystemManager: Always remove directories recursivelyMaksim Denisov
2025-04-07Add built-in rules {disjoint_,}tree_overlayKlaus Aehlig
2025-04-07Defined rules: add TREE_OVERLAY and DISJOINT_TREE_OVERLAY functionKlaus Aehlig
2025-04-07analysed_target: include tree overlaysKlaus Aehlig
2025-04-07Action: support tree-overlay actionsKlaus Aehlig
2025-03-24Test 'zip_map' expressionPaul Cristian Sarbu
2025-03-24Test 'zip_with' expressionPaul Cristian Sarbu
2025-03-24BazelNetworkReader: Remove IncrementalReaderMaksim Denisov
2025-03-24BytestreamClient: Read to temporary files.Maksim Denisov
2025-03-24ExecutionApi: Return TmpDirMaksim Denisov
2025-03-24Pass TmpDir to BazelNetwork and BazelCasClientMaksim Denisov
2025-03-24TmpDir: minor refactoringMaksim Denisov
2025-03-17execution_api: support reading off stdout/stderr digestsKlaus Aehlig
2025-03-10execution response interface: include execution durationKlaus Aehlig
2025-03-10Profiling: start collecting informations per actionsKlaus Aehlig
... so far, which actions where considered, and which of those were cached.
2025-03-10Make graph-dumping options cummulativeKlaus Aehlig
If --dump-graph or --dump-plain-graph is given several times, the action graph wil also be written several times. In this way, regular use of those options will not be affected by adding them implicitly through invocation-logging options in the rc file.
2025-02-28Make statistics a separate libraryMaksim Denisov
2025-02-28Include ArtifactDigestFactory into "common" libraryMaksim Denisov
2025-02-27BazelNetwork: Adapt the test that reads objects of unknown sizeMaksim Denisov
2025-02-27Remove BytestreamClient test.Maksim Denisov
ArtifactBlob rehashes content, there's no way to construct it with a wrong digest.
2025-02-27ArtifactBlob: Use static function for constructionMaksim Denisov
2025-02-27ArtifactBlob: Check access to the contentMaksim Denisov
2025-02-27ArtifactBlob: Convert to a classMaksim Denisov
2025-02-27ArtifactBlob: Move from execution_api/common to commonMaksim Denisov
2025-02-21ByteStreamClient: Return ArtifactBlob from Read.Maksim Denisov
2025-02-21ByteStreamUtils: Simplify ReadRequest and WriteRequestMaksim Denisov
2025-02-21ByteStreamClient: Use ByteStreamUtils::ReadRequest internally only.Maksim Denisov
2025-02-21ByteStreamClient: Use ArtifactBlob in WriteMaksim Denisov
2025-02-20Separate off id generation to a separate libraryKlaus Aehlig
... and rename appropriately to reflect contents more precisely than the generic "common". This separation also disentangles dependencies a bit.
2025-02-19ApiBundle: Remove HashFunction.Maksim Denisov
And ensure every user obtains HashFunction from corresponding IExecutionApi
2025-02-19IExecutionApi: Return supported HashFunction::TypeMaksim Denisov