-
Notifications
You must be signed in to change notification settings - Fork 189
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
Don't run unit tests on npm version #2208
Conversation
I don't know how I feel about it. This will make it super easy to create and push tags for broken commits. We will then have to remove those tags from remote repo. I would keep it, personally. |
If e2e tests don't pass, you are already doing this. Also, why are we tagging a broken commit at all? The fact that it's already merged on |
Can't disagree about the master branch. But what if the developer who is doing the release has a dirty tree on their machine? The tag is created locally and that's the reason why we have the tests running locally before the tag is created - to avoid creating a tag for broken commit. I agree that ideally such scenario should not happen, but we are not all senior devs here either... |
Let's say that we want to ship ff0d814 as version 2.0.0. We've reviewed it (it's passed CI), and we've landed it on Also, re: senior vs. junior devs, I understand your concern. I think we deal with this through limiting the people with power to make this happen. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@humphd fair points, let's try it then 👍🏼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 on that write up
Currently, whenever we run
npm version ...
to create a release, the unit tests are run. This wastes time, and also requires the local dev env to be properly set up, which isn't really necessary to create a tag.Passing unit tests doesn't mean the commit is good, as you need to run e2e tests as well. Also, before we tag a commit on
master
, it has to have passed a) in the PR CI checks; and b) when it lands onmaster
; and c) when we build it for staging. If we've let a failed commit make it all the way through those stages, something is wrong already.