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

Improve runtime performance of the Go runtime test suite #4181

Merged
merged 3 commits into from
Mar 18, 2023

Conversation

jimidle
Copy link
Collaborator

@jimidle jimidle commented Mar 15, 2023

feat: Speed up the go runtime tests

Prior to this change, after writing the go.mod file for each test, we had to run a go mod tidy command. This is an extra process sparked for each test, which can be quite the overhead.

This change runs a go mod tidy only if we have not yet cached the results (go.mod and go.sum) for any prior test and therefore saves sparking a process for each test.

@parrt When you get a chance, could you change the Github test runtime environment to use go 1.20.1 ? I would like to keep our development and testing versions of the go compiler up to date, even if I decide not to require go 1.20 at this time. Cheers.

 - Removes the need to perform a `go mod tidy` for every test. This change
   causes `go mod tidy` to be run once, after which it caches the go.mod and
   go.sum files for use by the remaining tests.

Signed-off-by: Jim.Idle <jimi@idle.ws>
@jimidle
Copy link
Collaborator Author

jimidle commented Mar 15, 2023 via email

Signed-off-by: Jim.Idle <jimi@idle.ws>
Signed-off-by: Jim.Idle <jimi@idle.ws>
@jimidle
Copy link
Collaborator Author

jimidle commented Mar 18, 2023 via email

@jimidle
Copy link
Collaborator Author

jimidle commented Mar 18, 2023 via email

@parrt
Copy link
Member

parrt commented Mar 18, 2023

I'll wait for your signal Jim.

@jimidle
Copy link
Collaborator Author

jimidle commented Mar 18, 2023 via email

@parrt parrt added this to the 4.12.1 milestone Mar 18, 2023
@parrt parrt merged commit 4780bf8 into antlr:dev Mar 18, 2023
@parrt
Copy link
Member

parrt commented Mar 18, 2023

I hear and obey!

@jimidle
Copy link
Collaborator Author

jimidle commented Mar 19, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants