aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* add more logging on jupiter fail (#345)Dan Engelbrecht2023-08-081-0/+124
| | | | * add more details in log if jupiter operations fail * changelog
* fix asserts and exceptions (#344)Dan Engelbrecht2023-08-083-3/+23
| | | | | | * Send proper error to caller of GetChunkInfo instead of assert * catch and handle exceptions when checking for state_marker * properly wait for background tasks if oplop-export fails * changelog
* try to resolve access token via env variable local first (#337)Dan Engelbrecht2023-08-011-2/+21
| | | * try to resolve access token via env variable local first, on zenserver side second
* make sure we validate pointers returned from zen::Memory::Alloc (#341)Dan Engelbrecht2023-08-013-10/+34
| | | * make sure we validate pointers returned from zen::Memory::Alloc
* add requested item in oplog remote op (#340)Dan Engelbrecht2023-08-015-60/+162
| | | * add more context for oplog import/export errors
* catch exceptions when scheduling GC and when writing GC scheduling state (#339)Dan Engelbrecht2023-08-011-136/+149
| | | * catch exceptions when scheduling GC and when writing GC scheduling state
* removed unnecessary cpr referenceStefan Boberg2023-06-301-4/+0
|
* zen print command fix for large objectsStefan Boberg2023-06-301-2/+2
| | | | also improved help message
* CidStore now implements the ChunkResolver interfaceStefan Boberg2023-06-304-13/+21
| | | | | this allows client code to use the ChunkResolver interface instead of CidStore, which can help with testing scenarios
* clang-format :(Stefan Boberg2023-06-301-12/+12
|
* build fix for ZEN_WITH_TESTSStefan Boberg2023-06-301-1/+6
|
* * Added Guid::FromStringStefan Boberg2023-06-3022-38/+490
| | | | | | | * Added LoadCompactBinaryObject from file to compactbinaryfile.cpp/h * Added SaveCompactBinary(BinaryWriter& Ar, ...) functions * Added ZEN_PLATFORM_NAME define * Added SystemMetrics functionality to query system properties (see zencore/system.h)
* various zenhttp fixes from sb/protoStefan Boberg2023-06-3011-27/+98
| | | | | | | | | * Made HttpHealthService use locks to serialize access to state * Added ToString(HttpResponseCode HttpCode) * Added support for JS source maps * Moved IHttpStatsProvider/IHttpStatsService * Enabled enumeration of stats providers * Disabled build of HttpTestingService unless ZEN_WITH_TESTS is defined
* added zen::ChunkResolverStefan Boberg2023-06-301-0/+9
| | | | cherry-picked from sb/proto to reduce delta
* * added file sharing control to BasicFile (required to implement lockfiles)Stefan Boberg2023-06-302-19/+60
| | | | | * added delete-on-close support to BasicFile * added BasicFile::ReadRange()
* Fix IsProcessRunning on Windows (#335)zousar2023-06-271-1/+12
| | | | IsProcessRunning on Windows would only consider if we could get a handle to a process. It is possible to get a handle to a process even if it is terminated in Windows. To actually know if the process is running, a further call to GetExitCodeProces is required. Addressing this issue ensures that the ZenServerState::Sweep method doesn't keep terminated processes in the state table.
* fix issue where we wouldn't properly configure `zen serve` to talk to a ↵Stefan Boberg2023-06-161-1/+2
| | | | newly spawned server instance
* MakeCloneFromMemory should handle zero sized buffers gracefullyStefan Boberg2023-06-161-2/+9
| | | | we don't currently permit creating zero-length IoBuffer instances to prevent inefficiencies, but this can cause issues since some higher level code now ends up using it for things it was not originally intended for.
* cleaned up http/asio loggingStefan Boberg2023-06-161-7/+7
|
* file share support (#328)Stefan Boberg2023-06-167-42/+353
| | | | | | | | | | | | this change adds a serve command to the zen CLI. This can be used to establish links to a set of files which may be served to clients via the project store interface: ```cmd> zen serve Lyra/WindowsClient d:\temp_share\StagedBuilds\WindowsClient``` with the appropriate changes in UE you may then start an instance of the runtime and have it load all files via the remote file connection: ``` Lyra\Binaries\LyraClient.exe ../../../Lyra/Lyra.uproject -pak -basedir=D:\temp_share\StagedBuilds\WindowsClient/Lyra/Binaries/Win64 -Mount=Lyra/WindowsClient ```
* added ZenServerInstance::SpawnServerAndWait (#334)Stefan Boberg2023-06-162-6/+62
| | | | | this change adds `ZenServerInstance::SpawnServerAndWait()` which as the name implies spawns a server and then waits for the instance to reach a usable state before returning to the caller. It also changes the behaviour of `ZenServerInstance::AttachToRunningServer()` so it matches the Spawn behaviour wrt automatic termination on ZenServerInstance destruction. Previously it would always terminate the subprocess on exit.
* make sure to set error code to zero on successDan Engelbrecht2023-06-161-1/+1
|
* xmake dependency fixesStefan Boberg2023-06-162-21/+22
| | | | | - curl is a dependency of zenhttp, not zencore - zencore only depends on crypto functions from openssl
* added GetProcessIdStefan Boberg2023-06-162-0/+11
| | | | this enables mapping the result of a CreateProc call to an integer pid
* Improve resonse messages from jupiter upstream (#333)Dan Engelbrecht2023-06-152-210/+81
| | | | | | * Improve resonse messages from jupiter upstream changelog * simplify response parsing in jupiter upstream * changelog
* Make sure GetEnvVariable can handle values that are longer than 1023 ↵Dan Engelbrecht2023-06-131-4/+18
| | | | characters (#332)
* add oplog snapshot command (#331)Dan Engelbrecht2023-06-123-0/+91
| | | | * add zen oplog-snapshot command line tool * changelog
* fix jupiter access token for oplog upload (#330)Dan Engelbrecht2023-06-121-1/+1
| | | | * make sure to prefix auth token correctly when provided with a raw token * changelog
* drive-by constStefan Boberg2023-06-121-1/+1
|
* changed ZEN_ERROR to ZEN_WARN to reduce Sentry noiseStefan Boberg2023-06-081-3/+8
| | | | addresses ZEN-SERVER-W5. This should not be logged as an error since the failure is propagated to the client and the failure is typically due to invalid input
* Removed unnecessary windows.h includeStefan Boberg2023-06-081-4/+0
|
* added missing <utility> includeStefan Boberg2023-06-071-0/+1
|
* added thread names to timer, upstream monitorStefan Boberg2023-06-073-2/+19
| | | | also altered http-asio thread naming scheme
* Increase retry logic (#325)Dan Engelbrecht2023-06-051-13/+19
| | | | * Increase timeout and number of retries in CacheBucket::PutStandaloneCacheValue when moving temporary file into place * changelog
* Enable front-end serving in release modeStefan Boberg2023-05-312-26/+40
| | | | Front-end can now be served from a development directory in release mode as well as debug if there's no zipfs attached
* fix for Linux/sentry build issueStefan Boberg2023-05-261-3/+0
|
* oplog snapshot (#317)Stefan Boberg2023-05-253-17/+219
| | | | | Added "snapshot" oplog RPC this may be used to bring referenced files into the local store instead of referencing them by filename, thus making the project/oplog transportable
* minor: refcount bump eliminationStefan Boberg2023-05-251-1/+1
|
* named oplog upload worker pool threadsStefan Boberg2023-05-251-1/+12
|
* minor: comment fixStefan Boberg2023-05-251-1/+1
|
* BasicFile::ReadAll should handle zero-sized files gracefullyStefan Boberg2023-05-251-3/+10
|
* added defaults to remote project store option definitionsStefan Boberg2023-05-253-5/+6
|
* fix for random uint32 -> uint32_tStefan Boberg2023-05-251-1/+1
|
* fix for issue with missing options in helpStefan Boberg2023-05-251-0/+2
| | | | | positional options were not included in the `--help` output previously, now they are!
* block destructors from throwing exceptions (#321)Dan Engelbrecht2023-05-243-8/+12
| | | | | | * ~FileMapping() is not allowed to throw exceptions * ~ScopedActivityBase() should not call ZEN_ASSERT (which causes SIGABORT on error) * ProjectStore::Project::WriteAccessTimes() which is called from ProjectStore::~Project() must not throw exceptions * changelog
* cache log sessionid (#297)Stefan Boberg2023-05-237-169/+274
| | | | | | | | | | | * implemented structured cache logging to be used as audit trail to help analyse potential cache pollution/corruption * added common header to all known log targets * made Oid::operator bool explicit to avoid logging/text format mishaps * HttpClient::operator bool -> explicit * changed cache logs to not rotate on start in order to retain more history * added CacheRequestContext * properly initialize request context * log session id and request id on zencacehstore get/put * changelog
* use exception when allocations fail rather than asserts (#319)Dan Engelbrecht2023-05-233-5/+34
| | | | * use exception when allocations fail rather than asserts * changelog
* streaming decompression support (#142)Stefan Boberg2023-05-238-29/+1000
| | | Added CompressedBufferReader support from UE. This provides some streaming decompression support which can be employed to reduce memory and other resource usage.
* MemoryView::RightChop -> constStefan Boberg2023-05-221-1/+1
|
* removed some old test code which is no longer usefulStefan Boberg2023-05-221-66/+1
|