1
0
forked from rosa/hakurei
Commit Graph

41 Commits

Author SHA1 Message Date
kat f0f0154eeb TODO: actually write tests lol 2026-03-31 11:37:30 +11:00
kat c499a952f9 cmd/pkgserver/ui_test: implement skipping from DSL 2026-03-31 11:37:30 +11:00
kat 274c955c80 cmd/pkgserver/ui_test: add JSON reporter for go test integration 2026-03-31 11:37:30 +11:00
kat 841915309e cmd/pkgserver/ui_test: implement DSL and runner 2026-03-31 11:37:30 +11:00
kat 83a0f632fc cmd/pkgserver/ui_test: add DOM reporter 2026-03-31 11:37:30 +11:00
kat 2481662e78 cmd/pkgserver/ui_test: add basic CLI reporter 2026-03-31 11:37:30 +11:00
kat db9ab3550c cmd/pkgserver: enable TypeScript's strict mode 2026-03-31 11:08:17 +11:00
maemachinebroke c7e195fe64 cmd/pkgserver: remove get endpoint count field 2026-03-13 20:51:08 -05:00
maemachinebroke d5db9add98 cmd/pkgserver: search endpoint 2026-03-13 20:51:08 -05:00
maemachinebroke ab8abdc82b cmd/pkgserver: pagination bugfix 2026-03-13 20:51:08 -05:00
cat 770fd46510 cmd/pkgserver: guard sass/ts behind build tag
Packaging nodejs and ruby is an immense burden for the Rosa OS base system, and these files diff poorly.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-03-13 20:51:08 -05:00
maemachinebroke 99f1c6aab4 cmd/pkgserver: add size 2026-03-13 20:51:08 -05:00
cat 9ee629d402 cmd/pkgserver: expose size and store pre-encoded ident
This change also handles SIGSEGV correctly in newStatusHandler, and makes serving status fully zero copy.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-03-13 20:51:08 -05:00
cat f475dde8b9 cmd/pkgserver: look up status by name once
This has far less overhead.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-03-13 20:51:08 -05:00
cat c43a0c41b6 cmd/pkgserver: refer to preset in index
This enables referencing back to internal/rosa through an entry obtained via the index.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-03-13 20:51:08 -05:00
cat 55827f1a85 cmd/pkgserver: handle unversioned value
This omits the field for an unversioned artifact, and only does so once on startup.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-03-13 20:51:08 -05:00
cat 721bdddfa1 cmd/pkgserver: determine disposition route in mux
This removes duplicate checks and uses the more sound check in mux.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-03-13 20:51:08 -05:00
cat fb18e599dd cmd/pkgserver: format get error messages
This improves source code readability on smaller displays.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-03-13 20:51:08 -05:00
cat ec9005c794 cmd/pkgserver: constant string in pattern
This resolves patterns at compile time.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-03-13 20:51:08 -05:00
cat c6d35b4003 cmd/pkgserver: satisfy handler signature in method
This is somewhat cleaner.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-03-13 20:51:08 -05:00
cat 6401533cc2 cmd/pkgserver: log instead of write encoding error
This message is unlikely to be useful to the user, and output may be partially written at this point, causing the error to be even less intelligible.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-03-13 20:51:08 -05:00
cat 5d6c401beb cmd/pkgserver: appropriately mark test helpers
This improves usefulness of test log messages.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-03-13 20:51:08 -05:00
cat 0a2d6aec14 cmd/pkgserver: do not omit report field
Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-03-13 20:51:08 -05:00
cat 67b11335d6 cmd/pkgserver: gracefully shut down on signal
Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-03-13 20:51:08 -05:00
cat ef3bd1b60a cmd/pkgserver: specify full addr string in flag
This allows greater flexibility.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-03-13 20:51:08 -05:00
cat beae7c89db cmd/pkgserver: make report argument optional
This allows serving metadata only without a populated report. This also removes the out-of-bounds read on args when no arguments are passed.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-03-13 20:51:08 -05:00
cat ed26d1a1c2 cmd/pkgserver: embed internal/rosa metadata
This change also cleans up and reduces some unnecessary copies.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-03-13 20:51:08 -05:00
cat faa0006d47 cmd/pkgserver: do not assume default mux
This helps with testing.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-03-13 20:51:08 -05:00
cat 796ddbc977 cmd/pkgserver: create index without report
This is useful for testing, where report testdata is not available.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-03-13 20:51:08 -05:00
maemachinebroke 98ab020160 cmd/pkgserver: add sort orders, change pagination rules 2026-03-13 20:51:08 -05:00
maemachinebroke 26a346036d cmd/pkgserver: add /status endpoint 2026-03-13 20:51:08 -05:00
maemachinebroke 4ac9c72132 cmd/pkgserver: minimum viable frontend 2026-03-13 20:51:08 -05:00
maemachinebroke c39c07d440 cmd/pkgserver: api versioning 2026-03-13 20:51:08 -05:00
maemachinebroke b3fa0fe271 cmd/pkgserver: add get endpoint 2026-03-13 20:51:08 -05:00
maemachinebroke 92a90582bb cmd/pkgserver: add count endpoint and restructure 2026-03-13 20:51:08 -05:00
maemachinebroke 2e5ac56bdf cmd/pkgserver: add status endpoint 2026-03-13 20:51:08 -05:00
maemachinebroke 75133e0234 cmd/pkgserver: add createPackageIndex 2026-03-13 20:51:08 -05:00
maemachinebroke c120d4de4f cmd/pkgserver: add command handler 2026-03-13 20:51:08 -05:00
maemachinebroke d6af8edb4a cmd/pkgserver: replace favicon 2026-03-13 20:51:08 -05:00
maemachinebroke da25d609d5 cmd/pkgserver: pagination 2026-03-13 20:51:08 -05:00
maemachinebroke 95ceed0de0 cmd/pkgserver: basic web ui 2026-03-13 20:51:08 -05:00