Skip to content

Commit 3460944

Browse files
committed
fix(test): increase compileTimeLimit to 60s for CI
g++ compilation on GitHub Actions Windows runners can take 20+ seconds under load (cold start penalty + 2 vCPU shared VM). 20s limit was too tight. Also remove unnecessary Defender exclusion step.
1 parent 873968e commit 3460944

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

.github/workflows/windows-qt6.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,6 @@ jobs:
8080
- name: Deploy Qt for tests
8181
shell: pwsh
8282
run: windeployqt tests\test1\test1.exe
83-
- name: Exclude temp dirs from Windows Defender
84-
shell: pwsh
85-
run: |
86-
Add-MpPreference -ExclusionPath $env:TEMP
87-
Add-MpPreference -ExclusionPath $env:RUNNER_TEMP
88-
Add-MpPreference -ExclusionProcess "g++.exe","ld.exe","cc1plus.exe","as.exe"
8983
- name: Run tests
9084
shell: bash
9185
env:

tests/test1/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static Settings *createSettings(QObject *parent = nullptr) {
3535
s->setDefaultTimeLimit(1000);
3636
s->setDefaultMemoryLimit(512);
3737
s->setDefaultExtraTimeRatio(0.2);
38-
s->setCompileTimeLimit(20000);
38+
s->setCompileTimeLimit(60000);
3939
s->setSpecialJudgeTimeLimit(10000);
4040
s->setFileSizeLimit(50);
4141
s->setRejudgeTimes(1);

0 commit comments

Comments
 (0)