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(tests): remove util.promisify #3996

Merged
merged 6 commits into from
Jan 12, 2022
Merged

chore(tests): remove util.promisify #3996

merged 6 commits into from
Jan 12, 2022

Conversation

XhmikosR
Copy link
Contributor

@XhmikosR XhmikosR commented Jan 10, 2022

🎉 Thanks for submitting a pull request! 🎉

Summary

Fixes #<replace_with_issue_number>


For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code 🧑‍💻. This ensures we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or something that`s on fire 🔥 (e.g. incident related), you can skip this step.
  • Read the contribution guidelines 📖. This ensures your code follows our style guide and
    passes our tests.
  • Update or add tests (if any source code was changed or added) 🧪
  • Update or add documentation (if features were changed or added) 📝
  • Make sure the status checks below are successful ✅

A picture of a cute animal (not mandatory, but encouraged)

@erezrokah erezrokah added the type: bug code to address defects in shipped code label Jan 10, 2022
@XhmikosR
Copy link
Contributor Author

Unsure how to make tests run to verify the change is OK... it seems this fails in test:affected

@XhmikosR XhmikosR marked this pull request as ready for review January 12, 2022 08:36
lukasholzer
lukasholzer previously approved these changes Jan 12, 2022
Copy link
Contributor

@lukasholzer lukasholzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for finding those old legacy parts in our codebase and fixing them! 💪

🚀

@XhmikosR
Copy link
Contributor Author

NP, glad I could help :)

BTW can you confirm this is fine? CI cannot run due to an issue with the affected test files.

@lukasholzer
Copy link
Contributor

lukasholzer commented Jan 12, 2022

Have you tried running the test locally?

npx ava tests/command.deploy.test.js

✖ No tests found in tests/command.deploy.test.js

Seems like an ava issue not an affected running because it detects the right suite. This error is comming from the testrunner itself

@XhmikosR
Copy link
Contributor Author

Yeah, it has to do with the affected files script, I believe. So, running the whole suite should be enough, but I can't run it on my machine because ava cripples my dev VM :/

@lukasholzer
Copy link
Contributor

mhmm locally it works like a charm:

CleanShot 2022-01-12 at 13 04 16@2x

erezrokah
erezrokah previously approved these changes Jan 12, 2022
@erezrokah
Copy link
Contributor

Failures are related to

NETLIFY_TEST_DISABLE_LIVE:
.

The deploy tests hit a live API, so we use a Netlify API token in CI.
However, that token is not available to forked pull requests hence we don't run those for forked PRs, causing this failure.

See

if (process.env.NETLIFY_TEST_DISABLE_LIVE !== 'true') {
.

I think I'll add a simple always passing test to workaround this issue.

@erezrokah erezrokah dismissed stale reviews from lukasholzer and themself via 224563a January 12, 2022 16:00
@erezrokah erezrokah added type: chore work needed to keep the product and development running smoothly automerge Add to Kodiak auto merge queue and removed type: bug code to address defects in shipped code labels Jan 12, 2022
@erezrokah erezrokah merged commit 874aed3 into netlify:main Jan 12, 2022
@XhmikosR XhmikosR deleted the patch-1 branch January 12, 2022 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Add to Kodiak auto merge queue type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants