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

v4.0.0 is broken, Cannot find plugin "karma-sauce-launcher" #190

Closed
limonte opened this issue Mar 17, 2020 · 23 comments · Fixed by #194 or #196
Closed

v4.0.0 is broken, Cannot find plugin "karma-sauce-launcher" #190

limonte opened this issue Mar 17, 2020 · 23 comments · Fixed by #194 or #196
Labels

Comments

@limonte
Copy link
Contributor

limonte commented Mar 17, 2020

I guess something went wrong with v4.0.0

Cannot find plugin "karma-sauce-launcher".

Can not load reporter "saucelabs", it is not registered!

image

https://github.com/sweetalert2/sweetalert2/pull/1921/checks?check_run_id=514536203

@limonte
Copy link
Contributor Author

limonte commented Mar 17, 2020

Yes, it is broken, there's no index.js file in v4.0.0:

image

@limonte limonte changed the title Is v4.0.0 broken? v4.0.0 is broken, Cannot find plugin "karma-sauce-launcher" Mar 17, 2020
@gushiguera-rezi
Copy link

same issue here

@limonte
Copy link
Contributor Author

limonte commented Mar 19, 2020

ping @rcebulko PTAL

@rcebulko
Copy link
Collaborator

Indeed, this is a known issue with the release (in the process of configuring semantic release). I think @rsimha knows more

floydpink added a commit to floydpink/lzwCompress.js that referenced this issue Mar 22, 2020
@limonte
Copy link
Contributor Author

limonte commented Mar 30, 2020

@rcebulko the package is broken for more than 10 days. I can help with the PR, would you be interested in reviewing it?

@rcebulko
Copy link
Collaborator

@limonte Certainly

@rcebulko
Copy link
Collaborator

@vikerman I see index.js was removed in #156 . This seems to be part of what's breaking the release. Why was it removed, and do you know how to resolve these issues?

@limonte
Copy link
Contributor Author

limonte commented Mar 30, 2020

Actually, I can't help here. The releasing process is broken completely, the fix isn't simple.

Even the version in package.json is out of sync https://github.com/karma-runner/karma-sauce-launcher/blob/master/package.json#L3

@rcebulko
Copy link
Collaborator

Semantic-release uses tags to set the version, and completely ignores package.json. They explicitly disallow "manually" setting the release, since that breaks the semantic part of it. I think I may need to roll back semantic release entirely for now.

@rcebulko
Copy link
Collaborator

Part of the issue here is that HEAD is about a year ahead of the previous release. If we just unpublish the latest version from npm, whenever another commit is merged another release will just be triggered and re-deploy the broken version. If @johnjbarton can unpublish the NPM package, I can add a commit disabling semantic-release for the time being, so we can work on the underlying issue, being that master has been broken for probably over a year now.

@limonte
Copy link
Contributor Author

limonte commented Mar 30, 2020

If @johnjbarton can unpublish the NPM package

Nope, nobody can. https://www.npmjs.com/policies/unpublish

@rcebulko
Copy link
Collaborator

I think #190 may address the main problem. When migrating to Typescript, a build step was added to compile to JS. While this was usually done manually, it needs to be done explicitly to populate dist/, and the main entrypoint in package.json had to be updated.

@rcebulko
Copy link
Collaborator

It appears NPM ignores files in .gitignore (aka the entire dist/ directory), unless a separate .npmignore file is present. I'm testing this now.

@limonte
Copy link
Contributor Author

limonte commented Mar 30, 2020

It appears NPM ignores files in .gitignore (aka the entire dist/ directory), unless a separate .npmignore file is present. I'm testing this now.

@rcebulko Should be handled by #194

@karmarunnerbot
Copy link
Member

🎉 This issue has been resolved in version 4.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@gushiguera-rezi
Copy link

👏

@limonte
Copy link
Contributor Author

limonte commented Mar 30, 2020

Nope, still broken:

image

There's only package.json inside dist.

@rcebulko
Copy link
Collaborator

Oddly, npm pack appears to package up dist/ as desired, and npm publish --dry-run does the same

@limonte
Copy link
Contributor Author

limonte commented Mar 30, 2020

Oddly, npm pack appears to package up dist/ as desired, and npm publish --dry-run does the same

@rcebulko #196 should handle that 👍 You can test it out with npm publish --dry-run:

image

@karmarunnerbot
Copy link
Member

🎉 This issue has been resolved in version 4.1.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@rcebulko
Copy link
Collaborator

Looks like that may have done it! Nice 🎉

@limonte
Copy link
Contributor Author

limonte commented Mar 30, 2020

Looks like that may have done it! Nice tada

Yup, works now 🎉 Thank you @rcebulko 🍻

@rsimha
Copy link

rsimha commented Mar 30, 2020

Yay! Nice work, @rcebulko and @limonte 😃

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 a pull request may close this issue.

5 participants