Skip to content

Small test improvements #337

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

Closed

Conversation

directionless
Copy link
Contributor

@directionless directionless commented May 9, 2019

Hi! This PR has a collection of things I think improve the tests. As I haven't talked to any of y'all about them, I recognize that you may disagree. I will not be offended of you don't like some of this, or want me to separate them, or whatnot.

  • Add an ENV the makefile will parse to add -short to the go test options
  • Add llvm bin directory to the PATH in the Makefile
  • Enable parallel tests. This required moving tmpfile creation into runTest, instead of being shared.
  • Change the targeting and dispatch.

Caveat — I’m on a osx laptop. I can run the short tests successfully, but I get clang errors no matter what I do. So this probably doesn’t make things worse, but I can’t test all the permutations

@deadprogram deadprogram changed the base branch from master to dev May 9, 2019 07:27
@deadprogram
Copy link
Member

Hi @directionless I changed this PR to `dev as mentioned here https://github.com/tinygo-org/tinygo/blob/master/CONTRIBUTING.md#how-to-use-our-github-repository

Here are now some merge conflicts that must be resolved, separate from any feedback on the PR itself, which I will leave to @aykevl probably...

Thank you!

directionless and others added 4 commits May 9, 2019 09:59
Add an ENV the makefile will parse to add `-short` to the `go test` options

Add llvm bin directory to the PATH

Enable parallel tests. This required moving tmpfile creation into `runTest`, instead of being shared.

Caveat — I’m on a osx laptop. I can run the short tests successfully, but I get clang errors no matter what I do. So this _probably_ doesn’t make things worse, but I can’t test all the permutations
@aykevl
Copy link
Member

aykevl commented May 28, 2019

@directionless I agree with the overall goal of this PR. In fact, I have done some preparation for parallel execution of tests a long time ago: 3289dd7

Unfortunately, when I run this change in CircleCI, there are various errors. I'm not sure what exactly causes them, but they are so random that I'm suspecting memory corruption. For example:
https://circleci.com/gh/tinygo-org/tinygo/1908
https://circleci.com/gh/tinygo-org/tinygo/1905
https://circleci.com/gh/tinygo-org/tinygo/1904

I don't really know what's going on here.

@deadprogram
Copy link
Member

Seems like this work continues in #641 I would to propose this PR gets closed. Thoughts?

@deadprogram
Copy link
Member

I am going to close this PR. Please reopen if needed, or look to #641 for further work. Thank you!

@deadprogram deadprogram closed this Nov 8, 2019
@directionless
Copy link
Contributor Author

Sorry I vanished on y'all. Closing is reasonable

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

Successfully merging this pull request may close these issues.

3 participants