@sreetej510/pi-shipd-checks 0.9.3 → 0.9.5
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 +23 -10
- package/dist/fargate-worker.mjs +806 -797
- package/dist/index.js +56 -55
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -38,7 +38,8 @@ current checks, starts Test Quality before Solution Quality in one browser tab,
|
|
|
38
38
|
`"Not fair"`, and the complete `details.solutionQuality.evaluation` block. Its compact UI is labeled `Quality Checks`,
|
|
39
39
|
shows live elapsed time, and only displays unfair-test count, suggestion count, code-quality score, and
|
|
40
40
|
comprehensiveness score. It takes no parameters. It uses one fresh headless browser tab at a time: it closes the
|
|
41
|
-
browser after starting the needed jobs, checks after 5 minutes, then reopens every 90 seconds until those jobs finish
|
|
41
|
+
browser after starting the needed jobs, checks after 5 minutes, then reopens every 90 seconds until those jobs finish, with no
|
|
42
|
+
client-side overall timeout. If
|
|
42
43
|
all checks are current, it uses existing reports without starting a job. Each
|
|
43
44
|
browser context blocks images, fonts, and media to reduce memory use. It does not click the final orange
|
|
44
45
|
challenge-submit button. Authentication comes from `SHIPD_STORAGE_STATE` or the saved state created by
|
|
@@ -142,24 +143,36 @@ On-Demand fallback. Spot interruptions are retried according to `fargate.maxRetr
|
|
|
142
143
|
```
|
|
143
144
|
|
|
144
145
|
`cluster`, `subnetIds`, and `securityGroupId` are optional when a default VPC is available.
|
|
145
|
-
With `adaptiveResourceProfile: true`, the first
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
146
|
+
With `adaptiveResourceProfile: true`, the first solver-gap or quality patch-precheck run for
|
|
147
|
+
a repository uses `resourceProfile` (unless `projectProfiles` already overrides it); later runs
|
|
148
|
+
upgrade when normalized CPU is at least 95% for more than seven
|
|
149
|
+
minutes, downgrade when CPU is at least 95% for under two minutes, and otherwise retain the
|
|
150
|
+
profile. Only the selected next profile is written to `projectProfiles`; CPU telemetry is
|
|
151
|
+
included in `shipd_report.json` for solver-gap runs, but no telemetry history is retained. Set
|
|
152
|
+
`projectProfiles` to override resources per repository:
|
|
150
153
|
`{"C:/path/to/repo":"large"}`.
|
|
151
154
|
|
|
152
155
|
5. Restart pi, use `/checks --config` to select the solver and reviewer models, then run
|
|
153
156
|
`/checks --solver-gap-finder`. Projects need `Dockerfile`, `agent_prompt.md`,
|
|
154
157
|
`solution.patch`, `test.patch`, and `test.sh`.
|
|
155
158
|
|
|
159
|
+
For a Command Code subscription model, install the provider in the local pi if needed
|
|
160
|
+
(`pi install npm:pi-commandcode-provider`), then authenticate it with `/login` (**Use a
|
|
161
|
+
subscription** → **Command Code**) and make sure the plan includes Provider API access. Select a
|
|
162
|
+
`commandcode/...` solver model. The standalone Fargate worker bundles the pinned
|
|
163
|
+
`pi-commandcode-provider` package and registers it before starting solver sessions; installing a
|
|
164
|
+
separate Command Code CLI or npm package in the task image is not required. The task needs
|
|
165
|
+
outbound HTTPS access to the Command Code API. The runner uploads only the selected provider
|
|
166
|
+
credential from the local pi auth state for the task; never put the credential in project files.
|
|
167
|
+
|
|
156
168
|
Use `/analyze:on` and `/analyze:off` to control the gap-finder and solution-precheck tools per project, like HPC. The
|
|
157
169
|
enabled project list is stored alongside the other settings in `~/.pi/agent/checks-config.json`.
|
|
158
170
|
|
|
159
|
-
The patch precheck applies `test.patch`,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
and
|
|
171
|
+
The patch precheck applies `test.patch`, creates isolated workspaces with and without `solution.patch`, and runs the
|
|
172
|
+
base suites concurrently in both workspaces followed by the new suites concurrently in both workspaces. It requires
|
|
173
|
+
`./test.sh base` to pass, requires every `./test.sh new` testcase to fail or error individually (with no suite-level error)
|
|
174
|
+
before `solution.patch`, then requires both base and new suites to pass after the solution patch. A failed precheck aborts
|
|
175
|
+
before Shipd is opened and includes the Linux platform, a human-readable phase, and failed/errored test names in the tool error.
|
|
163
176
|
|
|
164
177
|
The `gap-finder` and `solution-precheck` tools are read-only and return repair recommendations; the caller changes the
|
|
165
178
|
tests, prompt, or solution. Invoke them only when the user asks, never in parallel, and run repeated requests
|