@ai-ecoverse/slicc-shared-web 2.16.0 → 2.16.1

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 (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -84,7 +84,7 @@ The caller cancels superseded runs on pull requests only, so a push to `main` ne
84
84
 
85
85
  **Flaky tests.** With `flaky-retry` above 0 (this repo's own CI sets 3; the default, 0, runs the tests once, as before), a shard whose tests failed reruns its failing files once, right away, on the same runner and commit, through `slicc-flaky retry`, which the test, `integration` and `flaky` jobs take from the pipeline's own commit. A test that fails, then passes is a flip; one that fails twice is a failure. A test is its file and its top-level name, and its key is the first 16 hex digits of `sha256(file \0 name)`. There is no rerun, and the shard fails as before, without a JUnit report or a failing test in it, with more than `flaky-retry` failing files, or when less than the rerun's limit, min(15 min, a quarter of `timeout-minutes`), is left of `timeout-minutes`. A failing test whose JUnit `file=` isn't one of the run's `test-glob` files, such as Go's package directory, is never rerun (`not rerun: a failing test names no test file: <file>`), `integration` never excuses such a flip, whatever a shard's `flaky.json` says, and `flaky` logs it and files nothing. The rerun gets `SLICC_TEST_RETRY=1` and only those files, writes `junit/<shard>.retry.xml` (and no second `.files` list), keeps the first run's `artifacts/` and `coverage/` (its own artifacts go to `artifacts/retry/`), and is killed at the limit. `junit/<shard>.flaky.json` records each retried test's first and retry outcome, its first error and the runner. A flip passes the shard only if an open `flaky-test` issue has its key and has seen it on another commit (it has no `new` label, or its commit isn't this one), the test file doesn't match `strict-tests` and the pull request doesn't change it; every other flip stays red, and so does a test that is skipped, cancelled or missing on the rerun, a rerun that ran no test, wrote no JUnit report or timed out, and a test that passed first and failed on the rerun. Only the rerun's results count for those tests; its exit status doesn't, so a check after `node --test` in `test` (such as this repo's `verify.mjs`) doesn't fail a rerun of one file. `lint` reads the open `flaky-test` issues once (with `issues: read`) and the pull request's changed files, and hands them to the shards and `integration`; when it can't, no flake is known and every flip stays red. `integration` judges each shard's flips again from its JUnit reports and that list, counts only the failures it doesn't excuse, keeps every other check on the first run, and names the flakes: `integration: PASS … , 2 known flakes passed on retry (#916, #844)`. Each shard also uploads the tests that finally failed as `failed-<shard>-<attempt>`, and a test that failed on an earlier attempt of the run and passes now counts as a flip in the report, though not for the gate. The `flaky` job (`issues: write`, `actions: read`, `continue-on-error`) writes a table of the run's flips and failures to its step summary and files one issue per test: title `flaky: <file name> › <test name>`, label `flaky-test`, `new` until a second commit, `guard` for a strict row, whose issue and comments name only the test, the run and the commit, and ``Key: `<key>` `` in the body. It finds the issue among the open ones, then among those closed in the last 30 days, which it reopens, and otherwise opens one; it comments at most once per issue per run with the run and attempt, the event, the pull request, the shard, the runner, the commit and the first error (at most 3,000 characters). It posts nothing that holds the job token or a token-shaped string (the same scan the cert review's `post` had), nothing on a branch matching `flaky-quiet-branches`, nothing on a pull request whose run also has a failure or a shard that wasn't rerun, nothing for a test the pull request changes, and nothing at all when a run would open more than 5 issues (`flaky: <n> flips in one run, not filing (infrastructure?)`). In the merge queue, each open issue whose test passed first time gets `<!-- clean: <n> since <date> -->` in its body, which a flip clears; at `flaky-close-after` it is closed with `no flip in <n> clean merge-group runs since <date>; a new flip reopens it`. It needs `node --test` through the shared harness: `$TEST` must honour `SLICC_TEST_FILES` and write node's JUnit report with `file=`.
86
86
 
87
- **Reviewer** runs twice, once with [claude-code-action](https://github.com/anthropics/claude-code-action) and once with [codex-action](https://github.com/openai/codex-action), on the same prompt, whether the tests passed or not. Both run on Amazon Bedrock with the org secret `AWS_BEARER_TOKEN_BEDROCK`, in the region of the org variable `CERT_AWS_REGION` (`us-west-2` without it). Claude uses the model in `CERT_BEDROCK_MODEL` (`global.anthropic.claude-opus-5-5` without it), as the cert reviews do. When that run ends without a verdict (no `structured_output`, or a result with `is_error`), the job runs Claude once more on `CERT_BEDROCK_FALLBACK_MODEL` (`global.anthropic.claude-sonnet-5-5` without it) and takes that verdict; when the second run has none either, the job fails and `review / claude` is `error`, as before. After each run one log line gives only the structural fields of `claude-execution-output.json` (the result's `subtype`, `is_error`, `stop_reason`, `num_turns`, `total_cost_usd`, `terminal_reason` and `api_error_status`, the refusal category and the assistant error kind), or says the file is missing; a value that isn't a plain word shows as `?`, so no model text, transcript or diff reaches the public log. The file is then deleted, and nothing uploads it. Codex uses its built-in `amazon-bedrock-runtime` provider (codex-action waits for its OpenAI proxy's `<run id>.json` in `codex-home` whenever it has a prompt, so the job writes a placeholder one) and the model in `CODEX_BEDROCK_MODEL` (`global.openai.gpt-6.1-sol` without it). Bedrock sometimes rejects a request partway through a Codex session with `invalid_request_error` / `validation_error` ("invalid encrypted view"): Codex replays each turn's encrypted reasoning in the next request, always does for this provider, and has no setting to stop it, and a new session has none to replay. So when the first run exits non-zero or ends without a final message, the job runs Codex once more, a new session on the same model with the same inputs, and takes that verdict; when the second run has none either, the job fails and `review / codex` is `error`, as before. On a GitHub-hosted runner codex-action's `drop-sudo` removes sudo for the rest of the job, so a second run can't start there and fails at once. After each run one log line gives only structural facts from the session's rollout in `codex-home`: the step's outcome, whether it left a message, how the turn ended, the API error's `type` and `code`, Codex's error kind and the tokens used, or says there is no rollout; a value that isn't a plain word shows as `?`. The rollout is then deleted, and nothing uploads it. Models that Bedrock serves only through inference profiles, as Sol 6.1 is, need the runtime provider and the profile's `global.` id; the `amazon-bedrock` provider's endpoint doesn't list them. The job token can only read. Each reviewer gets:
87
+ **Reviewer** runs twice, once with [claude-code-action](https://github.com/anthropics/claude-code-action) and once with [codex-action](https://github.com/openai/codex-action), on the same prompt, whether the tests passed or not. Both run on Amazon Bedrock with the org secret `AWS_BEARER_TOKEN_BEDROCK`, in the region of the org variable `CERT_AWS_REGION` (`us-west-2` without it). Claude uses the model in `CERT_BEDROCK_MODEL` (`global.anthropic.claude-opus-5-5` without it), as the cert reviews do. When that run ends without a verdict (no `structured_output`, or a result with `is_error`), the job runs Claude once more on `CERT_BEDROCK_FALLBACK_MODEL` (`global.anthropic.claude-sonnet-5-5` without it) and takes that verdict; when the second run has none either, the job fails and `review / claude` is `error`, as before. After each run one log line gives only the structural fields of `claude-execution-output.json` (the result's `subtype`, `is_error`, `stop_reason`, `num_turns`, `total_cost_usd`, `terminal_reason` and `api_error_status`, the refusal category and the assistant error kind), or says the file is missing; a value that isn't a plain word shows as `?`, so no model text, transcript or diff reaches the public log. The file is then deleted, and nothing uploads it. Codex uses its built-in `amazon-bedrock-runtime` provider (codex-action waits for its OpenAI proxy's `<run id>.json` in `codex-home` whenever it has a prompt, so the job writes a placeholder one) and the model in `CODEX_BEDROCK_MODEL` (`global.openai.gpt-6.1-sol` without it). Bedrock sometimes rejects a request partway through a Codex session with `invalid_request_error` / `validation_error` ("invalid encrypted view"): Codex replays each turn's encrypted reasoning in the next request, always does for this provider, and has no setting to stop it, and a new session has none to replay. So when the first run exits non-zero or ends without a final message, the job runs Codex once more, a new session with the same inputs on the model in `CODEX_BEDROCK_FALLBACK_MODEL` (the first run's model without it), and takes that verdict; when the second run has none either, the job fails and `review / codex` is `error`, as before. `CODEX_BEDROCK_FALLBACK_MODEL` is for when Bedrock fails every request to the first model (`codex_error=internal_server_error` on both attempts): only the retry reads it, so set it to another OpenAI model's `global.` profile, such as `global.openai.gpt-6.2-astra`, which answered a codex-action run on this account. On a GitHub-hosted runner codex-action's `drop-sudo` removes sudo for the rest of the job, so a second run can't start there and fails at once. After each run one log line gives only structural facts from the session's rollout in `codex-home`: the step's outcome, whether it left a message, how the turn ended, the API error's `type` and `code`, Codex's error kind and the tokens used, or says there is no rollout; a value that isn't a plain word shows as `?`. The rollout is then deleted, and nothing uploads it. Models that Bedrock serves only through inference profiles, as Sol 6.1 is, need the runtime provider and the profile's `global.` id; the `amazon-bedrock` provider's endpoint doesn't list them. The job token can only read. Each reviewer gets:
88
88
 
89
89
  - the pull request's head, with full history, as the working directory, and its base in `$RUNNER_TEMP/base`, each after `npm ci` (claude-code-action needs the working directory to be a checkout, and a base nested inside it would break the head's Biome config). Everything else the reviewers get or write (the prompt, context, integration artifacts, `browsers.json`, findings and screenshots) is in `$RUNNER_TEMP/review`, outside the checkout, so a reviewer's `npm run lint` sees only the repository;
90
90
  - `$RUNNER_TEMP/review/integration/`, every shard's artifact;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-shared-web",
3
- "version": "2.16.0",
3
+ "version": "2.16.1",
4
4
  "description": "Shared Renovate, Biome, TypeScript, lefthook and GitHub Actions configuration, plus the CDP integration-test harness, for SLICC's web repos",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -75,12 +75,12 @@
75
75
  "release": "semantic-release"
76
76
  },
77
77
  "devDependencies": {
78
- "@ai-ecoverse/slicc-browsers": "1.27.2",
79
- "@ai-ecoverse/slicc-cdp": "1.54.0",
78
+ "@ai-ecoverse/slicc-browsers": "1.28.2",
79
+ "@ai-ecoverse/slicc-cdp": "1.54.4",
80
80
  "@biomejs/biome": "2.6.7",
81
81
  "lefthook": "2.2.2",
82
82
  "monocart-coverage-reports": "3.2.1",
83
- "pnpm": "12.19.0",
83
+ "pnpm": "12.20.0",
84
84
  "semantic-release": "25.0.9"
85
85
  },
86
86
  "peerDependencies": {