summaryrefslogtreecommitdiff
path: root/test/end-to-end/serve-service
AgeCommit message (Collapse)Author
8 daystest data: generate all needed directoriesKlaus Aehlig
As there is no guarantee that "out_dirs" are generated on action set up, do so manually (being OK with the files already being present).
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-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: use ["test", "matrix"]Klaus Aehlig
... instead of manually configuring and staging the various test branches.
2025-03-05end-to-end tests: Fix small typos and inconsistenciesPaul Cristian Sarbu
2024-12-09test serve_target_cache_hit: Remove wrong checkPaul Cristian Sarbu
One of the analysis commands marked as expected to fail fails from wrongly passing the launcher instead of the stated reasons. As the behaviour between standalone and separate serve endpoint versions would become inconsistent after fixing the command line, remove this check completely. This does not negatively influence the scope of the test script.
2024-10-25Enable compatible mode for just-mr and SourceTree serve service...Paul Cristian Sarbu
...by using the new local api that can handle any remote endpoint, irrespective of protocol. Also ensure all tests for the serve service are now being run both in native and compatible modes.
2024-09-23Reorder dependencies and remove duplicates in OSSMaksim Denisov
2024-08-21tests: use newly defined test suiteKlaus Aehlig
... so that linting information gets propagated properly.
2024-06-03test: Use own installed just and just-mr targets...Paul Cristian Sarbu
...which do not stage also the debug source and header files (while in debug mode), as this is unnecessary bloat in the tests. As the tool-under-test and mr-tool-under-test targets should be used instead of the regular install targets also in the various extra rules in end-to-end and utils, move their definition in the outmost test TARGETS file.
2024-04-25just serve: Paths in config file should be location objectsPaul Cristian Sarbu
Also updates the tests and all relevant documentation accordingly.
2024-04-25Extend serve-many test to also use non-top-level export targetsKlaus Aehlig
2024-04-16Add test verifying serve build logs contain error messagesKlaus Aehlig
2024-03-22Add a test verifying that absent export targets are deduplicated correctlyKlaus Aehlig
2024-03-20Extend serve tests to cover both, standalone serve and separate remote executionKlaus Aehlig
2024-03-20Test "serve-query-target-cache-value": adaopt to standaloneKlaus Aehlig
This test tries to demonstrate that even if the remote-execution has forgotten the action, the target-level cache of just serve will allow a successful build without repeating the action. It does it by cleaning the local build root of the remote-execution service. If, however, serve and execute are the same process, they also use the same local build root, so the target-level cache entry needs to be kept alive separately.
2024-03-19Add test to check handling of failed serve endpoint buildsPaul Cristian Sarbu
2024-03-14Add end-to-end test with serve building several targetsKlaus Aehlig
... simultaneously, in order to find race conditions during the build.
2024-03-05end-to-end test: also test foreign-file setup in compatible modeKlaus Aehlig
2024-03-05test distdir serving: verify the generic caseKlaus Aehlig
... where the files are known to serve, but not the resulting directory. We achieve this, by adding an unrealted file to the repository exposed to the serve server.
2024-03-05Add a test verifying that foreign files correctly use serveKlaus Aehlig
... by using the distdir request of the serve API.
2024-02-29end-to-end: Print envariables in all just serve testsPaul Cristian Sarbu
...to help with debugging.
2024-02-27test just-mr and serve: Check distdir repository root creationPaul Cristian Sarbu
Extends test coverage for the interaction between 'just-mr setup' and the serve endpoint for distdir repositories.
2024-02-27test just-mr and serve: Check git-tree repository root creationPaul Cristian Sarbu
Extends test coverage for the interaction between 'just-mr setup' and the serve endpoint for git-tree repositories.
2024-02-27test just-mr and serve: Check file repository to_git root creationPaul Cristian Sarbu
Extends test coverage for the interaction between 'just-mr setup' and the serve endpoint for file repositories with to_git pragma.
2024-02-27test just-mr and serve: Check git repository root creationPaul Cristian Sarbu
Extends test coverage for the interaction between 'just-mr setup' and the serve endpoint for git repositories.
2024-02-27test just-mr and serve: Check archive repository root creationPaul Cristian Sarbu
Extends test coverage for the interaction between 'just-mr setup' and the serve endpoint for archive repositories.
2024-02-05end-to-end tests: inherit pathKlaus T. Aehlig
... for test actions, by setting an appropriate local launcher. In this way, the tests can also be run on systems where sh does not pull in enough paths to have all the "usual" tools available.
2024-02-01Add end-to-end test describing absent export targetsKlaus Aehlig
2024-01-26serve tree test: Extend to check the absent roots syncPaul Cristian Sarbu
2024-01-26serve tree test: extend to use a separate target rootKlaus Aehlig
2024-01-12end-to-end tests: wait longer for test servicesKlaus Aehlig
Certain end-to-end tests require custom services. While normally they come up in quickly (less than 2 seconds), on heavily overloaded machines it might take longer. So increase the amount of time these tests are willing to wait for the binary to start up to avoid flakyness in our CI runs.
2024-01-09analysis queries serve test: Extend to check we can install served targetPaul Cristian Sarbu
2024-01-09test end-to-end: Check that serve endpoint correctly dispatches buildsPaul Cristian Sarbu
2023-12-20test: Serve endpoint provides tc value for cache missesPaul Cristian Sarbu
During the analysis of export targets, if there is a local target cache miss, we should also interrogate the serve endpoint (if given) for the target cache value before proceeding with the analysis. For this test we have extended the "with_serve" runner to expose also the remote-execution build root to the test env.
2023-12-20Add end-to-end test serving a tree target from an archive rootKlaus Aehlig
2023-12-12test: Check tc sharding if 'just serve' acts also as 'just execute'Paul Cristian Sarbu
2023-12-05test: Check remote build via just servePaul Cristian Sarbu
2023-11-16test: Check that serve service works in compatible modePaul Cristian Sarbu
Added compatibility envariable to the with_serve rule, guarded tests using --fetch-absent such that they run only in native mode, and made all serve-service tests aware of the compatibility flag.
2023-11-16remote-execution-endpoint: fall back to remote-serve-endpointAlberto Sartori
If only the `--remote-serve-endpoint` option is specified on the command line, the `--remote-execution-endpoint` is also set to the given value. This makes the spawning and usage of just-execute consistent. When just-serve is started, if no remote execution endpoint is provided, the same process will also act as a just-execute instance. With the current patch, the client can thus only write, on command line, the remote serve address, avoiding the repetition of the same address for two different options.
2023-11-16end-to-end serve-target-cache-hit: test the failure if...Alberto Sartori
...the client and serve use two different remote execution endpoints fixup test
2023-11-15just-serve: add end-to-end testsAlberto Sartori
serve_target_remote_build.sh should be updated once just-serve can orchestrate the remote build