-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
🛠️ Repo: Consider strategy for asserting compat with third-party modules #4427
Comments
Getting back to this... Just to understand this properly:
Is there a specific reason for this? What if
If you think that's workable - I'm happy to make the necessary From
|
@dominykas thanks. I am also happy to work on It's probably worth setting up with Mocha and just kind of see where it's at, where it could improve, or even if we could start using it in earnest. (I'm not sure what I was thinking with the devdeps-must-be-shared stuff. maybe I was thinking that we would want to write specific tests against specific integrations. if we did, then I wouldn't want to maintain two lists of devdeps and try to keep them in sync.) |
OK, cool, let's try to come up with something. I think #56 is where it's at. And I don't see an obvious way forward and it needs a little bit of thought. Kicking off the initial The hard part is to collect the results, because you can't trigger an action off a status change in another repo. Which means some sort of polling, but there's no obvious way of implementing that using actions either, or at least no obvious way which wouldn't use up the precious actions minutes. So I'm going to do some digging and try to come up with some sort of PoC, but leaving this out here in case someone else comes up with an idea.
I created a bunch of issues today, but I think besides the GH action, none of them are on the critical path towards the full PoC - but feel free to poke around and see if you want to pick up any of them. Haven't had a chance to put them into a single coherent story/plan/roadmap yet. |
We want to make sure that a change in Mocha won't break compatibility with other modules frequently used alongside Mocha (think CITGM). We already have a few of these checks in our test suite:
but what's going to happen if we keep adding these? A lot of dev dependencies we don't use directly! The only ones we use in the above list are karma and karma-mocha.
Here's a suggestion, but open to any ideas:
@mocha/3p-tests
.mocha
would not be a dependency of this module, nor wouldmocha
have this module as a dependencymocha
and add them to the deps of@mocha/3p-tests
.test
dir into@mocha/3p-tests
mocha
--maybepreversion
orprepublishOnly
--run a script which manually installs@mocha/3p-tests
into mocha'snode_modules
, then executes the tests found in e.g.,node_modules/@mocha/3p-tests/test
. this would allow us to re-use the remainder of mocha's devdeps when running tests, e.g.,karma
orunexpected
.to be clear,
npm test
should not run these tests. this has precedent: CITGM does not run when you issuemake test
in a Node.js working copy, but a green CITGM run is a prerequisite for a Node.js release.the package-maintenance WG also may have something in the works here--not sure if it's ready to be used? What of fugl?
The text was updated successfully, but these errors were encountered: