@afix-ci/cli-linux-x64 0.1.0-rc.44 → 0.1.0-rc.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +11 -12
  2. package/cli +0 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -80,17 +80,18 @@ prepared checkout.
80
80
  ```sh
81
81
  # Interactive setup to authenticate and select pipelines
82
82
  afix autoclass ado-init
83
- # pull the latest 500 failed builds of the pipelines you selected
83
+ # pull the latest 500 uncached failed builds of the pipelines you selected
84
84
  afix autoclass pull-logs --count=500
85
85
  # run metrics to generate graphs and csv to ./afix-metrics
86
86
  afix autoclass metrics
87
87
  # render previously computed dwell history without scanning logs or reading Git
88
88
  afix autoclass metrics --metrics-provider=static
89
- # prefer read-only CI artifacts in order and calculate remaining events locally
90
- afix autoclass metrics --metrics-provider=combined-calculated-static \
91
- --static-cache-dir=/path/to/preferred-metrics-artifact \
92
- --static-cache-dir=/path/to/older-metrics-artifact \
93
- --computed-cache-dir=.cache/afix
89
+ # merge historical metrics artifacts into one physical cache, oldest first
90
+ afix cache merge-metrics \
91
+ --input=/path/to/older-metrics-artifact \
92
+ --input=/path/to/newer-metrics-artifact \
93
+ --output=.cache/afix \
94
+ --replace
94
95
  # pull unique PR ids from metrics csv
95
96
  cat afix-metrics/build-history.csv | python3 -c 'import csv,sys; seen=set(); [print(r["pr_id"]) for r in csv.DictReader(sys.stdin) if r["is_open"]=="true" and r["fixable"]=="true" and r["is_safe_submit"]=="true" and not (r["pr_id"] in seen or seen.add(r["pr_id"]))]' > afix-metrics/safe-pr-ids.log
96
97
  # fix all, sequentially
@@ -101,9 +102,7 @@ Compute and `pull-logs` runs populate config-keyed build classification history
101
102
  and commit-OID-keyed closure/token-usage facts in the shared SQLite cache.
102
103
  Static reports read only those cached historical inputs; a build without
103
104
  classification history for the current config is charted as `Unavailable`.
104
- Combined reports query repeatable static directories in command-line order.
105
- Each complete, closed event is retained and excluded from later providers;
106
- unknown, unavailable, or open events continue through the remaining static
107
- directories and finally the calculated provider. Static directories are never
108
- used for calculated writes; `--computed-cache-dir` defaults to the repository
109
- afix cache.
105
+ Historical artifacts should contain only normalized metrics state. Merge them
106
+ oldest to newest with `afix cache merge-metrics`, extend the resulting cache
107
+ with `pull-logs`, and render it with the static provider. Use `--cache-dir` to
108
+ read or write a cache outside the repository default.
package/cli CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afix-ci/cli-linux-x64",
3
- "version": "0.1.0-rc.44",
3
+ "version": "0.1.0-rc.47",
4
4
  "license": "MIT",
5
5
  "os": [
6
6
  "linux"