mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-25 09:31:43 +01:00
Skipped quarantined tests fail the run, and the upgrade snooze sticks for git installs (GST-3344) (#4590)
A quarantined test that the runner skipped now fails the run, and "Not now" on the upgrade prompt now lasts its full snooze on git installs. Why: four outside reports showed a false pass, a snooze that came back after two hours, a model check that ignored `config.toml`, and two `$B` rules missing from /browse. Nothing to do. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/specialist-batched#1 reader=red-team
This commit is contained in:
1 parent
0adfab9dd9
commit
e096fa850c
15 files changed
+175
-84
No files matched your search
@@ -187,6 +187,31 @@ describe('gstack-models inspector', () => {
|
||||
expect(doc.errors.map((e: { reason: string; role: string }) => `${e.reason}/${e.role}`)).toEqual(['custom_provider_requires_model/plan-review', 'custom_provider_requires_model/implementation']);
|
||||
});
|
||||
|
||||
// #4491 follow-up: resolve and list read the custom provider's config.toml model the way gstack-codex-probe role-ready does.
|
||||
test('a custom Codex provider naming the frontier catalog ID in config.toml resolves; any other name is not the tier', () => {
|
||||
const { env, home } = fixture();
|
||||
fs.mkdirSync(path.join(home, '.codex'));
|
||||
const toml = (model: string) => fs.writeFileSync(path.join(home, '.codex', 'config.toml'), `model = "${model}"\nmodel_provider = "proxy"\n`);
|
||||
toml('gpt-6-astra');
|
||||
const ok = json(['resolve', '--role', 'plan-review', '--provider', 'openai'], env);
|
||||
expect(ok.code).toBe(0);
|
||||
expect(ok.doc.selections[0]).toMatchObject({ role: 'plan-review', provider: 'openai', requestedModel: 'gpt-6-astra' });
|
||||
expect(json([], env).doc.errors.filter((e: { role: string }) => e.role === 'plan-review')).toEqual([]);
|
||||
toml('my-alias');
|
||||
const alias = json(['resolve', '--role', 'plan-review', '--provider', 'openai'], env);
|
||||
expect(alias.code).toBe(1);
|
||||
expect(alias.doc.errors[0]).toMatchObject({ reason: 'custom_provider_model_not_tier', provider: 'openai' });
|
||||
});
|
||||
|
||||
test('a custom provider whose config.toml model is not a string reports a structured error', () => {
|
||||
const { env, home } = fixture();
|
||||
fs.mkdirSync(path.join(home, '.codex'));
|
||||
fs.writeFileSync(path.join(home, '.codex', 'config.toml'), 'model = 5\nmodel_provider = "proxy"\n');
|
||||
const r = json(['resolve', '--role', 'plan-review', '--provider', 'openai'], env);
|
||||
expect(r.code).toBe(1);
|
||||
expect(r.doc.errors[0]).toMatchObject({ reason: 'native_provider_unresolved', provider: 'openai', role: 'plan-review' });
|
||||
});
|
||||
|
||||
test('project settings in the working directory are custom routing; detection limits are published', () => {
|
||||
const { env, root } = fixture();
|
||||
const project = path.join(root, 'project');
|
||||
|
||||
Reference in new issue
Block a user