aboutsummaryrefslogtreecommitdiff
path: root/zen/cmds
Commit message (Collapse)AuthorAgeFilesLines
* moved source directories into `/src` (#264)Stefan Boberg2023-05-0224-3466/+0
| | | | | | * moved source directories into `/src` * updated bundle.lua for new `src` path * moved some docs, icon * removed old test trees
* fix down command (#254)Dan Engelbrecht2023-04-242-6/+11
| | | | | * add option to zen down command to control port * use correct port for shutdown even when attaching to running server * changelog
* oplog and cache stats (#244)Dan Engelbrecht2023-04-214-0/+354
| | | | | | | | | | | | | | | | * basic oplog stats * add GetValueStats to cache store * RwLock::ExclusiveLockScope -> RwLock::SharedLockScope * add rawhash and attachment count to CacheValueStats * added cache-stats and project-stats commands * add cast to make Mac overload detection happy * fix accept type in cache-stats command * Add options to project-stats command * use resource paths for stats in project store * use resource paths for stats in cache * fix cache-info and project-info url discriminator * more control over details$ output * cleanup * changelog
* mergeStefan Boberg2023-04-041-2/+2
|\
| * minor: Namnspace -> namespaceStefan Boberg2023-03-301-2/+2
| |
| * minor: FormatResponse -> FormatHttpResponseStefan Boberg2023-03-302-16/+16
| |
* | minor ZenCmdBase cleanupStefan Boberg2023-04-042-31/+31
|/ | | | | FormatResponse -> FormatHttpResponse GetReturnCode -> MapHttpToCommandReturnCode
* minor: spellingStefan Boberg2023-03-301-1/+1
|
* De/fix rpc replay to handle pid (#243)Dan Engelbrecht2023-03-212-55/+158
| | | | | | | * allow access to CbWriter::Save(MutableMemoryView Buffer) in CbObjectWriter to avoid extra memory allocation and copy * fix entry index counting in rpcreplay * adjust target pid in rpc requests for rpc replay * allow control in rpc-record-replay over how attachments are sent * changelog
* add `--showmethodstats` option for rpc replay to show method statistics (#233)Dan Engelbrecht2023-02-212-40/+103
| | | * add `--showmethodstats` option for rpc replay to show method statistics
* Enhanced rpc request recording (#229)Dan Engelbrecht2023-02-172-0/+316
| | | | | | | | | | | | | * rpc replay zen command * fix replay sessions for thread * recording start/stop as zen commands * move rpcrecording code to zenutil to remove code duplication * simplify recording http request threading * added more data logging to rpc replay * NotFound is an acceptable response for an rpc request * fix rpc replay command line parsing * rpc replay stats * Allow spawning of sub-process workers when replaying rpc recording * changelog
* Move knowledge of UE env variable from zenserver to zen command line tool (#227)Dan Engelbrecht2023-02-132-0/+37
| | | | * move knowledge of UE env variable from zenserver to zen command line tool * move env-fetching code to GetEnvVariable
* oplog upload/download (#214)Dan Engelbrecht2023-02-092-21/+561
| | | | | | | | | | | | - Feature: Zen server endpoint `prj/{project}/oplog/{log}/chunks` to post multiple attachments in one request. - Feature: Zen server endpoint `prj/{project}/oplog/{log}/save` to save an oplog container. Accepts `CbObject` containing a compressed oplog and attachment references organized in blocks. - Feature: Zen server endpoint `prj/{project}/oplog/{log}/load` to request an oplog container. Responds with an `CbObject` containing a compressed oplog and attachment references organized in blocks. - Feature: Zen server endpoint `{project}/oplog/{log}/rpc` to initiate an import to or export from an external location and other operations. Use either JSon or CbPackage as payload. - CbObject/JSon RPC format for `import` and `export` methods: - CbObject RPC format for `getchunks` method, returns CbPackage with the found chunks, if all chunks are found the number of attachments matches number of chunks requested. - Feature: Zen server `{project}/oplog/{log}/{hash}` now accepts `HttpVerb::kPost` as well as `HttpVerb::kGet`. - Feature: Zen command line tool `oplog-export` to export an oplog to an external target using the zenserver oplog export endpoint. - Feature: Zen command line tool `oplog-import` to import an oplog from an external source using the zenserver oplog import endpoint.
* remove legacy `export-project` and `import-project` (#222)Dan Engelbrecht2023-02-022-636/+0
|
* Add `project-create` and `oplog-create` to zen command line tool (#221)Dan Engelbrecht2023-02-022-0/+168
| | | * Add `project-create` and `oplog-create` to zen command line tool
* Clean up project store file structure (#218)Dan Engelbrecht2023-02-016-712/+653
| | | | * move project store to separate folder * moved import/export project commands into projectstore cmd files
* removed HttpLaunchService and related codeStefan Boberg2023-01-242-219/+0
| | | | this was used for testing but is no longer wanted in this form
* zen command line tool improvements (#212)Dan Engelbrecht2023-01-1325-61/+435
| | | | | | | | | | | | - Feature: zen command line tool `cache-info` to show cache, namespace or bucket info - Feature: zen command line tool `project-info` to show store, project or oplog info - Feature: zen command line tool `project-drop` to drop project or oplog - Feature: zen command line tool `gc` to trigger a GC run - Feature: zen command line tool `gc-info` to check status of GC - Improvement: zen command line tool now fails on any unrecognized arguments - Improvement: zen command line tool now displays extra help for all sub-commands - Improvement: host address can now be configured for zen command line tool `drop` command changelog
* Zen cmd fixes (#201)Dan Engelbrecht2022-12-0712-80/+107
| | | | | | | * updated drop command to support namespaces * fixed hash command error message * fix output of status (and top) command * Use ZEN_CONSOLE for output in zen commands * changelog
* optimizations (#200)Dan Engelbrecht2022-12-072-25/+7
| | | | | | | | | | | | | * Use direct file read and direct buffer allocation for small IoBuffer materalization * Reduce range of materialized data in CompositeBuffer reading CompressedBuffer header reading often only need a small part and not the whole file * reduce lock contention in IoBuffer::Materialize * Reduce parsing of compressed headers Validate header type at decompression * faster CreateDirectories - start from leaf going up and recurse back * optimized BufferHeader::IsValid * Add ValidateCompressedHeader to use when we don't need the actual compressed data Validate that we always get compressed data in CidStore::AddChunk * changelog
* add "version" command with "detailed" option (#192)Dan Engelbrecht2022-11-212-0/+100
| | | specify host url to query running service version, otherwise you get zen command version
* Add `import-project` and `export-project` (#183)Dan Engelbrecht2022-11-184-0/+723
| | | * Add `import-project` and `export-project` command line parsing
* Make cas storage an hidden implementation detail of CidStore (#130)v0.1.4-pre6v0.1.4-pre5Dan Engelbrecht2022-06-172-19/+27
| | | | | | | | | | | | | | | | | | - Bumped ZEN_SCHEMA_VERSION - CasStore no longer a public API, it is hidden behind CidStore - Moved cas.h from public header folder - CidStore no longer maps from Cid -> Cas, we store entries in Cas under RawHash - CasStore now decompresses data to validate content (matching against RawHash) - CasChunkSet renames to HashKeySet and put in separate header/cpp file - Disabled "Chunk" command for now as it relied on CAS being exposed as a service - Changed CAS http service to Cid http server - Moved "Run" command completely inside ZEN_WITH_EXEC_SERVICES define - Removed "cas.basic" test - Uncommented ".exec.basic" test and added return-skip at start of test - Moved ScrubContext to separate header file - Renamed CasGC to GcManager - Cleaned up configuration passing in cas store classes - Removed CAS stuff from GcContext and clarified naming in class - Remove migration code
* clang-format fixesStefan Boberg2022-06-101-1/+3
|
* extended zen print command to also handle CbPackage and CompressedBuffer ↵Stefan Boberg2022-06-101-9/+91
| | | | format payloads
* clang-formatStefan Boberg2022-02-021-1/+2
|
* Fixed ZenServerEntry::*ListenPort compile errorsMartin Ridgers2022-01-271-2/+2
|
* Format fix.Per Larsson2022-01-221-1/+3
|
* Fixed fmt::format() compile errorMartin Ridgers2022-01-111-1/+1
|
* Converted use of _format UDL to fmt::formatMartin Ridgers2022-01-101-3/+1
|
* Deleted file that mysteriously returned via a mergeMartin Ridgers2021-12-151-87/+0
|
* Merged main.Per Larsson2021-12-146-30/+164
|\
| * Stubbed out base minimum of MS' PPL use for non-Windows platformsMartin Ridgers2021-12-021-0/+43
| |
| * Ifdef'd Windows-only includeMartin Ridgers2021-12-021-1/+3
| |
| * Use zen::PathToUtf8() instead of WideToUtf8()Martin Ridgers2021-12-021-1/+1
| |
| * Updated RunCommand's file traversal to use platform-agnostic stringsMartin Ridgers2021-12-021-4/+4
| |
| * Cross-platform path-to-utf8 conversionMartin Ridgers2021-12-021-1/+2
| |
| * Fixed unused parameter warningMartin Ridgers2021-12-011-0/+1
| |
| * Removed unused #include statementMartin Ridgers2021-12-011-2/+0
| |
| * Removed unused Utf8Helper classMartin Ridgers2021-12-011-9/+0
| |
| * Changed dedupe command to work with paths as utf8 stringsMartin Ridgers2021-12-011-5/+31
| |
| * Signed/unsigned warning fixMartin Ridgers2021-12-011-2/+2
| |
| * Missing includeMartin Ridgers2021-12-011-0/+2
| |
| * Wrapped Windows-specific include in if-def preprocessor blocksMartin Ridgers2021-11-022-3/+3
| |
| * Merged mainMartin Ridgers2021-10-162-18/+4
| |\
| * | Use std::fs::path for IoBuffer::MakeFromFile().Martin Ridgers2021-10-141-1/+1
| | | | | | | | | | | | | | | This is more consistent with MakeFromTempFile() and almost all arguments are path objects anyway.
* | | zen: eliminated unused deploy commandStefan Boberg2021-11-172-115/+0
| | |
* | | zen: Improved error reporting for `print` commandStefan Boberg2021-10-201-3/+20
| |/ |/|
* | zencore: Enabled MSC warning 4668 to get warnings when preprocessor macros ↵Stefan Boberg2021-10-152-18/+4
|/ | | | | | | | are used without an explicit definition Also fixed up various code to compile with this, by using ZEN_THIRD_PARTY_INCLUDES_START/ZEN_THIRD_PARTY_INCLUDES_END macros Removed prewindows.h/postwindows.h since they are no longer to be used due to the above
* zen: added print/printpackage subcommands to help in debugging or inspecting ↵Stefan Boberg2021-10-012-0/+148
| | | | CbObject data generally