@@ -29,8 +29,11 @@ tasks:
2929 - pull_request.synchronize
3030 - push
3131 scopes :
32+ - assume:project:taskcluster:generic-worker-tester
3233 - generic-worker:cache:generic-worker-checkout
3334 payload :
35+ features :
36+ taskclusterProxy : true
3437 maxRunTime : 3600
3538 command :
3639 - set CGO_ENABLED=0
6871 - go install -tags nativeEngine -v -ldflags "-X main.revision=%revision%" ./...
6972 - set CGO_ENABLED=1
7073 - set GORACE=history_size=7
71- - C:\generic-worker\generic-worker-test-creds.cmd
7274 - ' go test -tags nativeEngine -timeout 45m -ldflags "-X github.com/taskcluster/generic-worker.revision=%revision%" -v -race ./...'
7375 - set GW_TESTS_RUN_AS_TASK_USER=true
7476 - ' go test -tags nativeEngine -timeout 45m -ldflags "-X github.com/taskcluster/generic-worker.revision=%revision%" -v -race'
@@ -112,8 +114,11 @@ tasks:
112114 - pull_request.synchronize
113115 - push
114116 scopes :
117+ - assume:project:taskcluster:generic-worker-tester
115118 - generic-worker:cache:generic-worker-checkout
116119 payload :
120+ features :
121+ taskclusterProxy : true
117122 maxRunTime : 3600
118123 command :
119124 - set CGO_ENABLED=0
@@ -139,8 +144,9 @@ tasks:
139144 - go generate
140145 - set revision={{ event.head.sha }}
141146 - go install -tags nativeEngine -v -ldflags "-X main.revision=%revision%" ./...
142- - set GORACE=history_size=7
143- - C:\generic-worker\generic-worker-test-creds.cmd
147+ # go test: -race and -msan are only supported on:
148+ # linux/amd64, freebsd/amd64, darwin/amd64 and windows/amd64
149+ # i.e. - *not* on windows/386
144150 - ' go test -tags nativeEngine -timeout 45m -ldflags "-X github.com/taskcluster/generic-worker.revision=%revision%" -v ./...'
145151 - set GW_TESTS_RUN_AS_TASK_USER=true
146152 - ' go test -tags nativeEngine -timeout 45m -ldflags "-X github.com/taskcluster/generic-worker.revision=%revision%" -v'
@@ -184,8 +190,11 @@ tasks:
184190 - pull_request.synchronize
185191 - push
186192 scopes :
193+ - assume:project:taskcluster:generic-worker-tester
187194 - generic-worker:cache:generic-worker-checkout
188195 payload :
196+ features :
197+ taskclusterProxy : true
189198 maxRunTime : 3600
190199 command :
191200 - set CGO_ENABLED=0
@@ -223,7 +232,6 @@ tasks:
223232 - go install -tags nativeEngine -v -ldflags "-X main.revision=%revision%" ./...
224233 - set CGO_ENABLED=1
225234 - set GORACE=history_size=7
226- - C:\generic-worker\generic-worker-test-creds.cmd
227235 - ' go test -tags nativeEngine -timeout 45m -ldflags "-X github.com/taskcluster/generic-worker.revision=%revision%" -v -race ./...'
228236 - set GW_TESTS_RUN_AS_TASK_USER=true
229237 - ' go test -tags nativeEngine -timeout 45m -ldflags "-X github.com/taskcluster/generic-worker.revision=%revision%" -v -race'
@@ -267,8 +275,11 @@ tasks:
267275 - pull_request.synchronize
268276 - push
269277 scopes :
278+ - assume:project:taskcluster:generic-worker-tester
270279 - generic-worker:cache:generic-worker-checkout
271280 payload :
281+ features :
282+ taskclusterProxy : true
272283 maxRunTime : 3600
273284 command :
274285 - - /bin/bash
@@ -280,7 +291,6 @@ tasks:
280291 export PATH="${GOPATH}/bin:${GOROOT}/bin:${PATH}"
281292 go version
282293 go env
283- source "${GW_CREDS_BOOTSTRAP}"
284294 mkdir -p "${GOPATH}/src/github.com/taskcluster"
285295 cd "${GOPATH}/src/github.com/taskcluster"
286296 if [ ! -d generic-worker/.git ]; then rm -rf generic-worker; git clone '{{ event.head.repo.url }}' 'generic-worker'; fi
@@ -298,8 +308,8 @@ tasks:
298308 go install -tags nativeEngine -v -ldflags "-X main.revision=$(git rev-parse HEAD)" ./...
299309 # output of wc command can contain spaces on darwin, so no quotes around expression
300310 test $(git status --porcelain | wc -l) == 0
301- GORACE=history_size=7 CGO_ENABLED=1 go test -tags nativeEngine -timeout 45m -ldflags "-X github.com/taskcluster/generic-worker.revision=$(git rev-parse HEAD)" -race -v ./...
302- ineffassign .
311+ GORACE=history_size=7 CGO_ENABLED=1 go test -tags nativeEngine -timeout 45m -ldflags "-X github.com/taskcluster/generic-worker.revision=$(git rev-parse HEAD)" -v -race ./...
312+ "${GOPATH}/bin/ ineffassign" .
303313 artifacts :
304314 - name : public/build/generic-worker-darwin-amd64
305315 path : gopath1.10.8/bin/generic-worker
@@ -340,8 +350,11 @@ tasks:
340350 # - pull_request.synchronize
341351 # - push
342352 # scopes:
353+ # - assume:project:taskcluster:generic-worker-tester
343354 # - generic-worker:cache:generic-worker-checkout
344355 # payload:
356+ # features:
357+ # taskclusterProxy: true
345358 # maxRunTime: 3600
346359 # command:
347360 # - - /bin/bash
@@ -351,10 +364,8 @@ tasks:
351364 # export GOROOT="$(pwd)/go1.10.8/go"
352365 # export GOPATH="$(pwd)/gopath1.10.8"
353366 # export PATH="${GOPATH}/bin:${GOROOT}/bin:${PATH}"
354- # export CGO_ENABLED=0
355367 # go version
356368 # go env
357- # source "${GW_CREDS_BOOTSTRAP}"
358369 # mkdir -p "${GOPATH}/src/github.com/taskcluster"
359370 # cd "${GOPATH}/src/github.com/taskcluster"
360371 # if [ ! -d generic-worker/.git ]; then rm -rf generic-worker; git clone '{{ event.head.repo.url }}' 'generic-worker'; fi
@@ -371,8 +382,11 @@ tasks:
371382 # go generate
372383 # go install -tags nativeEngine -v -ldflags "-X main.revision=$(git rev-parse HEAD)" ./...
373384 # test "$(git status --porcelain | wc -l)" == 0
374- # GORACE=history_size=7 go test -tags nativeEngine -timeout 45m -ldflags "-X github.com/taskcluster/generic-worker.revision=$(git rev-parse HEAD)" -v ./...
375- # ineffassign .
385+ # # go test: -race and -msan are only supported on:
386+ # # linux/amd64, freebsd/amd64, darwin/amd64 and windows/amd64
387+ # # i.e. - *not* on linux/arm
388+ # go test -tags nativeEngine -timeout 45m -ldflags "-X github.com/taskcluster/generic-worker.revision=$(git rev-parse HEAD)" -v ./...
389+ # "${GOPATH}/bin/ineffassign" .
376390 # artifacts:
377391 # - name: public/build/generic-worker-linux-armv6l
378392 # path: gopath1.10.8/bin/generic-worker
@@ -407,12 +421,11 @@ tasks:
407421 - pull_request.synchronize
408422 - push
409423 scopes :
424+ - assume:project:taskcluster:generic-worker-tester
410425 - generic-worker:cache:generic-worker-checkout
411- - secrets:get:repo:github.com/taskcluster/generic-worker
412426 payload :
413427 features :
414- taskclusterProxy :
415- true
428+ taskclusterProxy : true
416429 maxRunTime : 3600
417430 command :
418431 - - /bin/bash
@@ -424,8 +437,6 @@ tasks:
424437 export PATH="${GOPATH}/bin:${GOROOT}/bin:${PATH}"
425438 go version
426439 go env
427- curl -s "${TASKCLUSTER_PROXY_URL}/secrets/v1/secret/repo:github.com/taskcluster/generic-worker" | sed -n 's/.*"b64_encoded_credentials_script": "\(.*\)".*/\1/p' | base64 -d > ~/env_private.sh
428- source ~/env_private.sh
429440 mkdir -p "${GOPATH}/src/github.com/taskcluster"
430441 cd "${GOPATH}/src/github.com/taskcluster"
431442 if [ ! -d generic-worker/.git ]; then rm -rf generic-worker; git clone '{{ event.head.repo.url }}' 'generic-worker'; fi
@@ -478,12 +489,11 @@ tasks:
478489 - pull_request.synchronize
479490 - push
480491 scopes :
492+ - assume:project:taskcluster:generic-worker-tester
481493 - generic-worker:cache:generic-worker-checkout
482- - secrets:get:repo:github.com/taskcluster/generic-worker
483494 payload :
484495 features :
485- taskclusterProxy :
486- true
496+ taskclusterProxy : true
487497 maxRunTime : 3600
488498 command :
489499 - - /bin/bash
@@ -495,8 +505,6 @@ tasks:
495505 export PATH="${GOPATH}/bin:${GOROOT}/bin:${PATH}"
496506 go version
497507 go env
498- curl -s "${TASKCLUSTER_PROXY_URL}/secrets/v1/secret/repo:github.com/taskcluster/generic-worker" | sed -n 's/.*"b64_encoded_credentials_script": "\(.*\)".*/\1/p' | base64 -d > ~/env_private.sh
499- source ~/env_private.sh
500508 mkdir -p "${GOPATH}/src/github.com/taskcluster"
501509 cd "${GOPATH}/src/github.com/taskcluster"
502510 if [ ! -d generic-worker/.git ]; then rm -rf generic-worker; git clone '{{ event.head.repo.url }}' 'generic-worker'; fi
@@ -548,8 +556,7 @@ tasks:
548556 maxRunTime : 3600
549557 image : taskcluster/upload-project-docs:latest
550558 features :
551- taskclusterProxy :
552- true
559+ taskclusterProxy : true
553560 command :
554561 - /bin/bash
555562 - ' --login'
@@ -586,7 +593,7 @@ tasks:
586593 - pull_request.synchronize
587594 - push
588595 scopes :
589- - secrets:get:repo:github.com/ taskcluster/ generic-worker
596+ - assume:project: taskcluster: generic-worker-tester
590597 - docker-worker:cache:generic-worker-checkout
591598 payload :
592599 features :
0 commit comments