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

Problem with Travis #494

Closed
guwirth opened this issue Apr 23, 2015 · 8 comments
Closed

Problem with Travis #494

guwirth opened this issue Apr 23, 2015 · 8 comments
Assignees
Labels
Milestone

Comments

@guwirth
Copy link
Collaborator

guwirth commented Apr 23, 2015

Travis build breaks randomly.

@guwirth guwirth added the bug label Apr 23, 2015
@guwirth
Copy link
Collaborator Author

guwirth commented Apr 24, 2015

To all Travis artists. Any idea what that could be?

  • the code did not change anything on the plugin
  • the PR was not changing anything on the integration tests
  • download, installation, build and unit tests successful

One example for a failing build: ValueError: No JSON object could be decoded
https://travis-ci.org/wenns/sonar-cxx/jobs/59692337

Feature: Importing coverage data
As a SonarQube user
I want to import my coverage metric values into SonarQube
In order to be able to use relevant SonarQube features
Scenario: Importing coverage reports 
Given the project "coverage_project"
Given the project "coverage_project"
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/behave/model.py", line 1456, in run
match.run(runner.context)
File "/usr/local/lib/python2.7/dist-packages/behave/model.py", line 1903, in run
self.func(context, *args, **kwargs)
File "integration-tests/features/steps/test_execution_statistics.py", line 43, in step_impl
profiles = json.loads(response.text).get("qualityprofiles", None)
File "/usr/lib/python2.7/json/__init__.py", line 326, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

@jmecosta
Copy link
Member

Can we see build history by agent, perhaps one of the agents contains a
different version of python. ? Anyway, its probably worth to send email to
Travis team to check this

On Fri, Apr 24, 2015, 08:38 Günter Wirth [email protected] wrote:

To all Travis artists. Any idea what that could be?

  • the code did not change anything on the plugin
  • the PR was not changing anything on the integration tests
  • download, installation, build and unit tests successful

One example for a failing build: ValueError: No JSON object could be
decoded
https://travis-ci.org/wenns/sonar-cxx/jobs/59692337

Feature: Importing coverage data
As a SonarQube user
I want to import my coverage metric values into SonarQube
In order to be able to use relevant SonarQube features
Scenario: Importing coverage reports
Given the project "coverage_project"
Given the project "coverage_project"
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/behave/model.py", line 1456, in run
match.run(runner.context)
File "/usr/local/lib/python2.7/dist-packages/behave/model.py", line 1903, in run
self.func(context, _args, *_kwargs)
File "integration-tests/features/steps/test_execution_statistics.py", line 43, in step_impl
profiles = json.loads(response.text).get("qualityprofiles", None)
File "/usr/lib/python2.7/json/init.py", line 326, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded


Reply to this email directly or view it on GitHub
#494 (comment).

@jmecosta
Copy link
Member

Ive see also 255 error codes, in teamcity we usually got those if running
32 bit tools on 64 bit machines. But those are usually quite random. But it
seems the quality of Travis as decrease a bit lately, before things run
much more smoothly

On Fri, Apr 24, 2015, 08:53 Jorge Costa [email protected] wrote:

Can we see build history by agent, perhaps one of the agents contains a
different version of python. ? Anyway, its probably worth to send email to
Travis team to check this

On Fri, Apr 24, 2015, 08:38 Günter Wirth [email protected] wrote:

To all Travis artists. Any idea what that could be?

  • the code did not change anything on the plugin
  • the PR was not changing anything on the integration tests
  • download, installation, build and unit tests successful

One example for a failing build: ValueError: No JSON object could be
decoded
https://travis-ci.org/wenns/sonar-cxx/jobs/59692337

Feature: Importing coverage data
As a SonarQube user
I want to import my coverage metric values into SonarQube
In order to be able to use relevant SonarQube features
Scenario: Importing coverage reports
Given the project "coverage_project"
Given the project "coverage_project"
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/behave/model.py", line 1456, in run
match.run(runner.context)
File "/usr/local/lib/python2.7/dist-packages/behave/model.py", line 1903, in run
self.func(context, _args, *_kwargs)
File "integration-tests/features/steps/test_execution_statistics.py", line 43, in step_impl
profiles = json.loads(response.text).get("qualityprofiles", None)
File "/usr/lib/python2.7/json/init.py", line 326, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded


Reply to this email directly or view it on GitHub
#494 (comment).

@guwirth
Copy link
Collaborator Author

guwirth commented Apr 24, 2015

Sent an issue report to Travis.

@guwirth
Copy link
Collaborator Author

guwirth commented Apr 24, 2015

Travis-Support: "Es scheint mir als sei der fehlschlagende Test nicht deterministisch (dieser tested, zumindest so wie ich es von den Logs verstehe, dass der Warnhinweis "WARNING Journal flush operation took 6,146ms last 8 cycles average is 768ms" nicht erscheint). Es könnte sein, dass die Schwankungen in der IO-Preformance durch die zu Grunde liegende Virtualisierung verursacht werden. Unter Umständen würde ein Wechsel auf unsere containerbasierte Infrastruktur hier Abhilfe schaffen, ich bin mir aber nicht sicher ob man die pip befehle dort ohne sudo ausführen kann.

Vielleicht wäre eine einfachere Lösung den Test anzupassen.

Als ein kleiner Hinweis anbei: Unser Supportteam ist leider ausschließlich in der Lage auf Englische Anfragen und ausschließlich in Englisch zu antworten, Support auf Deutsch ist daher nur eingeschränkt möglich, abhängig von der Verfügbarkeit anderer Mitarbeiter. Ich bitte um Ihr Verständnis."

@guwirth
Copy link
Collaborator Author

guwirth commented Apr 24, 2015

Are there any timeout measurements or performance measurements in our tests?

@jmecosta
Copy link
Member

Not that am aware

On Fri, Apr 24, 2015, 15:24 Günter Wirth [email protected] wrote:

Are there any timeout measurements or performance measurements in our
tests?


Reply to this email directly or view it on GitHub
#494 (comment).

@guwirth guwirth modified the milestone: M 0.9.4 Apr 29, 2015
@guwirth guwirth self-assigned this May 23, 2015
@guwirth
Copy link
Collaborator Author

guwirth commented May 23, 2015

Seems to work again.

@guwirth guwirth closed this as completed May 23, 2015
@guwirth guwirth mentioned this issue Oct 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants