-
Notifications
You must be signed in to change notification settings - Fork 84
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
chore: updates actions to improves CI times and resource management. #90
Conversation
Upgrading to setup-go@v4 enables caching for deps and also allowing to build vendor folder and pass it into docker image saves dependency pull inside the docker image but also uses the dependency caching.
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.18 | ||
- name: Pull deps for tools/go-agent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small trick here, we pull deps for tools/go-agent which internally uses the dep cache and then package it into vendor module which allows to be reused in the docker build.
@@ -34,7 +34,7 @@ jobs: | |||
timeout-minutes: 60 | |||
steps: | |||
- name: Set up Go 1.18 | |||
uses: actions/setup-go@v2 | |||
uses: actions/setup-go@v4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Takes advantage of deps caching.
I wonder how to run the kratosv2 test in local. |
Sorry for the late reply. It should same as the CI, you need to build the plugin test tool and run the script. |
@@ -3,24 +3,98 @@ module github.com/apache/skywalking-go/tools/go-agent | |||
go 1.18 | |||
|
|||
require ( | |||
github.com/apache/skywalking-go/plugins/core v0.0.0-20230809094220-b3b15735a623 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are already using go workspace, why do we need to import package here?
Closing. No update for months. When you are ready, open a new PR. |
Upgrading to setup-go@v4 enables caching for deps and also allowing to build vendor folder and pass it into docker image saves dependency pull inside the docker image but also uses the dependency caching.
A next step would be to use build cache to cache test execution for go tests.