Repository navigation
Feature framework polishing #147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
875e34f
di.eodtime: read the clock once in getdailyadjustment
alowrydi cc5aac6
di.pubsub: read the filters column TorQ sends in filtered subscriptions
alowrydi 1187c80
di.merge: restore TorQ merge.q failure and attribute behaviour
alowrydi 0d460cb
di.timer: log failed jobs through the injected logger; jobs reschedul…
alowrydi 16d7232
di.timer: store params as a list, disable at maxtime and rescan as To…
alowrydi 0f7d914
di.timer: add addjob.once and removefunc, as TorQ's .timer.once and .…
alowrydi 0cc02d3
di.torq.servers: add startupdepcycles and startupdependent, as TorQ's…
alowrydi ae3d204
Merge branch 'main' into feature-framework-polishing
alowrydi 4a23758
di.torq.config: run its test fixtures under a per-run directory
alowrydi d3ee4b4
di.timer: timespan periods, mode and dupcheck checks, legacy first-ru…
alowrydi 6298ab5
di.torq: stamp q's -t interval into config as timerms
alowrydi 20b45a7
di.torq.proc.segmentedtp: batch every -t ms, as TorQ's .z.ts
alowrydi bd5442f
di.torq.proc.chainedtp: accept a sub-second pubinterval, as TorQ's ch…
alowrydi 51745be
di.torq.proc.tickerplant: -t decides batched or immediate, as TorQ's …
alowrydi c7d7413
di.dbwrite: savedown hooks and TorQ's default sort, as dbwriteutils.q
alowrydi 6e7cf94
di.torq.proc.wdb: save down hooks through di.dbwrite; postreplay unpr…
alowrydi 6f2bbbf
di.torq.proc.tickerlogreplay: save down hooks through di.dbwrite, rea…
alowrydi aac042a
di.torq.proc.rdb: save down hooks through di.dbwrite; keep g# after t…
alowrydi 59abed1
di.compression: worker processes compress a table each, as TorQ #732;…
alowrydi 99a4b72
di.torq.proc.housekeeping: TorQ's job csv format and action names; rm…
alowrydi 3a12e2f
di.torq.servers: addh, refreshattributes, gethpbytype, root gethandle…
alowrydi 3370059
di.eodtime: readers for the roll and data timezone and roll offset, a…
alowrydi f97837a
di.torq.config: getconfig and getconfigfile over the two roots, as To…
alowrydi 84bad6e
di.torq, di.torq.config: -parentproctype tier for settings and app co…
alowrydi 4941b05
di.torq.proc.gateway: getdata behind the eod reload gate; log line sa…
alowrydi 5e8b444
di.torq.proc.gateway: single-type queries run during the eod reload, …
alowrydi 4c507a2
di.torq.servers: test fixture on OS-assigned ports with a listener check
alowrydi 6cdfcd1
di.torq.proc.tickerplant: upd rolls the day first when past the roll,…
alowrydi 389f56b
di.torq.proc.tickerlogreplay: upd and save down hooks from config, as…
alowrydi 4f150ed
di.torq.proc.wdb: doc, sortcsv fallback is di.dbwrite's sym-then-time…
alowrydi f628a50
di.dbwrite: doc, built-in default sort is p# on sym, sorted by sym th…
alowrydi 2143e10
di.torq.proc.tickerplant: rolltimezone/datatimezone/rolltimeoffset re…
alowrydi ee3ea38
di.torq.proc.gateway: synccallsallowed reaches di.asyncdispatch as a …
alowrydi 430fc1f
di.torq.proc.gateway: fixture rows no longer depend on the time of day
alowrydi 7b04806
di.subscriptions: checksubscriptionperiod accepts TOML values
alowrydi 36414a9
di.torq.proc.tickerplant: rolltimeoffset accepts TOML values
alowrydi 0639b21
di.torq.proc.segmentedtp: [eodtime] section accepts TOML values
alowrydi 98dc9b0
Merge branch 'main' into feature-framework-polishing
alowrydi 885698f
di.torq: find the framework checkout through QPATH when TORQXHOME is …
alowrydi 276cb89
di.torq: frameworkhome searches where use does, skipping empty QPATH …
alowrydi 785d95f
di.torq: frameworkhome skips the $QHOME/mod fallback when QHOME is un…
alowrydi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| \l ::compression.q | ||
|
|
||
| export:([init;showcomp;getcompressioncsv;compressmaxage;docompression;getstatstab]) | ||
| export:([init;showcomp;getcompressioncsv;compressmaxage;docompression;getstatstab;compress]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| / fixture helpers for di.compression's worker-process and single-file tests. Assumes cwd is the kdbx-modules repo root. | ||
| / two real worker q processes on ephemeral ports serve peach with \s -2; each writes its port to a file. | ||
|
|
||
| WDIR:"cmpWorkers_",string .z.i; | ||
| WPORTS:(); | ||
| WH:(); | ||
|
|
||
| / a one-partition hdb with two tables of three columns, and a csv that gzips everything | ||
| mkworkerhdb:{[] | ||
| d:hsym`$WDIR,"/hdb"; | ||
| {[d;t] (` sv .Q.par[d;2026.01.01;t],`) set .Q.en[d;([]time:2026.01.01D0+til 1000;sym:1000?`a`b`c;price:1000?100f)]}[d] each `trade`quote; | ||
| (hsym`$WDIR,"/params.csv") 0: ("table,minage,column,calgo,cblocksize,clevel";"default,0,default,2,17,6"); | ||
| }; | ||
|
|
||
| / the port files the workers have written | ||
| portfiles:{[] ` sv/: (hsym`$WDIR),/:k where (k:key hsym`$WDIR) like "port_*"}; | ||
|
|
||
| / start two workers with di.compression loaded and wait for their ports | ||
| startworkers:{[] | ||
| system "mkdir -p ",WDIR; | ||
| (hsym`$WDIR,"/worker.q") 0: ( | ||
| "cmp:use`di.compression;"; | ||
| "cmp.init enlist[`log]!enlist `info`warn`error!3#enlist {[c;m]};"; | ||
| "(hsym`$\"",WDIR,"/port_\",string .z.i) 0: enlist string system\"p\";"); | ||
| {[x] system "sleep 120 | ",(first .z.X)," ",WDIR,"/worker.q -p 0W -q >/dev/null 2>&1 &"} each 1 2; | ||
| / wait up to 10s for both port files | ||
| {[x] system "sleep 0.1"; x+1}/[{(x<100) and 2>count portfiles[]};0]; | ||
| `WPORTS set "J"$first each read0 each portfiles[]; | ||
| `WH set hopen each WPORTS; | ||
| }; | ||
|
|
||
| / compress the hdb with \s -2 over the workers, counting cleancompressed calls on this process | ||
| CLEANS:0; | ||
| workerrun:{[] | ||
| mkworkerhdb[]; | ||
| orig:.m.di.0compression.cleancompressed; | ||
| .m.di.0compression.cleancompressed:{[o;f;a] @[`.;`CLEANS;+;1]; o[f;a]}[orig]; | ||
| .z.pd:{`u#WH}; | ||
| system "s -2"; | ||
| r:@[{cmp.docompression[hsym`$WDIR,"/hdb";hsym`$WDIR,"/params.csv"];`ok};::;{x}]; | ||
| system "s 0"; | ||
| .m.di.0compression.cleancompressed:orig; | ||
| f:raze {p:.Q.par[hsym`$WDIR,"/hdb";2026.01.01;x]; ` sv/: p,/:key[p] except `.d} each `trade`quote; | ||
| `result`mainclean`algos`stats!(r;CLEANS;{(-21!x)`algorithm} each f;count cmp.getstatstab[]) | ||
| }; | ||
|
|
||
| stopworkers:{[] | ||
| {neg[x] "exit 0"; neg[x][]} each WH; | ||
| system "rm -rf ",WDIR; | ||
| }; | ||
|
|
||
| / the single-file compress legacy housekeeping's kdbzip calls: .cmp.compress[f;2;17;4;hcount f] (housekeeping.q:64) | ||
| onefile:{[] | ||
| f:hsym`$WDIR,"_one"; | ||
| f set v:100000?100f; | ||
| cmp.compress[f;2;17;4;hcount f]; | ||
| t:hsym`$(string f),"_kdbtempzip"; | ||
| r:`original`temp`same!(0=count -21!f;2 17 4i~(-21!t)`algorithm`logicalBlockSize`zipLevel;v~get t); | ||
| hdel each (f;t); | ||
| r | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.