Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-08-29 | just-mr maps: Properly check for missing values in map chain | Paul Cristian Sarbu | |
The root async map in a chain of calls should always be checked for missing value, which can happen if, e.g., a cycle happens or a thread gets killed by the system. Properly handle this by checking explicitly if a value has been posted. If not, check for cycles where it makes sense (for example, in the resolving of symlinks), otherwise report any pending map keys not yet processed. This is done for all just-mr commands working with async maps. | |||
2024-08-27 | Reformat code to comply with clang-format 18 | Klaus Aehlig | |
... while keeping our .clang-format file. | |||
2024-08-07 | Replace classic C boolean operators with keywords | Maksim Denisov | |
! => not; && => and, || => or | |||
2024-08-05 | When using errno, log the actual error message | Paul Cristian Sarbu | |
For the user it is more useful to see the actual error message, provided by strerror(), than the pure error code. | |||
2024-08-05 | Add missing cerrno includes | Paul Cristian Sarbu | |
2024-07-30 | ApiBundle: Use a creator method instead of constructor | Paul Cristian Sarbu | |
This will allow for ApiBundle to be used together with the TestApi implementation of IExecutionApi in tests. Also rename CreateRemote method to MakeRemote in order to remove any semantical confusion. | |||
2024-07-30 | Pass LocalContext and RemoteContext to ServeApi | Paul Cristian Sarbu | |
Also switch to using the fields from RemoteContext instances instead of those from ApiBundle. | |||
2024-07-30 | Pass RemoteContext to ApiBundle | Paul Cristian Sarbu | |
The CreateRemote method is also updated to receive all remote-related information as arguments, such that it does not have to rely on the ApiBundle internal fields which will eventually be removed. | |||
2024-07-30 | Pass LocalContext to ApiBundle | Paul Cristian Sarbu | |
2024-07-23 | just-mr: Remove progress and statistics singletons | Paul Cristian Sarbu | |
...and instead use simple instances created in setup, fetch, and update, respectively. The various maps and the progress reporter get access to these instances via not_null pointers. | |||
2024-07-23 | just-mr: Pass statistics instance in repos-to-setup map | Paul Cristian Sarbu | |
...instead of using the singleton. | |||
2024-07-23 | just-mr: Use statistics and progress instances update map | Paul Cristian Sarbu | |
...instead of using the singletons. | |||
2024-07-23 | just-mr: Use statistics instance in fetch map | Paul Cristian Sarbu | |
...instead of using the singleton. | |||
2024-07-23 | just-mr: Use progress instance in setup maps | Paul Cristian Sarbu | |
...instead of using the singleton. | |||
2024-07-23 | just-mr: Pass progress and statistics instances to reporter | Paul Cristian Sarbu | |
2024-07-22 | Rename HashFunction methods and enums | Maksim Denisov | |
2024-07-22 | Store HashFunction in StorageConfig | Maksim Denisov | |
2024-07-19 | just-mr: add subcommand gc-repo | Klaus Aehlig | |
2024-07-19 | Take shared repo-gc lock wherever needed | Klaus Aehlig | |
2024-07-19 | Remove the RetryConfig singleton | Paul Cristian Sarbu | |
...and replace it with instances created early via a builder pattern. | |||
2024-07-19 | Pass RetryConfig instance to ApiBundle | Paul Cristian Sarbu | |
Also store a const ref for usage in setting up a fresh ApiBundle during target serve. | |||
2024-07-18 | just-mr: Fix wrong exit code for --help call | Paul Cristian Sarbu | |
Due to the specifics of how CLI11 library handles the --help argument and the fact that just-mr uses its own set of exit codes, we were correctly printing the help text, but falsely returning a non-zero exit code as result. This is now fixed. | |||
2024-07-16 | Remove the RemoteExecutionConfig singleton | Paul Cristian Sarbu | |
...and replace it with passed instances created early via a builder pattern. Tests are also updated accordingly. | |||
2024-07-16 | Pass RemoteExecutionConfig instance to ApiBundle | Paul Cristian Sarbu | |
...and store it as a const ref for subsequent use wherever the apis are already passed. | |||
2024-07-16 | StorageConfig: Store also the execution backend description id | Paul Cristian Sarbu | |
...such that it will be available to the TargetCache for sharing. Also, GC does not require remote execution information, so the logic for this subcommand is moved earlier in main. | |||
2024-07-16 | Remove the LocalExecutionConfig singleton | Paul Cristian Sarbu | |
...and replace it with passed instances created early via a builder pattern. | |||
2024-07-16 | Pass LocalExecutionConfig to ApiBundle | Paul Cristian Sarbu | |
2024-07-16 | Add missing RemoteExecutionConfig includes | Paul Cristian Sarbu | |
2024-07-05 | Convert StorageConfig to a general class | Maksim Denisov | |
2024-07-05 | Convert Storage to a general class | Maksim Denisov | |
2024-07-05 | Pass StorageConfig and Storage to just-mr maps | Maksim Denisov | |
2024-07-05 | Pass StorageConfig and Storage to LocalApi | Maksim Denisov | |
2024-07-05 | Pass StorageConfig and Storage to Serve | Maksim Denisov | |
2024-07-05 | Pass Storage and StorageConfig to StorageUtils by reference | Maksim Denisov | |
2024-07-05 | Pass StorageConfig to GarbageCollector::SharedLock | Maksim Denisov | |
2024-07-05 | Use StorageConfig functionality via Instance() | Maksim Denisov | |
...to track changes during refactoring easier. | |||
2024-07-05 | Move functionality from StorageConfig to related classes. | Maksim Denisov | |
2024-07-04 | Replace the Auth and Auth::TLS singletons | Paul Cristian Sarbu | |
Use a builder pattern for creation and validation, in a manner that allows also other authentication methods to be added in the future besides the current TLS/SSL. The main Auth instances are built early and then passed by not_null const pointers, to avoid passing temporaries, replacing the previous Auth::TLS instances passed by simple nullable const pointers. Where needed, these passed Auth instances are also stored, by const ref. Tests also build Auth instances as needed, either with the default 'no certification' or from the test environment arguments. | |||
2024-07-04 | Pass Auth::TLS instance to BazelApi and ServeApi | Paul Cristian Sarbu | |
2024-07-04 | Use Auth and TLS configurations via Instance() | Paul Cristian Sarbu | |
...to more easily keep track of changes during refactoring. | |||
2024-06-28 | Use (un)expected for serve API | Oliver Reiche | |
2024-06-28 | Use (un)expected for reading location objects | Oliver Reiche | |
2024-06-27 | Pass ServeApi to just-mr maps by raw pointer | Maksim Denisov | |
...since it is used for capturing in lambdas for AsyncMaps and mustn't be temporary. | |||
2024-06-27 | Use a raw pointer for passing optional RepositoryConfig | Maksim Denisov | |
...instead of std::optional<gsl::not_null<RepositoryConfig const*>>. | |||
2024-06-27 | Use a raw pointer for passing optional IExecutionApi | Maksim Denisov | |
...instead of std::optional<gsl::not_null<IExecutionApi const*>> | |||
2024-06-25 | Pass ApiBundle to ServeApi | Maksim Denisov | |
2024-06-25 | Use ApiBundle for creation of APIs in just-mr | Maksim Denisov | |
2024-06-25 | Use a general boolean for compatible in MultiRepoCommonArguments | Maksim Denisov | |
2024-06-18 | Create an individual instance of RemoteServeConfig in just-mr | Maksim Denisov | |
...instead of initialization of the singleton. | |||
2024-06-18 | Make ServeApi a general class, not a singleton | Maksim Denisov | |
...and adjust interfaces. |