summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
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-12Test compactification gets skipped for `gc --all`Maksim Denisov
2025-06-12GarbageCollector: Support removal of all generations at onceMaksim Denisov
...that ignores compactification.
2025-06-05test ["end-to-end/git-import", "computed"]: move to subdirKlaus Aehlig
This test uses a file repository at "." with the "to_git" pragma. Now, if we build the tool to be tested in debug mode, the sources end up in the test's action directory. If we take the work dir of the simulated use case top level, all these sources end up unnecessarily in the workspace root of the test repo. Avoid this overhead by moving to a subdirectory.
2025-06-05test end-to-end/actions: Fix typo in TARGETS filePaul Cristian Sarbu
2025-06-04test: Add check that TREE references reject upwards symlinksPaul Cristian Sarbu
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-06-04end-to-end glob: Fix typos in test outputPaul Cristian Sarbu
2025-06-02Use quoting for literalsKlaus Aehlig
... to improve readability of target files.
2025-06-02end-to-end just-mr/absent-closure: Fix typoPaul Cristian Sarbu
2025-06-02just-mr: Warn for non-content-fixed repo reached from absent mainPaul Cristian Sarbu
If the main repository is marked absent, warn if during the dependency closure computation any non-content-fixed repositories are reached, i.e., any "file"-type repositories that are neither implicitly nor explicitly marked "to_git". Also warn if the main repository itself is marked absent but is not content fixed. Add small test checking that the new warning is produced.
2025-05-30Add test verifying that serve can handle deep treesKlaus Aehlig
Add a test testing the serve instance implicit to the "with serve" rule by asking it to build a target that creates an export target where the output is a deep tree.
2025-05-30Add end-to-end test for serving complex targetsKlaus Aehlig
Add a test asking serve to provide a target where both, the dependency as well as the action graph has both a wide node (a target with a large number of direct dependencies) as well as a deep node (a node where the chain of dependencies is long). That target is requested serveral times in parallel to verify that such targets can also be served under load. The process actually tested is the `just serve` process implicit to the "with serve" rule.
2025-05-30clean up test target filesKlaus Aehlig
Dropping unnecessary "arguments_config" as well as evaluating trivial computations.
2025-05-21tree_strcuture test: provide launcher also for just-mrKlaus Aehlig
While there, remove tray cat whitesapce and redetermine the working directory instead of relying on the environment.
2025-05-20Add end-to-end test that serve can handle canceled requestsKlaus Aehlig
This test actually tests the serve process brought in by the ["end-to-end", "with serve"] rule. It starts several requests to serve and, while serve is still building those, stops the clients. The serve service should handle those aborted requests gracefully and afterwards still be ready to take on a new requests.
2025-05-20end-to-end tests with serve: also keep serve build rootKlaus Aehlig
... if serve is used and remote-execution is a separate service.
2025-05-20end-to-end tests: use ["test", "matrix"]Klaus Aehlig
... instead of manually configuring and staging the various test branches.
2025-05-19Update fmt to 11.2.0Klaus Aehlig
2025-05-16profile test: also verify --dump-plain-graph is handled correctlyKlaus Aehlig
2025-05-15extend basic profiling testKlaus Aehlig
Verify more keys in the profile file and also verify basic properties of the other invocation-specific files that can be requested.
2025-05-13Top-level test target: support test matrixKlaus Aehlig
By supporting test matrix top-level of our test, which affects both the ALL and the UNIT_TESTS target, it is easy to run all tests for different tool chains, flags, or CC_TEST_LAUNCHER values.
2025-05-12Tests: Move symlink tests to remote suiteOliver Reiche
... to make sure it is run in native and compatible mode.
2025-05-12Tests: Enable compatible for normal CC testsOliver Reiche
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-07tests: add a target to run precisely the unit testsKlaus Aehlig
While there, also make sure we run unit tests that honor TEST_COMPATIBLE_REMOTE in both configurations.
2025-05-06end-to-end tests: consider both just-mr implementationsKlaus Aehlig
So far, the configuration variable TEST_BOOTSTRAP_JUST_MR could be used to decide whether to run the end-to-end tests with the compiled version of just-mr or the python script, which is mainly used for bootstrapping only. To have a more simple way of running all tests in all relevant configurations, make this an internal variable and branch on the possible values, similarly as we already do for the possible values of TEST_COMPATIBLE_REMOTE.
2025-05-06["@", "just tests", "", "ALL"]: remove unused parameter TEST_BOOTSTRAP_JUST_MRKlaus Aehlig
As a configure target, it is supposed to describe the change in the configuration; setting a parameter to itself has no effect.
2025-05-06Add end-to-end test verifying that analysis failure is reported in profileKlaus Aehlig
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-05-05TreeOperationsUtils: apply AsyncMap to compute tree overlaySascha Roloff
2025-04-23Make end-to-end tests independent of the user's configurationKlaus Aehlig
End-to-end tests should, like all tests, be independent of any non-project files the user has in their home directory. This also applies when running the tests locally. In particular, end-to-end tests should not read the user's ~/.just-mrrc. Therefore, properly set --norc in all end-to-end tests (where this is not already the case).
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-17Add test verifying a meaningful invocation log in case of build failureKlaus Aehlig
2025-04-08Add end-to-end test verifying tree operations work with remote executionKlaus Aehlig
2025-04-08Extend tree-conflict test to also verify the offending target is reported ↵Klaus Aehlig
properly
2025-04-08Add end-to-end test for disjoint_tree_overlayKlaus Aehlig
... and verify that - spurious conflicts do not cause failure but instead are handled correctly, and - real conflicts are detected and reported properly.
2025-04-07Add basic end-to-end test for tree operationsKlaus Aehlig
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