@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.
- package/README.md +11 -12
- package/cli +0 -0
- 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
|
-
#
|
|
90
|
-
afix
|
|
91
|
-
--
|
|
92
|
-
--
|
|
93
|
-
--
|
|
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
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
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
|