mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-30 05:32:47 -07:00
fix(cli): resolve race conditions in test utils and streamline CI workflow
This commit is contained in:
@@ -65,22 +65,4 @@ jobs:
|
||||
run: 'npx vitest run packages/cli'
|
||||
shell: 'bash'
|
||||
|
||||
test_integration:
|
||||
name: 'Test (Linux) - Bundled Integration'
|
||||
needs: 'build_bundle'
|
||||
runs-on: 'gemini-cli-ubuntu-16-core'
|
||||
steps:
|
||||
- name: 'Checkout'
|
||||
uses: 'actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8'
|
||||
|
||||
- name: 'Setup with Bundle'
|
||||
uses: './.github/actions/setup-gemini'
|
||||
with:
|
||||
mode: 'bundle'
|
||||
bundle-artifact: 'gemini-bundle'
|
||||
|
||||
- name: 'Run Integration Tests'
|
||||
env:
|
||||
GEMINI_API_KEY: '${{ secrets.GEMINI_API_KEY }}'
|
||||
run: 'npm run test:integration:sandbox:none'
|
||||
shell: 'bash'
|
||||
|
||||
@@ -263,16 +263,16 @@ class XtermStdout extends EventEmitter {
|
||||
return currentFrame !== '' || this.pendingWrites === 0;
|
||||
}
|
||||
|
||||
if (this.lastRenderOutput === undefined) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// If Ink expects nothing (no new static content and no dynamic output),
|
||||
// we consider it a match because the terminal buffer will just hold the historical static content.
|
||||
if (expectedFrame === '') {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (this.lastRenderOutput === undefined) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// If the terminal is empty but Ink expects something, it's not a match.
|
||||
if (currentFrame === '') {
|
||||
return false;
|
||||
@@ -865,7 +865,7 @@ export async function renderHook<Result, Props>(
|
||||
);
|
||||
inkRerender = renderResult.rerender;
|
||||
unmount = renderResult.unmount;
|
||||
waitUntilReady = renderResult.waitUntilReady;
|
||||
waitUntilReady = async () => {};
|
||||
generateSvg = renderResult.generateSvg;
|
||||
|
||||
function rerender(props?: Props) {
|
||||
|
||||
Reference in New Issue
Block a user