Skip to content

Commit

Permalink
Merge pull request #1039 from coq/retry-ci
Browse files Browse the repository at this point in the history
ci: add a retry action to avoid sporadic fails
  • Loading branch information
rtetley authored Feb 21, 2025
2 parents d562906 + ea93302 commit e1ae5c8
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 7 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,21 @@ jobs:
diff search-ui/new_yarn.nix search-ui/yarn.nix
- run: nix develop .#vscoq-${{ matrix.coq }} -c bash -c "cd language-server && dune build --profile ${{ matrix.profile }}"
- run: nix develop .#vscoq-${{ matrix.coq }} -c bash -c "cd client && yarn run install:all && yarn run build:all && yarn run compile"
- run: xvfb-run nix develop .#vscoq-${{ matrix.coq }} -c bash -c "cd client && yarn test"
- name: Test xvfb
uses: Wandalen/wretry.action@v3
with:
attempt_limit: 5
attempt_delay: 5000
command: |
xvfb-run nix develop .#vscoq-${{ matrix.coq }} -c bash -c "cd client && yarn test"
if: runner.os == 'Linux'
- run: nix develop .#vscoq-${{ matrix.coq }} -c bash -c "cd client && yarn test"
- name: Test
uses: Wandalen/wretry.action@v3
with:
attempt_limit: 5
attempt_delay: 5000
command: |
nix develop .#vscoq-${{ matrix.coq }} -c bash -c "cd client && yarn test"
if: runner.os != 'Linux'
- if: ${{ failure() }}
run: cat /tmp/vscoq_init_log.*
Expand Down
4 changes: 2 additions & 2 deletions client/src/test/suite/extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ suite('Should get diagnostics', function () {

const ext = vscode.extensions.getExtension('maximedenes.vscoq')!;
await ext.activate();
vscode.workspace.getConfiguration().update('vscoq.proof.mode','Continuous');
vscode.workspace.getConfiguration().update('vscoq.proof.mode',1);

const doc = await common.openTextFile('basic.v');

Expand All @@ -35,7 +35,7 @@ suite('Should get diagnostics', function () {

const ext = vscode.extensions.getExtension('maximedenes.vscoq')!;
await ext.activate();
vscode.workspace.getConfiguration().update('vscoq.proof.mode','Continuous');
vscode.workspace.getConfiguration().update('vscoq.proof.mode',1);

const doc1 = await common.openTextFile('basic.v');
const doc2 = await common.openTextFile('warn.v');
Expand Down
2 changes: 1 addition & 1 deletion client/src/test/suite/feedback.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ suite('Should get diagnostics in the appropriate tab', function () {
const ext = vscode.extensions.getExtension('maximedenes.vscoq')!;
await ext.activate();

vscode.workspace.getConfiguration().update('vscoq.proof.mode','Continuous');
vscode.workspace.getConfiguration().update('vscoq.proof.mode',1);

const doc1 = await common.openTextFile('basic.v');
const doc2 = await common.openTextFile('warn.v');
Expand Down
2 changes: 1 addition & 1 deletion client/src/test/suite/feedback_delegation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ suite('Should get diagnostics in the appropriate tab', function () {
await ext.activate();

vscode.workspace.getConfiguration().update('vscoq.proof.delegation','Delegate');
vscode.workspace.getConfiguration().update('vscoq.proof.mode','Continuous');
vscode.workspace.getConfiguration().update('vscoq.proof.mode',1);

const doc1 = await common.openTextFile('delegate_proof.v');
const doc2 = await common.openTextFile('warn.v');
Expand Down
2 changes: 1 addition & 1 deletion client/src/test/suite/feedback_skip.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ suite('Should get diagnostics in the appropriate tab', function () {
await ext.activate();

vscode.workspace.getConfiguration().update('vscoq.proof.delegation','Skip');
vscode.workspace.getConfiguration().update('vscoq.proof.mode','Continuous');
vscode.workspace.getConfiguration().update('vscoq.proof.mode',1);

const doc1 = await common.openTextFile('delegate_proof.v');

Expand Down

0 comments on commit e1ae5c8

Please sign in to comment.