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

Mocha test results not visible in sponge output #1681

Closed
grayside opened this issue Mar 30, 2020 · 9 comments · Fixed by #1711 or #1861
Closed

Mocha test results not visible in sponge output #1681

grayside opened this issue Mar 30, 2020 · 9 comments · Fixed by #1711 or #1861
Assignees
Labels
type: cleanup An internal cleanup or hygiene concern.

Comments

@grayside
Copy link
Collaborator

grayside commented Mar 30, 2020

The lack of mocha results makes it more difficult to evaluate test failures. This is presumably the result of switching to xunit output in a spong_log.xml file in #1665.

Based on some discussion in mochajs/mocha#2184 to support multiple reporters at once, we should be able to restore console output without significant time overhead.

@grayside grayside added the type: cleanup An internal cleanup or hygiene concern. label Mar 30, 2020
@fhinkel
Copy link
Contributor

fhinkel commented Mar 31, 2020

I'm wondering why sponge doesn't have the xml file as artifact cc @tbpg

fhinkel added a commit that referenced this issue Apr 9, 2020
gcf-merge-on-green bot pushed a commit that referenced this issue Apr 9, 2020
@grayside
Copy link
Collaborator Author

When I look at the output, I still don't see the mocha test output. As a result I don't have an easy way to triage the test failure short of locally running the tests. I don't see any further artifacts.

Is there a reason why we can't pursue inline mocha output as part of the overall log output?

Examples include:

@grayside
Copy link
Collaborator Author

@fhinkel do you have thoughts on the best path forward? I have a number of issues in the run/logging-manual sample that I can't reproduce locally. I can only assume general flakiness without more information.

@fhinkel
Copy link
Contributor

fhinkel commented May 4, 2020

Was this not fixed with #1711? There should be a separate log file in sponge.

@grayside
Copy link
Collaborator Author

grayside commented May 5, 2020

  1. In poking around, I only saw one log file in the artifacts and it was the same content as the main invocation log.
  2. When you say "separate", is the fix that we're going to look in two different files for the end-to-end log output?

@fhinkel
Copy link
Contributor

fhinkel commented May 7, 2020

This tests has the correct output:

https://g3c.corp.google.com/results/invocations/f1ac27e7-10cb-499b-821f-1d662112106a/targets

A lot of other CI runs show the error "XML file not found", and there's no way to see the output.

Yes, the results from mocha are in a separate file (${project}-sponge.xml). The buildcop finds that file, otherwise it wouldn't open an issue, but Sponge doesn't find it for a lot of projects 🤔

@fhinkel
Copy link
Contributor

fhinkel commented May 12, 2020

This new test also has correct output:

#1786

@fhinkel fhinkel closed this as completed May 12, 2020
@grayside
Copy link
Collaborator Author

grayside commented Jun 1, 2020

I'm not following how to read the test output logs for https://source.cloud.google.com/results/invocations/ef760242-50d0-4f75-8e88-efcf1e4ac4cb/targets/cloud-devrel%2Fnodejs-docs-samples%2Fpresubmit%2Frun%2Fhello-broken/tests. Not sure if that means there's a bug or if it's just a documentation challenge.

@bcoe
Copy link
Contributor

bcoe commented Jun 5, 2020

👋 I've talked to @fhinkel about this in 1:1s, I don't have a clue why, but our sponge output seems to work on client libraries:

googleapis/nodejs-logging#821

Perhaps an extra set of eyes on our config, and something might jump out at you, here's where it's configured:

https://github.com/googleapis/nodejs-logging/blob/master/.kokoro/system-test.sh#L38

fhinkel added a commit that referenced this issue Jun 7, 2020
fhinkel added a commit that referenced this issue Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: cleanup An internal cleanup or hygiene concern.
Projects
None yet
3 participants