summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2024-12-04Adapt remote test check for actual root-level cache hitsKlaus Aehlig
2024-12-04Test deep rehashing from bazel to GitMaksim Denisov
Cover two cases: 1. The whole tree is present in the source storage; 2. Only the top-level tree is present in the source storage.
2024-12-04Test RehashDigestMaksim Denisov
2024-12-03JustMR: test computed overlay reposMaksim Denisov
2024-12-02Add test verifying that computed-root build are sharded properlyKlaus Aehlig
2024-12-02["end-to-end", "with remote"]: support REMOTE_BINKlaus Aehlig
For tests where we bring our own remote-execution end point, support a directory where executables can be placed that are picked up early in PATH by remote actions. In this way, a test can be designed verifying that a particular action actually was run remotely.
2024-12-02Increase parallelism in just_mr_mpMaksim Denisov
2024-11-28Add basic test ensuring computed roots work for remote buildingKlaus Aehlig
While still doing some unnecessary file operations in the local build root, computed roots work also for remote execution, both in native and in compatible mode, also for roots with non-trivial depth. Add a basic test ensuring we do not regress there.
2024-11-28computed roots: add test verifying error reportingKlaus Aehlig
2024-11-27computed roots: enforce export targets of content-fixed reposKlaus Aehlig
... and look up values in cache, if possible.
2024-11-27JustMR: Test setup of computed rootsMaksim Denisov
2024-11-22AnalyseAndBuild: also write target-level cache entriesKlaus Aehlig
While there, also clean up the analysis result as soon as it is no longer needed.
2024-11-21Computed-roots evaluation: improve reportingKlaus Aehlig
For subcomputations add the log to CAS and only report the blob identifier. Also, indicate at the beginning, that computed roots are to be computed. While there, simplify code by using the ToString() method of computed roots.
2024-11-21Add basic test for computed rootsKlaus Aehlig
2024-11-14tests: Implement IWYU suggestionsMaksim Denisov
2024-11-14file_system: Implement IWYU suggestionsPaul Cristian Sarbu
2024-11-14clang-format: Update config filePaul Cristian Sarbu
The base style already handles correctly the system includes, so one needs to only add regex expressions to handle third-party and own includes. This fixes also the include formatting of git_config_run.test.cpp.
2024-10-25Add dependencies explicitly that are included directlyKlaus Aehlig
... instead of relying on those dependencies being pulled in indirectly.
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-10-25serve service: Respond also with digest in serve repository tree RPCsPaul Cristian Sarbu
...besides the simple Git hash, if syncing was done. This way one can know what digest to ask for from the remote. The serve client also needs to now know what hash function the remote expects. The serve service proto file is updated accordingly.
2024-10-25Test deep rehashing of Git trees to bazel DirectoriesMaksim Denisov
Co-authored-by: Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com>
2024-10-25bazel_execution_client.test.cpp: add a comment to explain the meaning of the ↵Alberto Sartori
boolean "wait"
2024-10-23expressions: enforce strict arguments for "join" and "join_cmd"v1.4.0-alpha+20241023Klaus Aehlig
... as described in the documentation. It was never intended to have a single string being an argument for those.
2024-10-11Routinely run tests with compatible remote servicesKlaus Aehlig
2024-10-10third-party: update fmt, cli11, zlibKlaus Aehlig
Those are trivial dependency updates without the need to change the build description. The new versions now are - fmt 11.0.2 - cli11 2.4.2 - zlib 1.3.1
2024-10-08tests: use --dump-plain-graph to simplify equality checkKlaus Aehlig
2024-10-08Name local variables using lower_caseMaksim Denisov
...and private members using lower_case_
2024-10-08Name value template parameters using kCamelCase.Maksim Denisov
2024-10-08Name constexpr variables using kCamelCase.Maksim Denisov
2024-10-08Name static constants using kCamelCase.Maksim Denisov
2024-10-08Name classes, structs and enums using CamelCase.Maksim Denisov
2024-10-07Enable cppcoreguidelines-* checks.Maksim Denisov
2024-10-07Disable misc-no-recursion checkMaksim Denisov
...since we use recursion for trees a lot, but skip this check manually.
2024-10-07Enable readability-* checks.Maksim Denisov
2024-10-07Enable readability-redundant-member-init check.Maksim Denisov
2024-10-07Enable google-* checks.Maksim Denisov
2024-10-07Enable modernize-* checks.Maksim Denisov
2024-10-07Enable clang-analyzer-cplusplus.StringChecker check.Maksim Denisov
2024-10-07Enable bugprone-empty-catch check.Maksim Denisov
2024-10-07Enable bugprone-unhandled-exception-at-new check.Maksim Denisov
2024-10-07Enable bugprone-implicit-widening-of-multiplication-result check.Maksim Denisov
2024-09-26Fix enum sizes proposed by clang-tidy.Maksim Denisov
Enable performance-enum-size check.
2024-09-26Fix redundant std::optional conversionsMaksim Denisov
...proposed by clang-tidy. Enable bugprone-optional-value-conversion check.
2024-09-26Fix increments in conditionsMaksim Denisov
...proposed by clang-tidy. Enable bugprone-inc-dec-in-conditions check.
2024-09-23Reorder dependencies and remove duplicates in OSSMaksim Denisov
2024-09-23Store HashFunction by const reference.Maksim Denisov
Despite the fact that HashFunction is a small type, it still makes sense to store it by reference to reflect the ownership. StorageConfig becomes the main holder. Reference holders store HashFunction by const ref and aren't allowed to change it. However, they are free to return HashFunction by value since this doesn't benefit readability anyhow.
2024-09-18Avoid additional memory allocations when working with protobuf's types.Maksim Denisov
Although this change doesn't benefit performance anyhow (protobuf's mutable_*() methods allocate memory lazily), it is better to let protobuf do this on its own.
2024-09-18Add tests for ByteStreamUtils::{Read, Write}RequestMaksim Denisov
2024-09-18Implement ByteStreamUtils::WriteRequest classMaksim Denisov
...and remove split serialization/deserialization logic.
2024-09-18Implement ByteStreamUtils::ReadRequest classMaksim Denisov
...and remove split serialization/deserialization implementations.