Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jenkins reborn #285

Merged
merged 70 commits into from
Oct 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
8536af0
initial build and output testing
ABastionOfSanity Oct 4, 2022
b0b7a0d
move docker agent declaration and reuse
ABastionOfSanity Oct 4, 2022
3f2e8e1
steps are not shell
ABastionOfSanity Oct 4, 2022
08eeefb
docker method calls inside a script block
ABastionOfSanity Oct 4, 2022
fa5ce13
build directly on node, not within container
ABastionOfSanity Oct 4, 2022
c7a0d29
first attempt make test from within golang alpine container
ABastionOfSanity Oct 4, 2022
f4e7ee5
SPECIFIC installed go tools
ABastionOfSanity Oct 4, 2022
6966e3b
run in ubuntu latest for make
ABastionOfSanity Oct 5, 2022
c5ba0b8
no make on ubuntu:latest
ABastionOfSanity Oct 5, 2022
c3f3f59
trying sudo apt-get
ABastionOfSanity Oct 5, 2022
afe5336
trying apt after sudo not found
ABastionOfSanity Oct 5, 2022
3343b78
first attempt with foundation image
ABastionOfSanity Oct 5, 2022
6767078
GOPATH not set properly?
ABastionOfSanity Oct 6, 2022
f471dc8
go env inspection
ABastionOfSanity Oct 6, 2022
da00da4
go env inspection 2
ABastionOfSanity Oct 6, 2022
de5968f
trying workspace as modcache
ABastionOfSanity Oct 6, 2022
ad6def9
trying workspace as modcache without ls
ABastionOfSanity Oct 6, 2022
87fa971
gocache and goenv dirs changed to workspace
ABastionOfSanity Oct 6, 2022
ab4b805
try with cgo enabled
ABastionOfSanity Oct 6, 2022
423d6ce
go get everything explicit
ABastionOfSanity Oct 6, 2022
3dc4e62
go mod tidy
ABastionOfSanity Oct 6, 2022
afcc588
go back and try the build step tagged image as base for testing
ABastionOfSanity Oct 6, 2022
de59fb2
foundation with with musl-dev
ABastionOfSanity Oct 6, 2022
145e0e5
foundation with with musl-dev to make test
ABastionOfSanity Oct 6, 2022
5839fd1
turn off cgo
ABastionOfSanity Oct 6, 2022
1c27d7d
turn on cgo and dev null GOMOD to match successful github runs
ABastionOfSanity Oct 6, 2022
9448d12
WORKSPACE as GOPATH
ABastionOfSanity Oct 7, 2022
f7b0b33
build job as GOPATH
ABastionOfSanity Oct 7, 2022
78debb7
explicit mod readonly and verbose test
ABastionOfSanity Oct 7, 2022
525075a
explicit mod=mod mode for GOFLAGS
ABastionOfSanity Oct 7, 2022
a70ece0
using tmp/go for cache and env
ABastionOfSanity Oct 7, 2022
962cbfd
restrict to testing go-ethereum
ABastionOfSanity Oct 7, 2022
4e865aa
no whoami in containers
ABastionOfSanity Oct 7, 2022
6a5abfa
test geth in depth
ABastionOfSanity Oct 7, 2022
91cf993
test geth in depth with ./...
ABastionOfSanity Oct 7, 2022
41798ed
retry matching go env vars to successful github run
ABastionOfSanity Oct 7, 2022
56c77fc
remove ./... from go test
ABastionOfSanity Oct 7, 2022
60cd460
disable environmental GO111MODULE
ABastionOfSanity Oct 10, 2022
ab8ce97
explicit set of mod=readonly GOFLAG
ABastionOfSanity Oct 10, 2022
7c0b7aa
explicit go get of test dependencies
ABastionOfSanity Oct 10, 2022
1fc071b
bypass Makefile and run go test command explicitly
ABastionOfSanity Oct 10, 2022
cf01cbf
bypass Makefile and run go test command modified
ABastionOfSanity Oct 10, 2022
556f89f
bypass Makefile and run go test command modified with mod=mod
ABastionOfSanity Oct 10, 2022
ceddceb
try mod=vendor
ABastionOfSanity Oct 10, 2022
3f92a10
try GOMOD dev null
ABastionOfSanity Oct 10, 2022
5be46ab
disable build while iterating and try explicit test path
ABastionOfSanity Oct 10, 2022
cb8b1a9
trying suggested go work use .
ABastionOfSanity Oct 10, 2022
3c5ee7e
go work init
ABastionOfSanity Oct 10, 2022
d4eb5b0
go back top make test
ABastionOfSanity Oct 14, 2022
419f68e
go back top make test actually
ABastionOfSanity Oct 14, 2022
b25b9a3
attempt to go get everything
ABastionOfSanity Oct 14, 2022
1274f88
everything in workspace
ABastionOfSanity Oct 14, 2022
89cce6e
try default tooling on ubuntu latest
ABastionOfSanity Oct 14, 2022
e62dc8a
try default tooling diff level of pipeline on ubuntu latest
ABastionOfSanity Oct 14, 2022
b93f9f9
test on alpine based image
ABastionOfSanity Oct 14, 2022
0ba6fcb
no go get
ABastionOfSanity Oct 14, 2022
6aa6a5a
no make, try direct go test for now
ABastionOfSanity Oct 14, 2022
32f8270
make test now
ABastionOfSanity Oct 17, 2022
dc8cbb4
GOMODCACHE removed
ABastionOfSanity Oct 17, 2022
14e7f9e
GOPATH only env var
ABastionOfSanity Oct 17, 2022
26ecd87
GOCACHE GOENV and GOPATH to build
ABastionOfSanity Oct 17, 2022
83237db
GOMODCACHE GOMOD GOWORK
ABastionOfSanity Oct 17, 2022
4899b4b
try with specific path instead of ./...
ABastionOfSanity Oct 17, 2022
7be35ea
go test with explicit GOMOD GOWORK and ./...
ABastionOfSanity Oct 17, 2022
1214c34
go work use .
ABastionOfSanity Oct 17, 2022
c24d09f
debugging for context in github action
ABastionOfSanity Oct 17, 2022
5354bd3
debugging for context in jenkins
ABastionOfSanity Oct 17, 2022
cc6eb90
clean workspace
ABastionOfSanity Oct 17, 2022
c33ca48
cleaning caused errors
ABastionOfSanity Oct 17, 2022
dd0be59
clean up for working (but failing) unit test geth with ubuntu foundat…
ABastionOfSanity Oct 17, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
- name: curl
uses: enflo/curl-action@master
with:
curl: --user circcicd:${{ secrets.GITEA_TOKEN }} --upload-file geth-linux-amd64 https://git.vdb.to/api/packages/cerc-io/generic/go-ethereum/v1.10.23-statediff-alpha-unstable/geth-linux-amd64
curl: --user cerccicd:${{ secrets.GITEA_TOKEN }} --upload-file geth-linux-amd64 https://git.vdb.to/api/packages/cerc-io/generic/go-ethereum/${{ github.event.inputs.giteaPublishTag }}/geth-linux-amd64
50 changes: 50 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
pipeline {
agent any

stages {
stage('Build') {
steps {
script{
docker.withRegistry('https://git.vdb.to'){
echo 'Building geth image...'
//def geth_image = docker.build("cerc-io/go-ethereum:jenkinscicd")
echo 'built geth image'
}
}
}
}
stage('Test') {
agent {
docker {
image 'cerc-io/foundation:jenkinscicd'
//image 'cerc-io/foundation_alpine:jenkinscicd'
}
}

environment {
GO111MODULE = "on"
CGO_ENABLED = 1
//GOPATH = "${JENKINS_HOME}/jobs/${JOB_NAME}/builds/${BUILD_ID}"
//GOPATH = "/go"
GOPATH = "/tmp/go"
//GOMODCACHE = "/go/pkg/mod"
GOCACHE = "${WORKSPACE}/.cache/go-build"
GOENV = "${WORKSPACE}/.config/go/env"
GOMODCACHE = "/tmp/go/pkg/mod"
GOWORK=""
//GOFLAGS=""

}
steps {
echo 'Testing ...'
//sh '/usr/local/go/bin/go test -p 1 -v ./...'
sh 'make test'
}
}
stage('Packaging') {
steps {
echo 'Packaging ...'
}
}
}
}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ ios:
@echo "Import \"$(GOBIN)/Geth.framework\" to use the library."

test: all
$(GORUN) build/ci.go test
$(GORUN) build/ci.go test -v

lint: ## Run linters.
$(GORUN) build/ci.go lint
Expand Down