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

linter: fix punctuation and capitalization #2021

Merged
merged 1 commit into from
Dec 5, 2016

Conversation

alban
Copy link
Contributor

@alban alban commented Nov 21, 2016

Symptoms:

app/control_router.go:44:38: error strings should not be capitalized or end with punctuation or a newline

This is blocking the build on: #2020
https://circleci.com/gh/kinvolk/scope/363

@alban
Copy link
Contributor Author

alban commented Nov 21, 2016

This time, the lint test passes fine, but it fails later:

$ cd $SRCDIR; make RM= client-test static

docker run  -ti -v /home/ubuntu/src/github.com/weaveworks/scope/client/app:/home/weave/app \
		-v /home/ubuntu/src/github.com/weaveworks/scope/client/test:/home/weave/test \
		weaveworks/scope-ui-build npm test
make: *** [client-test] Error 1

cd $SRCDIR; make RM= client-test static returned exit code 2

I cannot reproduce locally. I'll restart CircleCI to see if it helps.

@alban
Copy link
Contributor Author

alban commented Nov 21, 2016

In another build, it failed in a more verbose way:

 RUNS  app/scripts/components/__tests__/node-details-test.js
 FAIL  app/scripts/components/__tests__/node-details-test.js
 RUNS  app/scripts/components/__tests__/node-details-test.js
  ● Test suite failed to run
    Cannot find module 'react/lib/ReactTestUtils' from 'node-details-test.js'

      at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:144:17)
      at Object.<anonymous> (app/scripts/components/__tests__/node-details-test.js:3:47)

 RUNS  app/scripts/components/__tests__/node-details-test.js

@2opremio
Copy link
Contributor

2opremio commented Nov 21, 2016

@foot Mind taking a look at https://circleci.com/gh/kinvolk/scope/370 and see what's wrong? It may be a subtlety making it build differently for hem, IDK.

@foot
Copy link
Contributor

foot commented Nov 23, 2016

We merged in some lib updates this afternoon which has fixed this, so if you rebase onto latest master you should be all good. I'm not sure when it was introduced. =/

Symptoms:
> app/control_router.go:44:38: error strings should not be capitalized or end with punctuation or a newline

This is blocking the build on:
https://circleci.com/gh/kinvolk/scope/363
@alban
Copy link
Contributor Author

alban commented Nov 23, 2016

Thanks! This PR is green now.

@2opremio 2opremio merged commit b4d5665 into weaveworks:master Dec 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants