Commit 7c8d28dd authored by Matthew Slipper's avatar Matthew Slipper Committed by GitHub

ci: Remove go-mod-download (#13277)

parent cde5fd7a
...@@ -947,30 +947,16 @@ jobs: ...@@ -947,30 +947,16 @@ jobs:
mentions: "@proofs-team" mentions: "@proofs-team"
cannon-stf-verify: cannon-stf-verify:
docker: machine: true
- image: <<pipeline.parameters.ci_builder_image>> resource_class: ethereum-optimism/latitude-1
steps: steps:
- checkout - checkout
- setup_remote_docker
- restore_cache:
name: Restore Go modules cache
key: gomod-{{ checksum "go.sum" }}
- restore_cache:
name: Restore Go build cache
keys:
- golang-build-cache-cannon-stf-verify-{{ checksum "go.sum" }}
- golang-build-cache-cannon-stf-verify-
- run: - run:
name: Build cannon name: Build cannon
command: make cannon command: make cannon
- run: - run:
name: Verify the Cannon STF name: Verify the Cannon STF
command: make -C ./cannon cannon-stf-verify command: make -C ./cannon cannon-stf-verify
- save_cache:
name: Save Go build cache
key: golang-build-cache-cannon-stf-verify-{{ checksum "go.sum" }}
paths:
- "/root/.cache/go-build"
- notify-failures-on-develop: - notify-failures-on-develop:
mentions: "@proofs-team" mentions: "@proofs-team"
...@@ -1018,38 +1004,6 @@ jobs: ...@@ -1018,38 +1004,6 @@ jobs:
no_output_timeout: 20m no_output_timeout: 20m
- notify-failures-on-develop - notify-failures-on-develop
go-mod-download:
docker:
- image: <<pipeline.parameters.ci_builder_image>>
parameters:
file:
default: go.sum
description: The file name of checksum for restore_cache and save_cache.
type: string
key:
default: gomod
description: The key of restore_cache and save_cache.
type: string
steps:
- checkout
- restore_cache:
key: << parameters.key >>-{{ checksum "<< parameters.file >>" }}
name: Restore Go modules cache
- run:
name: Sanity check go mod cache path
command: test "$(go env GOMODCACHE)" == "/go/pkg/mod" # yes, it's an odd path
- run:
command: go mod download
name: Download Go module dependencies
- run:
name: "Go mod tidy"
command: make mod-tidy && git diff --exit-code
- save_cache:
key: << parameters.key >>-{{ checksum "<< parameters.file >>" }}
name: Save Go modules cache
paths:
- "/go/pkg/mod"
bedrock-go-tests: # just a helper, that depends on all the actual test jobs bedrock-go-tests: # just a helper, that depends on all the actual test jobs
docker: docker:
# Use a smaller base image to avoid pulling the huge ci-builder # Use a smaller base image to avoid pulling the huge ci-builder
...@@ -1237,7 +1191,6 @@ workflows: ...@@ -1237,7 +1191,6 @@ workflows:
- not: - not:
equal: [scheduled_pipeline, << pipeline.trigger_source >>] equal: [scheduled_pipeline, << pipeline.trigger_source >>]
jobs: jobs:
- go-mod-download
- contracts-bedrock-build: - contracts-bedrock-build:
name: contracts-bedrock-build name: contracts-bedrock-build
# Build with just core + script contracts. # Build with just core + script contracts.
...@@ -1321,14 +1274,12 @@ workflows: ...@@ -1321,14 +1274,12 @@ workflows:
- op-program-compat - op-program-compat
- bedrock-go-tests: - bedrock-go-tests:
requires: requires:
- go-mod-download
- go-lint - go-lint
- cannon-build-test-vectors - cannon-build-test-vectors
- cannon-go-lint-and-test-32-bit - cannon-go-lint-and-test-32-bit
- cannon-go-lint-and-test-64-bit - cannon-go-lint-and-test-64-bit
- check-generated-mocks-op-node - check-generated-mocks-op-node
- check-generated-mocks-op-service - check-generated-mocks-op-service
- go-mod-download
- op-program-compat - op-program-compat
# Not needed for the devnet but we want to make sure they build successfully # Not needed for the devnet but we want to make sure they build successfully
- cannon-docker-build - cannon-docker-build
...@@ -1530,11 +1481,8 @@ workflows: ...@@ -1530,11 +1481,8 @@ workflows:
- not: - not:
equal: [scheduled_pipeline, << pipeline.trigger_source >>] equal: [scheduled_pipeline, << pipeline.trigger_source >>]
jobs: jobs:
- go-mod-download
- cannon-prestate - cannon-prestate
- cannon-stf-verify: - cannon-stf-verify:
requires:
- go-mod-download
context: context:
- slack - slack
- contracts-bedrock-build: - contracts-bedrock-build:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment