@@ -262,6 +262,7 @@ end-to-end-test: &end-to-end-test
262
262
no_output_timeout : 15m
263
263
command : |
264
264
export PATH=${PATH}:~/repos/golang/go/bin
265
+ export E2E_TESTS_FORCE_USE_MYCELO=true
265
266
cd celo-monorepo/packages/celotool
266
267
./${TEST_NAME} local ~/repos/geth
267
268
# Note, all e2e tests call 'make all' in ~/repos/geth, this causes most code
@@ -278,6 +279,34 @@ jobs:
278
279
- run : go mod download
279
280
- *save-go-mod-cache
280
281
282
+ akeyless-get-token :
283
+ docker :
284
+ - image : akeyless/ci_base
285
+ environment :
286
+ PR_WRITE_TOKEN_PATH : /dynamic-secrets/keys/github/celo-blockchain/pull_requests=write
287
+ steps :
288
+ - checkout
289
+ - run :
290
+ name : " update akeyless cli tool to latest version"
291
+ command : akeyless update
292
+
293
+ - run :
294
+ name : " authenticate to akeyless via OIDC"
295
+ command : akeyless auth --access-id $accessid --access-type jwt --jwt $CIRCLE_OIDC_TOKEN --json | jq '.token' -r > ~/.vault_token
296
+
297
+ - run :
298
+ name : " Get PR Comment token (and remove unnecessary information and punctuation)"
299
+ command : TOKEN=$(cat ~/.vault_token) && echo export PR_COMMENT_TOKEN2=$(akeyless get-dynamic-secret-value --name $PR_WRITE_TOKEN_PATH --token $TOKEN |grep token | awk '{print $2}' | tr -d '"",' ) >> "$BASH_ENV"
300
+
301
+ - run :
302
+ name : " Copy $BASH_ENV to bash.env file so we can persist that to workspaces"
303
+ command : cp $BASH_ENV bash.env
304
+
305
+ - persist_to_workspace :
306
+ root : .
307
+ paths :
308
+ - bash.env
309
+
281
310
prepare-system-contracts :
282
311
parameters :
283
312
cache-key :
@@ -376,6 +405,11 @@ jobs:
376
405
go run tools/parsecov/main.go -packagePrefix github.com/celo-org/celo-blockchain/ cov.out > summary
377
406
cat summary
378
407
408
+ - attach_workspace :
409
+ at : .
410
+ - run : |
411
+ cat bash.env > $BASH_ENV
412
+
379
413
- run :
380
414
name : Post summary comment on PR
381
415
command : |
@@ -435,7 +469,8 @@ jobs:
435
469
# replaced by '\n'. Using backtics causes there to be a round of
436
470
# backslash processing on the command before execution, so we
437
471
# need to double the backslashes in the awk command.
438
- curl -u piersy:${PR_COMMENT_TOKEN} -X ${CURL_VERB} $URL -d "{\"body\":\"`awk -v ORS='\\\\n' '1' comment`\"}" ;
472
+ curl -u celo-org:${PR_COMMENT_TOKEN2} -X ${CURL_VERB} $URL -d "{\"body\":\"`awk -v ORS='\\\\n' '1' comment`\"}" ;
473
+
439
474
440
475
e2e-benchmarks :
441
476
executor : golang
@@ -499,40 +534,31 @@ jobs:
499
534
# paths:
500
535
# - geth/build/bin/geth.aar
501
536
502
- ios :
503
- macos :
504
- xcode : " 12.5.1"
505
- working_directory : ~/repos/geth
506
- steps :
507
- # Note the macos executor does not seem to be able to restore caches.
508
- - *shallow-checkout
509
- - run :
510
- name : Setup Go language
511
- command : |
512
-
513
-
514
- # Check that homebrew installed the expected go version
515
- if [[ "$(go version)" != "go version go1.16"* ]]; then
516
- echo "go1.16 is required"
517
- exit 1
518
- fi
519
- - run :
520
- name : Compile ios client
521
- command : make ios
522
- - persist_to_workspace :
523
- root : ~/repos
524
- paths :
525
- - geth/build/bin/Geth.framework.tgz
526
- - geth/libbls_snark_sys.a
527
-
528
- publish-mobile-client :
529
- docker :
530
- - image : circleci/node:10
531
- working_directory : ~/repos/geth
532
- steps :
533
- - attach_workspace :
534
- at : ~/repos
535
- - run : ./scripts/publish-mobile-client.sh ${CIRCLE_SHA1} ${NPM_TOKEN_FOR_CELO_CLIENT}
537
+ # ios:
538
+ # macos:
539
+ # xcode: "12.5.1"
540
+ # working_directory: ~/repos/geth
541
+ # steps:
542
+ # # Note the macos executor does not seem to be able to restore caches.
543
+ # - *shallow-checkout
544
+ # - run:
545
+ # name: Setup Go language
546
+ # command: |
547
+
548
+
549
+ # # Check that homebrew installed the expected go version
550
+ # if [[ "$(go version)" != "go version go1.16"* ]]; then
551
+ # echo "go1.16 is required"
552
+ # exit 1
553
+ # fi
554
+ # - run:
555
+ # name: Compile ios client
556
+ # command: make ios
557
+ # - persist_to_workspace:
558
+ # root: ~/repos
559
+ # paths:
560
+ # - geth/build/bin/Geth.framework.tgz
561
+ # - geth/libbls_snark_sys.a
536
562
537
563
lightest-sync-test :
538
564
executor : golang
@@ -623,34 +649,20 @@ workflows:
623
649
requires :
624
650
- go-modules
625
651
- prepare-system-contracts
652
+ - akeyless-get-token :
653
+ context :
654
+ - akeyless
626
655
- istanbul-e2e-coverage :
627
656
requires :
628
657
- go-modules
629
658
- prepare-system-contracts
659
+ - akeyless-get-token
630
660
- e2e-benchmarks :
631
661
requires :
632
662
- go-modules
633
663
- prepare-system-contracts
634
- # - android
635
- - ios
636
- - publish-mobile-client :
637
- requires :
638
- # - android
639
- - ios
640
- # Makes sure tests are all green before publishing
641
- # Though these are not using the mobile built binaries
642
- # they should be a good indicator
643
- - unit-tests
644
- - lightest-sync-test
645
- - end-to-end-blockchain-parameters-test
646
- - end-to-end-governance-test
647
- - end-to-end-slashing-test
648
- - end-to-end-sync-test
649
- - end-to-end-transfer-test
650
- - end-to-end-validator-order-test
651
- filters :
652
- branches :
653
- only : master
664
+ # - android
665
+ # - ios
654
666
- lightest-sync-test :
655
667
requires :
656
668
- go-modules
0 commit comments