mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -07:00
chore(int): disable flaky tests (#10771)
This commit is contained in:
@@ -18,55 +18,51 @@ describe('Interactive Mode', () => {
|
|||||||
await rig.cleanup();
|
await rig.cleanup();
|
||||||
});
|
});
|
||||||
|
|
||||||
it.skipIf(process.platform === 'win32')(
|
//TODO - https://github.com/google-gemini/gemini-cli/issues/10770
|
||||||
'should trigger chat compression with /compress command',
|
it.skip('should trigger chat compression with /compress command', async () => {
|
||||||
async () => {
|
await rig.setup('interactive-compress-test');
|
||||||
await rig.setup('interactive-compress-test');
|
|
||||||
|
|
||||||
const { ptyProcess } = rig.runInteractive();
|
const { ptyProcess } = rig.runInteractive();
|
||||||
await rig.ensureReadyForInput(ptyProcess);
|
await rig.ensureReadyForInput(ptyProcess);
|
||||||
|
|
||||||
const longPrompt =
|
const longPrompt =
|
||||||
'Dont do anything except returning a 1000 token long paragragh with the <name of the scientist who discovered theory of relativity> at the end to indicate end of response. This is a moderately long sentence.';
|
'Dont do anything except returning a 1000 token long paragragh with the <name of the scientist who discovered theory of relativity> at the end to indicate end of response. This is a moderately long sentence.';
|
||||||
|
|
||||||
await type(ptyProcess, longPrompt);
|
await type(ptyProcess, longPrompt);
|
||||||
await type(ptyProcess, '\r');
|
await type(ptyProcess, '\r');
|
||||||
|
|
||||||
await rig.waitForText('einstein', 25000);
|
await rig.waitForText('einstein', 25000);
|
||||||
|
|
||||||
await type(ptyProcess, '/compress');
|
await type(ptyProcess, '/compress');
|
||||||
// A small delay to allow React to re-render the command list.
|
// A small delay to allow React to re-render the command list.
|
||||||
await new Promise((resolve) => setTimeout(resolve, 100));
|
await new Promise((resolve) => setTimeout(resolve, 100));
|
||||||
await type(ptyProcess, '\r');
|
await type(ptyProcess, '\r');
|
||||||
|
|
||||||
const foundEvent = await rig.waitForTelemetryEvent(
|
const foundEvent = await rig.waitForTelemetryEvent(
|
||||||
'chat_compression',
|
'chat_compression',
|
||||||
90000,
|
90000,
|
||||||
);
|
);
|
||||||
expect(foundEvent, 'chat_compression telemetry event was not found').toBe(
|
expect(foundEvent, 'chat_compression telemetry event was not found').toBe(
|
||||||
true,
|
true,
|
||||||
);
|
);
|
||||||
},
|
});
|
||||||
);
|
|
||||||
|
|
||||||
it.skipIf(process.platform === 'win32')(
|
//TODO - https://github.com/google-gemini/gemini-cli/issues/10769
|
||||||
'should handle compression failure on token inflation',
|
it.skip('should handle compression failure on token inflation', async () => {
|
||||||
async () => {
|
await rig.setup('interactive-compress-test');
|
||||||
await rig.setup('interactive-compress-test');
|
|
||||||
|
|
||||||
const { ptyProcess } = rig.runInteractive();
|
const { ptyProcess } = rig.runInteractive();
|
||||||
await rig.ensureReadyForInput(ptyProcess);
|
await rig.ensureReadyForInput(ptyProcess);
|
||||||
|
|
||||||
await type(ptyProcess, '/compress');
|
await type(ptyProcess, '/compress');
|
||||||
await new Promise((resolve) => setTimeout(resolve, 100));
|
await new Promise((resolve) => setTimeout(resolve, 100));
|
||||||
await type(ptyProcess, '\r');
|
await type(ptyProcess, '\r');
|
||||||
|
|
||||||
const compressionFailed = await rig.waitForText(
|
const compressionFailed = await rig.waitForText(
|
||||||
'compression was not beneficial',
|
'compression was not beneficial',
|
||||||
25000,
|
25000,
|
||||||
);
|
);
|
||||||
|
|
||||||
expect(compressionFailed).toBe(true);
|
expect(compressionFailed).toBe(true);
|
||||||
},
|
});
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -227,7 +227,8 @@ describe('run_shell_command', () => {
|
|||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should allow all with "ShellTool" and other specifics', async () => {
|
//TODO - https://github.com/google-gemini/gemini-cli/issues/10768
|
||||||
|
it.skip('should allow all with "ShellTool" and other specifics', async () => {
|
||||||
const rig = new TestRig();
|
const rig = new TestRig();
|
||||||
await rig.setup('should allow all with "ShellTool" and other specifics');
|
await rig.setup('should allow all with "ShellTool" and other specifics');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user