-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathwindows.yml
More file actions
38 lines (37 loc) · 1.62 KB
/
Copy pathwindows.yml
File metadata and controls
38 lines (37 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.lint_windows_base:
stage: lint
needs: ["go_deps", "go_tools_deps"]
extends: [.windows_docker_default, .bazel:defs:cache:windows]
script:
- $ErrorActionPreference = "Stop"
- !reference [.sanitize_goproxy_windows]
- !reference [.docker_pull_winbuildimage_instrumented]
# Previously this job required only 8Gb of memory but since Go 1.20 it requires more to avoid being OOM killed.
# Each Windows VM has 32Gb of memory and contains 3 runners that can run one job at a time each (so a maximum of 3 simultaneous jobs per VM).
# Windows jobs are using either 8Gb or 16Gb of memory so we can limit memory to 16Gb on this job because even if we decided to limit to 10Gb for instance,
# it would leave 6Gb free but we could not fit another job with these 6Gb remaining.
- >
.\tools\ci\docker-run-with-bazel-cache.ps1
-m 24576M
-v "$(Get-Location):c:\mnt"
-e GITLAB_CI
-e DDA_FEATURE_FLAGS_CI_SSM_KEY_WINDOWS="${DDA_FEATURE_FLAGS_CI_SSM_KEY_WINDOWS}"
-e AWS_NETWORKING=true
-e CI_PIPELINE_ID
-e CI_PROJECT_NAME
-e CI_IDENTITIES_GITLAB_ID_TOKEN
-e GOMODCACHE="c:\modcache"
-e GOPROXY
-e GONOSUMDB
-e RUST_LOG="uv=trace"
${WINBUILDIMAGE}
powershell.exe -c "c:\mnt\tasks\winbuildscripts\Invoke-Linters.ps1 -BuildOutOfSource 1 -CheckGoVersion 1 -InstallDeps 1"
- If ($lastExitCode -ne "0") { throw "Previous command returned $lastExitCode" }
retry: !reference [.retry_only_infra_failure, retry]
lint_windows-x64:
extends: .lint_windows_base
rules:
- !reference [.on_native_os_linters]
variables:
ARCH: "x64"
timeout: 1h30m