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

build: make lint-ci work properly on Linux make #19746

Closed
wants to merge 1 commit into from

Conversation

rvagg
Copy link
Member

@rvagg rvagg commented Apr 2, 2018

I want to ditch the FreeBSD 10 machines from running node-test-lint and just get the jenkins-workspace machines to do it. Unfortunately it doesn't work because it seems we're using a quirk of gmake that ships with FreeBSD 10.

$(wildcard test/addons/??_*/*.cc test/addons/??_*/*.h) is executed when Makefile is loaded, and before the body of lint-addon-docs is executed. So in a pristine clone it expands to nothing, since those files are created by test/addons/.docbuildstamp which is a direct dependency of lint-addon-docs (it'd probably be OK if that was done before the call to $(MAKE) lint-addon-docs but then make lint-addon-docs as a stand-alone wouldn't work).

/cc @bnoordhuis who last tried to touch this stuff when attempting a refactor in d9b59de which was subsequently reverted
/cc @joyeecheung who introduced part of this functionality in #16377 and may have more of a clue than me about why this only seems to work on the FreeBSD 10 linter hosts

@nodejs-github-bot nodejs-github-bot added the build Issues and PRs related to build files or the CI. label Apr 2, 2018
@rvagg rvagg requested review from bnoordhuis and joyeecheung and removed request for bnoordhuis April 2, 2018 09:53
@rvagg
Copy link
Member Author

rvagg commented Apr 2, 2018

and /cc @nodejs/build

@joyeecheung
Copy link
Member

/cc @joyeecheung who introduced part of this functionality in #16377 and may have more of a clue than me about why this only seems to work on the FreeBSD 10 linter hosts

I didn't know that we run linters on FreeBSD so yeah, this is probably just a quirk of gmake on FreeBSD.

@rvagg rvagg closed this Apr 3, 2018
@rvagg rvagg deleted the rvagg/make-lint-ci-linux branch April 3, 2018 10:46
rvagg added a commit that referenced this pull request Apr 3, 2018
@joyeecheung
Copy link
Member

Looks like the commit sha is not posted here: c5928ab

BridgeAR pushed a commit to BridgeAR/node that referenced this pull request May 1, 2018
@ryzokuken
Copy link
Contributor

Backporting this. Let's hope it's not a problem.

ryzokuken pushed a commit to ryzokuken/node that referenced this pull request Jun 11, 2018
MylesBorins pushed a commit that referenced this pull request Jun 14, 2018
@MylesBorins MylesBorins mentioned this pull request Jul 9, 2018
@rvagg
Copy link
Member Author

rvagg commented Jul 26, 2018

@ryzokuken thanks for the backport on this, would you mind having a go for 6.x too? once we get full coverage of all of the active branches then we can properly implement changes in CI.

rvagg added a commit that referenced this pull request Aug 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants