-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
[JENKINS-73744] npm scripts lint:fix do not work #9718
Conversation
Signed-off-by: Thorsten Scherler <[email protected]>
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.
Please update the CONTRIBUTING
guide: https://github.com/jenkinsci/jenkins/blob/master/CONTRIBUTING.md#running-the-yarn-frontend-build
Changes look good although I would like to run locally before approving
Signed-off-by: Thorsten Scherler <[email protected]>
Signed-off-by: Thorsten Scherler <[email protected]>
Working locally for me +1 - ran a dev server and tried linting. I think it makes more sense for first time contributors to have |
Signed-off-by: Thorsten Scherler <[email protected]>
Co-authored-by: Jan Faracik <[email protected]>
scherler#75 I created a PR for the profiles only but I am not sure if that is what @timja had in mind |
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.
Thanks! I tested locally and linting looks to be fine for me.
/label ready-for-merge This PR is now ready for merge, after ~24 hours, we will merge it if there's no negative feedback. Thanks! |
[JENKINS-71021]
Please take a moment and address the merge conflicts of your pull request. Thanks! |
I found that with the most recent changes and a merge of the latest master branch, I needed to add the downloaded versions of Node and Yarn to my path. I did that with the command:
I have no skills in front-end development, so that may indicate that I'm making some obvious mistake, but when I tried to run Once the PATH was updated, I confirmed that |
That’s expected, maven doesn’t add the downloaded yarn and node to the PATH. |
Thanks! I think that means the CONTRIBUTING doc should be updated to include the instructions to set the PATH for the new location of node and yarn. I pushed that change as 8e868b5 |
In what way does this address JENKINS-73744? |
@scherler are you happy with that change? I and most other people doing frontend development are unlikely to use that approach as we'll use what we have locally installed so we don't have to modify our PATH for one project. Node will read what's in the package.json and automatically load the right version of yarn anyway once you've run |
Would it be a workable compromise for the less experienced (like me) if there were a section that described the PATH setting without including a link in the later sections to those instructions? |
@MarkEWaite @timja I will update doc to point out the |
@daniel-beck I am not sure about the question since the change is addressing the problem and it is now possible to use |
Then why does |
And why was the |
@basil Actually @MarkEWaite added that note, you only need to add node/yarn to your path if you want to use
I will fill a follow-up PR if you do not beat me to it. |
@scherler The documentation should always reflect what is supported by the project, no more and no less.
In any case, this PR (as it was integrated) is logically inconsistent. |
I will follow up as well to state in the docu what I explained earlier that you only have to add the path if yarn is not installed globally.
however it will not break anything if you follow that instruction on a system that already has node/yarn installed, so not really sharing your opinion of |
Is there any particular reason to use monospaced text here for the phrase "logically inconsistent"? Did you mean to use quotation marks? |
<id>yarn-lint</id> | ||
<activation> | ||
<property> | ||
<name>!env.CI</name> |
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.
Why was this PR merged when the mandatory Testing Done section was blank?
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.
I should have added notes in the PR description on the testing that I did in the comment. Tim noted in his comment that he tested locally, and Jan noted in his comment that he tested locally.
However, I did not test the Maven profile and should have done that.
See JENKINS-73744.
Testing done
Proposed changelog entries
Proposed upgrade guidelines
N/A
Submitter checklist
Desired reviewers
@mention
Before the changes are marked as
ready-for-merge
:Maintainer checklist