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

Only run test-types once, perhaps as part of its own GitHub Action #1172

Closed
johno opened this issue Jul 22, 2020 · 4 comments
Closed

Only run test-types once, perhaps as part of its own GitHub Action #1172

johno opened this issue Jul 22, 2020 · 4 comments
Labels
🕸️ area/tests This affects tests 🏗 area/tools This affects tooling 💎 v2 Issues related to v2
Milestone

Comments

@johno
Copy link
Member

johno commented Jul 22, 2020

yarn test-types appears to be a bit flaky when run in CI (likely as a result of our large test matrix) and causes builds to fail. Perhaps it makes sense to run it in its own action and maybe mark as optional?

cc/ @ChristianMurphy @JounQin

@johno johno added 🐛 type/bug This is a problem 💎 v2 Issues related to v2 🔍 status/open labels Jul 22, 2020
@johno johno changed the title Make test-types and optional test Make test-types an optional test Jul 22, 2020
@johno johno added 🏗 area/tools This affects tooling 🕸️ area/tests This affects tests and removed 🐛 type/bug This is a problem 🔍 status/open labels Jul 22, 2020
@ChristianMurphy
Copy link
Member

I'd prefer to keep it enabled if possible, type tests are very helpful for verifying the correctness typings.
Having it in a separate job would be okay if desired.
I'm more interesting in finding/fixing what is causing the flakiness.

@johno
Copy link
Member Author

johno commented Jul 22, 2020

Cool, that works for me! Maybe to start we can make it a single action running on ubuntu + node v14 if we can't get to the bottom of the flakiness?

AFAICT it seems to request dependencies and install stuff on the fly which might not be resilient enough to GitHub Action network flapping 🤔

@johno johno added this to the v2 milestone Jul 22, 2020
@johno johno changed the title Make test-types an optional test Only run test-types once, perhaps as part of its own GitHub Action Jul 22, 2020
@ChristianMurphy
Copy link
Member

#1178 has one possible way of addressing this, based of the dtslint readme:

Package lock files such as yarn.lock and package-lock.json may cause this issue because of our github dependency on "definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production", which contains the list of typescript versions to install. To fix this, try deleting your lock file and re-installing.

https://github.com/microsoft/dtslint#faq

if the issue persists it may be related to microsoft/dtslint#267

@johno
Copy link
Member Author

johno commented Jul 23, 2020

Gonna push the test out to its own (required) action for now to wait to check stability and then try to figure out what's going wrong with the windows tests.

Thanks for the quick response and PR @ChristianMurphy 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🕸️ area/tests This affects tests 🏗 area/tools This affects tooling 💎 v2 Issues related to v2
Development

No branches or pull requests

2 participants