1
0
Fork 0

restore cmake and other bins in path

This commit is contained in:
Mikhail Goncharov 2023-08-30 16:49:28 +02:00
parent d72694bfd9
commit ecf81eb2b6
9 changed files with 346 additions and 22 deletions

View file

@ -86,10 +86,27 @@ ENV PYTHONIOENCODING=UTF-8
# 'clang.exe' - add this last to let the other one have precedence. # 'clang.exe' - add this last to let the other one have precedence.
# To use these compilers, use the triple prefixed form, e.g. # To use these compilers, use the triple prefixed form, e.g.
# x86_64-w64-mingw32-clang. # x86_64-w64-mingw32-clang.
# C:\buildtools and SDK paths are ones that are set by c:\BuildTools\Common7\Tools\VsDevCmd.bat -arch=amd64 -host_arch=amd64
RUN powershell -Command ` RUN powershell -Command `
[System.Environment]::SetEnvironmentVariable('PATH', ` [System.Environment]::SetEnvironmentVariable('PATH', `
[System.Environment]::GetEnvironmentVariable('PATH', 'machine') + ';C:\Program Files\Git\usr\bin;C:\llvm-mingw\bin', ` [System.Environment]::GetEnvironmentVariable('PATH', 'machine') + ';C:\Program Files\Git\usr\bin;C:\llvm-mingw\bin' `
'machine') + ';C:\BuildTools\Common7\IDE\' `
+ ';C:\BuildTools\Common7\IDE\CommonExt ensions\Microsoft\TeamFoundation\Team Explorer' `
+ ';C:\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin' `
+ ';C:\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja' `
+ ';C:\BuildTools\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer' `
+ ';C:\BuildTools\Common7\IDE\CommonExtensions\Microsoft\TestWindow' `
+ ';C:\BuildTools\Common7\IDE\VC\VCPackages' `
+ ';C:\BuildTools\Common7\Tools\' `
+ ';C:\BuildTools\Common7\Tools\devinit' `
+ ';C:\BuildTools\MSBuild\Current\Bin' `
+ ';C:\BuildTools\MSBuild\Current\bin\Roslyn' `
+ ';C:\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64' `
+ ';C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64\' `
+ ';C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64' `
+ ';C:\Program Files (x86)\Windows Kits\10\bin\x64' `
+ ';C:\Windows\Microsoft.NET\Framework64\v4.0.30319' `
,'machine')
# support long file names during git checkout # support long file names during git checkout
RUN git config --system core.longpaths true & ` RUN git config --system core.longpaths true & `

View file

@ -15,7 +15,7 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: linux-big name: linux-test-112
namespace: buildkite namespace: buildkite
spec: spec:
replicas: 1 replicas: 1
@ -26,11 +26,11 @@ spec:
type: RollingUpdate type: RollingUpdate
selector: selector:
matchLabels: matchLabels:
app: linux-test-big app: linux-test-112
template: template:
metadata: metadata:
labels: labels:
app: linux-test-big app: linux-test-112
spec: spec:
containers: containers:
- name: buildkite-linux - name: buildkite-linux
@ -58,7 +58,7 @@ spec:
fieldRef: fieldRef:
fieldPath: metadata.name fieldPath: metadata.name
- name: BUILDKITE_AGENT_TAGS - name: BUILDKITE_AGENT_TAGS
value: "queue=linux-test-big,name=$(POD_NAME),cluster=google" value: "queue=linux-test-112,name=$(POD_NAME),cluster=google"
- name: BUILDKITE_BUILD_PATH - name: BUILDKITE_BUILD_PATH
value: "/var/lib/buildkite-agent/builds" value: "/var/lib/buildkite-agent/builds"
- name: BUILDKITE_API_TOKEN - name: BUILDKITE_API_TOKEN

View file

@ -26,21 +26,21 @@ spec:
type: RollingUpdate type: RollingUpdate
selector: selector:
matchLabels: matchLabels:
app: linux-test app: linux-test-32
template: template:
metadata: metadata:
labels: labels:
app: linux-test app: linux-test-32
spec: spec:
containers: containers:
- name: runner - name: runner
image: gcr.io/llvm-premerge-checks/buildkite-linux:latest image: gcr.io/llvm-premerge-checks/buildkite-linux:latest
resources: resources:
limits: limits:
cpu: 30 cpu: 31
memory: 80Gi memory: 80Gi
requests: requests:
cpu: 30 cpu: 31
memory: 80Gi memory: 80Gi
volumeMounts: volumeMounts:
- name: github-ssh - name: github-ssh
@ -58,7 +58,7 @@ spec:
fieldRef: fieldRef:
fieldPath: metadata.name fieldPath: metadata.name
- name: BUILDKITE_AGENT_TAGS - name: BUILDKITE_AGENT_TAGS
value: "queue=linux-test,name=$(POD_NAME),cluster=google" value: "queue=linux-test-32,name=$(POD_NAME),cluster=google"
- name: BUILDKITE_BUILD_PATH - name: BUILDKITE_BUILD_PATH
value: "/var/lib/buildkite-agent/builds" value: "/var/lib/buildkite-agent/builds"
- name: CONDUIT_TOKEN - name: CONDUIT_TOKEN
@ -78,5 +78,5 @@ spec:
- name: workdir - name: workdir
emptyDir: {} emptyDir: {}
nodeSelector: nodeSelector:
cloud.google.com/gke-nodepool: linux-agents-2 cloud.google.com/gke-nodepool: linux-32
terminationGracePeriodSeconds: 30 terminationGracePeriodSeconds: 30

View file

@ -0,0 +1,82 @@
# Copyright 2021 Google LLC
#
# Licensed under the the Apache License v2.0 with LLVM Exceptions (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://llvm.org/LICENSE.txt
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: apps/v1
kind: Deployment
metadata:
name: linux-test-56
namespace: buildkite
spec:
replicas: 1
strategy:
rollingUpdate:
maxUnavailable: 1
maxSurge: 0
type: RollingUpdate
selector:
matchLabels:
app: linux-test-56
template:
metadata:
labels:
app: linux-test-56
spec:
containers:
- name: runner
image: gcr.io/llvm-premerge-checks/buildkite-linux:latest
resources:
limits:
cpu: 55
memory: 200Gi
requests:
cpu: 55
memory: 200Gi
volumeMounts:
- name: github-ssh
mountPath: /mnt/ssh
- name: workdir
mountPath: /var/lib/buildkite-agent
env:
- name: BUILDKITE_AGENT_TOKEN
valueFrom:
secretKeyRef:
name: buildkite-agent-token
key: token
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: BUILDKITE_AGENT_TAGS
value: "queue=linux-test-56,name=$(POD_NAME),cluster=google"
- name: BUILDKITE_BUILD_PATH
value: "/var/lib/buildkite-agent/builds"
- name: CONDUIT_TOKEN
valueFrom:
secretKeyRef:
name: conduit-api-token
key: token
- name: BUILDKITE_API_TOKEN
valueFrom:
secretKeyRef:
name: buildkite-api-token-readonly
key: token
volumes:
- name: github-ssh
secret:
secretName: github-ssh
- name: workdir
emptyDir: {}
nodeSelector:
cloud.google.com/gke-nodepool: linux-56
terminationGracePeriodSeconds: 30

View file

@ -15,7 +15,7 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: linux-agents name: linux
namespace: buildkite namespace: buildkite
spec: spec:
replicas: 6 replicas: 6
@ -26,15 +26,15 @@ spec:
type: RollingUpdate type: RollingUpdate
selector: selector:
matchLabels: matchLabels:
app: agent-premerge-debian app: linux
template: template:
metadata: metadata:
labels: labels:
app: agent-premerge-debian app: linux
spec: spec:
containers: containers:
- name: buildkite-premerge-debian - name: runner
image: gcr.io/llvm-premerge-checks/buildkite-premerge-debian:stable image: gcr.io/llvm-premerge-checks/buildkite-linux:latest
resources: resources:
limits: limits:
cpu: 30 cpu: 30

View file

@ -15,18 +15,18 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: test-windows-buildkite name: windows-test-112
spec: spec:
replicas: 1 replicas: 1
strategy: strategy:
type: Recreate type: Recreate
selector: selector:
matchLabels: matchLabels:
app: test-windows-buildkite app: windows-test-112
template: template:
metadata: metadata:
labels: labels:
app: test-windows-buildkite app: windows-test-112
spec: spec:
containers: containers:
- name: buildkite-windows - name: buildkite-windows
@ -52,7 +52,7 @@ spec:
fieldRef: fieldRef:
fieldPath: metadata.name fieldPath: metadata.name
- name: BUILDKITE_AGENT_TAGS - name: BUILDKITE_AGENT_TAGS
value: "queue=windows-test,cluster=google" value: "queue=windows-test-112,cluster=google"
- name: BUILDKITE_API_TOKEN - name: BUILDKITE_API_TOKEN
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
@ -72,4 +72,4 @@ spec:
operator: "Equal" operator: "Equal"
value: "windows" value: "windows"
effect: "NoSchedule" effect: "NoSchedule"
terminationGracePeriodSeconds: 60 terminationGracePeriodSeconds: 30

View file

@ -0,0 +1,75 @@
# Copyright 2022 Google LLC
#
# Licensed under the the Apache License v2.0 with LLVM Exceptions (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://llvm.org/LICENSE.txt
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: apps/v1
kind: Deployment
metadata:
name: windows-test-32
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: windows-test-32
template:
metadata:
labels:
app: windows-test-32
spec:
containers:
- name: runner
image: gcr.io/llvm-premerge-checks/buildkite-windows:latest
resources:
limits:
cpu: 31
memory: 110Gi
requests:
cpu: 31
memory: 110Gi
volumeMounts:
- name: workdir
mountPath: "C:\\ws"
env:
- name: buildkiteAgentToken
valueFrom:
secretKeyRef:
name: buildkite-agent-token
key: token
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: BUILDKITE_AGENT_TAGS
value: "queue=windows-test-32,cluster=google"
- name: BUILDKITE_API_TOKEN
valueFrom:
secretKeyRef:
name: buildkite-api-token-readonly
key: token
- name: BUILDKITE_BUILD_PATH
value: "c:/ws" # matching workdir
# Empty dir volume can use all disk space from VM. By default container
# disk will only be 20Gb and run out of space.
volumes:
- name: workdir
emptyDir: {}
nodeSelector:
cloud.google.com/gke-nodepool: windows-32
tolerations:
- key: "node.kubernetes.io/os"
operator: "Equal"
value: "windows"
effect: "NoSchedule"
terminationGracePeriodSeconds: 30

View file

@ -0,0 +1,75 @@
# Copyright 2022 Google LLC
#
# Licensed under the the Apache License v2.0 with LLVM Exceptions (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://llvm.org/LICENSE.txt
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: apps/v1
kind: Deployment
metadata:
name: windows-test-56
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: windows-test-56
template:
metadata:
labels:
app: windows-test-56
spec:
containers:
- name: buildkite-windows
image: gcr.io/llvm-premerge-checks/buildkite-windows:latest
resources:
limits:
cpu: 55
memory: 200Gi
requests:
cpu: 55
memory: 200Gi
volumeMounts:
- name: workdir
mountPath: "C:\\ws"
env:
- name: buildkiteAgentToken
valueFrom:
secretKeyRef:
name: buildkite-agent-token
key: token
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: BUILDKITE_AGENT_TAGS
value: "queue=windows-test-56,cluster=google"
- name: BUILDKITE_API_TOKEN
valueFrom:
secretKeyRef:
name: buildkite-api-token-readonly
key: token
- name: BUILDKITE_BUILD_PATH
value: "c:/ws" # matching workdir
# Empty dir volume can use all disk space from VM. By default container
# disk will only be 20Gb and run out of space.
volumes:
- name: workdir
emptyDir: {}
nodeSelector:
cloud.google.com/gke-nodepool: windows-56
tolerations:
- key: "node.kubernetes.io/os"
operator: "Equal"
value: "windows"
effect: "NoSchedule"
terminationGracePeriodSeconds: 30

View file

@ -0,0 +1,75 @@
# Copyright 2022 Google LLC
#
# Licensed under the the Apache License v2.0 with LLVM Exceptions (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://llvm.org/LICENSE.txt
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: apps/v1
kind: Deployment
metadata:
name: windows-buildkite
spec:
replicas: 2
strategy:
type: Recreate
selector:
matchLabels:
app: windows-buildkite
template:
metadata:
labels:
app: windows-buildkite
spec:
containers:
- name: buildkite-windows
image: gcr.io/llvm-premerge-checks/buildkite-windows:latest
resources:
limits:
cpu: 31
memory: 110Gi
requests:
cpu: 31
memory: 110Gi
volumeMounts:
- name: workdir
mountPath: "C:\\ws"
env:
- name: buildkiteAgentToken
valueFrom:
secretKeyRef:
name: buildkite-agent-token
key: token
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: BUILDKITE_AGENT_TAGS
value: "queue=windows-test,cluster=google"
- name: BUILDKITE_API_TOKEN
valueFrom:
secretKeyRef:
name: buildkite-api-token-readonly
key: token
- name: BUILDKITE_BUILD_PATH
value: "c:/ws" # matching workdir
# Empty dir volume can use all disk space from VM. By default container
# disk will only be 20Gb and run out of space.
volumes:
- name: workdir
emptyDir: {}
nodeSelector:
cloud.google.com/gke-nodepool: windows-32
tolerations:
- key: "node.kubernetes.io/os"
operator: "Equal"
value: "windows"
effect: "NoSchedule"
terminationGracePeriodSeconds: 30