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

chore: updates actions to improves CI times and resource management. #90

Closed
wants to merge 1 commit into from

Conversation

jcchavezs
Copy link

@jcchavezs jcchavezs commented Aug 10, 2023

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.

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
Copy link
Author

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
Copy link
Author

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.

@jcchavezs
Copy link
Author

I wonder how to run the kratosv2 test in local.

@mrproliu
Copy link
Contributor

mrproliu commented Aug 16, 2023

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
Copy link
Contributor

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?

@mrproliu mrproliu self-requested a review August 16, 2023 07:48
@mrproliu mrproliu added this to the 0.3.0 milestone Aug 16, 2023
@wu-sheng wu-sheng removed this from the 0.3.0 milestone Aug 23, 2023
@wu-sheng
Copy link
Member

Closing. No update for months. When you are ready, open a new PR.

@wu-sheng wu-sheng closed this Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants