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

Diagnostic files not being archived as expected with test_output #1193

Closed
smlambert opened this issue Jun 26, 2019 · 5 comments · Fixed by #1196
Closed

Diagnostic files not being archived as expected with test_output #1193

smlambert opened this issue Jun 26, 2019 · 5 comments · Fixed by #1196
Assignees
Labels
Milestone

Comments

@smlambert
Copy link
Contributor

There have been 2 reports of core files generated from openjdk test crashes not getting archived. We believe this functionality should work when ARCHIVE_TEST_RESULTS is selected in a Grinder job (#1073), but we should investigate why it is not.

@sophia-guo
Copy link
Contributor

We currently set jtreg tests as only retain files generated by test that fail or cause error. That is if test pass and no error all generated files will be deleted after each test completes executing.

Some special case is there are system dump generated by passing tests, which dump files will be deleted. In order to keep those file we can update to retain those files by using file name pattern.

@smlambert
Copy link
Contributor Author

Good catch, the 2 cases that were reported through Slack are when tests report as passed (but a crash is still seen).

@karianna karianna added the bug label Jun 26, 2019
@sophia-guo sophia-guo self-assigned this Jun 27, 2019
@sophia-guo
Copy link
Contributor

sophia-guo commented Jun 27, 2019

Interesting, even if set with option to retain files that match a specific filename there are no those files under that specific folder described with console output 'tests/TestConfig/test_output_15613907978889/jdk_util_0/work/scratch/4/core.20190624.114421.14985.0001.dmp'

@sophia-guo
Copy link
Contributor

sophia-guo commented Jun 27, 2019

Screen Shot 2019-06-27 at 12 18 50 PM
Actually scratch directory is a tmp directory for the running test, which is used to write any temporary files. Jtreg will ensure that the directory is always empty when the test begins. So we cannot expect dump or other files stay there.

The corresponding dmp files can actually be found per tests.

@sophia-guo
Copy link
Contributor

So two notes here

  1. Will update code to make sure even if tests pass still retain those dmp files
  2. Instead of finding the files under scratch please find them per tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants