feat: implement all TODO specs — pagination, caching, manifest, routing, delta, error reporting#1
Merged
Merged
Conversation
…ng, delta, error reporting Implement all 7 planned improvements for actions-mn/aggregate: - Paginated release fetching (handles repos with >100 releases) - ETag caching (skip repos with unchanged release listings) - Content-hash deduplication (skip re-downloading unchanged releases) - Channel manifest discovery (skip repos via .metanorma/channels.yml) - Custom file routing (flat / by-doctype / by-format output structure) - Structured error reporting with fail-on-error and failed-repos output - Delta aggregation (incremental mode with stale file cleanup) Architecture improvements: - Extract release fetching into IReleaseFetcher interface (OCP) - Add ICacheStore abstraction for ETag and delta state persistence - Add IManifestReader for channel manifest pre-checks - Add DeltaStateManager for content-hash dedup and state tracking - Pipeline config extracted into PipelineConfig type - Null implementations for all optional features (caching disabled mode) - Adopt .prettierrc.json and .prettierignore from release project 91 tests passing (55 existing + 36 new), 95%+ line coverage.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Implements all 7 planned improvements from the TODO specs with full architectural alignment to
actions-mn/release.Features
ICacheStore; skip repos on HTTP 304.metanorma/channels.ymlto skip repos with no matching channelsflat(default),by-doctype, orby-formatoutput structurefail-on-errorandfailed-reposoutputArchitecture
IReleaseFetcher,IManifestReader,ICacheStoreinterfacesNullCacheStore,NullManifestReader,NullDeltaManagerfor no-cache modePipelineConfigtype; pipeline uses injected interfaces onlymain.tsand injected intoAggregationPipelineNew Files
New Inputs
cache-dir— persistent cache directory (backed byactions/cache)force-full— force full aggregation, ignoring cachefile-routing— flat / by-doctype / by-formatfail-on-error— fail action on repo errorsNew Outputs
failed-repos— JSON array of repos with errorsTest Coverage
91 tests passing (55 existing + 36 new), 95%+ line coverage across all metrics.
Breaking Changes
None — all new inputs have defaults that preserve existing behavior.