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

Store logs on the server #11

Open
JohanLorenzo opened this issue May 4, 2016 · 1 comment
Open

Store logs on the server #11

JohanLorenzo opened this issue May 4, 2016 · 1 comment

Comments

@JohanLorenzo
Copy link

JohanLorenzo commented May 4, 2016

Yesterday, the E2E test started to fail for no obvious reasons. Locally, I noticed that sometimes 2 boxes are visible from http://fxbox.github.io/app/ . I'm suspecting Travis to share the same internal IP address on many VMs.

I got the live logs on the knilxof (ssh login then pm2 logs $APP_NAME - thanks @samgiles 😃) machine, but I couldn't find if the logs are already stored on the hard drive. If not, that's something we could improve. What do you think @michielbdejong @samgiles ?

cc @isabelrios @npark-mozilla

@michielbdejong
Copy link
Contributor

Yeah, it makes sense if concurrent travis runs would see each other's boxes, that's also what would happen (and we have seen this happen) if you have >1 boxes in for instance a Mozilla office. So to fix the root problem of testing on Travis, either write a test that is robust against seeing "neighbor" boxes appear, or see if we can apply some more advanced Travis fu (e.g. http://stackoverflow.com/questions/18493149/travis-ci-static-ip-for-the-vm).

About logging on knilxof.org, I would expect pm2 logs to be enough, IIRC it will show the logs for the entire uptime?

I'm hesitant to build logging to disk into the dns-server application as a feature, because of NSA sub-poena's for these logs.

For debugging, you could also run the dns-server locally, then you know you're the only user on there.

Maybe you could even put the dns-server into the travis image? Is the travis image currently relying on the knilxof.org instance of dns-server? If so, then that's not really an e2e test, I would say, since dns-server is part of the system being tested, right?

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

No branches or pull requests

2 participants