Skip to contentSkip to conversation

runner: Print an error message if resume fails to load data

PATCH In review Petri Latvala 3 participants 6 messages Feb 10, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 runner: Print an error message if resume fails to load data

If metadata.txt or other vital data files are missing from a results-directory, igt_resume silently exited. Print an error message to the user so it's somewhat clear why we didn't resume the execution.

---
 runner/resume.c | 2 ++
 1 file changed, 2 insertions(+)
runner/resume.c +2 -0
index d5a20e80..08129ffb 100644
@@ -32,10 +32,12 @@ int main(int argc, char **argv)
 	}
 
 	if (!initialize_execute_state_from_resume(dirfd, &state, &settings, &job_list)) {
+		fprintf(stderr, "Failure reading data from %s\n", argv[1]);
 		return 1;
 	}
 
 	if (!execute(&state, &settings, &job_list)) {
+		fprintf(stderr, "Executing tests failed, stopping.\n");
 		exitcode = 1;
 	}
 
Signature · 6 lines
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#1 lore raw

[igt-dev] ✗ GitLab.Pipeline: warning for runner: Print an error message if resume fails to load data

== Series Details ==

== Series Details ==

Series: runner: Print an error message if resume fails to load data
URL : https://patchwork.freedesktop.org/series/73235/
State : warning

== Summary ==

Did not get list of undocumented tests for this run, something is wrong!

Other than that, pipeline status: FAILED.

see https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/pipelines/106751 for the overview.

test:ninja-test-arm64 has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/1590973):
[test_root] Directory that contains the IGT tests. The environment
variable IGT_TEST_ROOT will be used if set, overriding this option if given.
Cannot open /builds/gfx-ci/igt-ci-tags/build/tmpdir2acmhN/test-list.txt
-------

Full log written to /builds/gfx-ci/igt-ci-tags/build/meson-logs/testlog.txt
FAILED: meson-test
/usr/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed. section_end:1581339717:build_script section_start:1581339717:after_script section_end:1581339718:after_script section_start:1581339718:upload_artifacts_on_failure Uploading artifacts...
build: found 1345 matching files 
Uploading artifacts to coordinator... ok  id=1590973 responseStatus=201 Created token=VmTfMsPk
section_end:1581339724:upload_artifacts_on_failure ERROR: Job failed: exit code 1


test:ninja-test-arm64 has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/1591013):
[test_root] Directory that contains the IGT tests. The environment
variable IGT_TEST_ROOT will be used if set, overriding this option if given.
Cannot open /builds/gfx-ci/igt-ci-tags/build/tmpdirQjbzLm/test-list.txt
-------

Full log written to /builds/gfx-ci/igt-ci-tags/build/meson-logs/testlog.txt
FAILED: meson-test
/usr/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed. section_end:1581340094:build_script section_start:1581340094:after_script section_end:1581340095:after_script section_start:1581340095:upload_artifacts_on_failure Uploading artifacts...
build: found 1345 matching files 
Uploading artifacts to coordinator... ok  id=1591013 responseStatus=201 Created token=-hTZxs9n
section_end:1581340101:upload_artifacts_on_failure ERROR: Job failed: exit code 1


test:ninja-test-arm64 has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/1591053):
[test_root] Directory that contains the IGT tests. The environment
variable IGT_TEST_ROOT will be used if set, overriding this option if given.
Cannot open /builds/gfx-ci/igt-ci-tags/build/tmpdirEYIohy/test-list.txt
-------

Full log written to /builds/gfx-ci/igt-ci-tags/build/meson-logs/testlog.txt
FAILED: meson-test
/usr/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed. section_end:1581340463:build_script section_start:1581340463:after_script section_end:1581340464:after_script section_start:1581340464:upload_artifacts_on_failure Uploading artifacts...
build: found 1345 matching files 
Uploading artifacts to coordinator... ok  id=1591053 responseStatus=201 Created token=S7cHsjfj
section_end:1581340470:upload_artifacts_on_failure ERROR: Job failed: exit code 1


== Logs ==

For more details see: https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/pipelines/106751
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#2 lore raw

Re: [igt-dev] ✗ GitLab.Pipeline: warning for runner: Print an error message if resume fails to load data

We seem to have a lot of these happen lately. Arek?

Quoted 80 lines · Patchwork

== Series Details ==

Series: runner: Print an error message if resume fails to load data
URL : https://patchwork.freedesktop.org/series/73235/
State : warning

== Summary ==

Did not get list of undocumented tests for this run, something is wrong!

Other than that, pipeline status: FAILED.

see https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/pipelines/106751 for the overview.

test:ninja-test-arm64 has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/1590973):
[test_root] Directory that contains the IGT tests. The environment
variable IGT_TEST_ROOT will be used if set, overriding this option if given.
Cannot open /builds/gfx-ci/igt-ci-tags/build/tmpdir2acmhN/test-list.txt
-------

Full log written to /builds/gfx-ci/igt-ci-tags/build/meson-logs/testlog.txt
FAILED: meson-test
/usr/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed. section_end:1581339717:build_script section_start:1581339717:after_script section_end:1581339718:after_script section_start:1581339718:upload_artifacts_on_failure Uploading artifacts...
build: found 1345 matching files 
Uploading artifacts to coordinator... ok  id=1590973 responseStatus=201 Created token=VmTfMsPk
section_end:1581339724:upload_artifacts_on_failure ERROR: Job failed: exit code 1


test:ninja-test-arm64 has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/1591013):
[test_root] Directory that contains the IGT tests. The environment
variable IGT_TEST_ROOT will be used if set, overriding this option if given.
Cannot open /builds/gfx-ci/igt-ci-tags/build/tmpdirQjbzLm/test-list.txt
-------

Full log written to /builds/gfx-ci/igt-ci-tags/build/meson-logs/testlog.txt
FAILED: meson-test
/usr/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed. section_end:1581340094:build_script section_start:1581340094:after_script section_end:1581340095:after_script section_start:1581340095:upload_artifacts_on_failure Uploading artifacts...
build: found 1345 matching files 
Uploading artifacts to coordinator... ok  id=1591013 responseStatus=201 Created token=-hTZxs9n
section_end:1581340101:upload_artifacts_on_failure ERROR: Job failed: exit code 1


test:ninja-test-arm64 has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/1591053):
[test_root] Directory that contains the IGT tests. The environment
variable IGT_TEST_ROOT will be used if set, overriding this option if given.
Cannot open /builds/gfx-ci/igt-ci-tags/build/tmpdirEYIohy/test-list.txt
-------

Full log written to /builds/gfx-ci/igt-ci-tags/build/meson-logs/testlog.txt
FAILED: meson-test
/usr/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed. section_end:1581340463:build_script section_start:1581340463:after_script section_end:1581340464:after_script section_start:1581340464:upload_artifacts_on_failure Uploading artifacts...
build: found 1345 matching files 
Uploading artifacts to coordinator... ok  id=1591053 responseStatus=201 Created token=S7cHsjfj
section_end:1581340470:upload_artifacts_on_failure ERROR: Job failed: exit code 1


Quoted 3 lines

== Logs ==

For more details see: https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/pipelines/106751

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#3 lore raw

Re: [igt-dev] ✗ GitLab.Pipeline: warning for runner: Print an error message if resume fails to load data

Quoted 1 line · Petri Latvala

We seem to have a lot of these happen lately. Arek?

Seems like something is wrong with fdo-packet-2 runner recently. I have been reporting those issues.

https://gitlab.freedesktop.org/freedesktop/freedesktop/issues/197#note_406230

Signature · 6 lines
Arek
Cheers,
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#4 lore raw

[igt-dev] ✓ Fi.CI.BAT: success for runner: Print an error message if resume fails to load data

In reply to Petri Latvala
== Series Details ==

== Series Details ==

Series: runner: Print an error message if resume fails to load data
URL : https://patchwork.freedesktop.org/series/73235/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_7899 -> IGTPW_4119
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4119/index.html

Known issues
------------

Here are the changes found in IGTPW_4119 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gem_close_race@basic-threads:
- fi-hsw-peppy: [PASS][1] -> [INCOMPLETE][2] ([i915#694] / [i915#816])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7899/fi-hsw-peppy/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4119/fi-hsw-peppy/igt@[email protected]
- fi-byt-n2820: [PASS][3] -> [INCOMPLETE][4] ([i915#45])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7899/fi-byt-n2820/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4119/fi-byt-n2820/igt@[email protected]

* igt@gem_exec_suspend@basic-s3:
- fi-skl-6700k2: [PASS][5] -> [INCOMPLETE][6] ([i915#69])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7899/fi-skl-6700k2/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4119/fi-skl-6700k2/igt@[email protected]

* igt@i915_selftest@live_blt:
- fi-hsw-4770: [PASS][7] -> [DMESG-FAIL][8] ([i915#563])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7899/fi-hsw-4770/igt@i915_selftest@live_blt.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4119/fi-hsw-4770/igt@i915_selftest@live_blt.html

* igt@i915_selftest@live_execlists:
- fi-icl-y: [PASS][9] -> [DMESG-FAIL][10] ([fdo#108569])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7899/fi-icl-y/igt@i915_selftest@live_execlists.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4119/fi-icl-y/igt@i915_selftest@live_execlists.html

* igt@i915_selftest@live_gem_contexts:
- fi-cfl-guc: [PASS][11] -> [INCOMPLETE][12] ([fdo#106070] / [i915#424])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7899/fi-cfl-guc/igt@i915_selftest@live_gem_contexts.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4119/fi-cfl-guc/igt@i915_selftest@live_gem_contexts.html

#### Possible fixes ####

* igt@gem_close_race@basic-threads:
- fi-byt-j1900: [TIMEOUT][13] ([fdo#112271] / [i915#1084] / [i915#816]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7899/fi-byt-j1900/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4119/fi-byt-j1900/igt@[email protected]

* igt@i915_selftest@live_blt:
- fi-bsw-nick: [INCOMPLETE][15] ([i915#392]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7899/fi-bsw-nick/igt@i915_selftest@live_blt.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4119/fi-bsw-nick/igt@i915_selftest@live_blt.html
- fi-ivb-3770: [DMESG-FAIL][17] ([i915#725]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7899/fi-ivb-3770/igt@i915_selftest@live_blt.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4119/fi-ivb-3770/igt@i915_selftest@live_blt.html

* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [FAIL][19] ([fdo#111407]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7899/fi-kbl-7500u/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4119/fi-kbl-7500u/igt@[email protected]

#### Warnings ####

* igt@gem_exec_parallel@contexts:
- fi-byt-j1900: [FAIL][21] ([i915#694]) -> [TIMEOUT][22] ([fdo#112271] / [i915#1084])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7899/fi-byt-j1900/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4119/fi-byt-j1900/igt@[email protected]

[fdo#106070]: https://bugs.freedesktop.org/show_bug.cgi?id=106070
[fdo#108569]: https://bugs.freedesktop.org/show_bug.cgi?id=108569
[fdo#111407]: https://bugs.freedesktop.org/show_bug.cgi?id=111407
[fdo#112271]: https://bugs.freedesktop.org/show_bug.cgi?id=112271
[i915#1084]: https://gitlab.freedesktop.org/drm/intel/issues/1084
[i915#392]: https://gitlab.freedesktop.org/drm/intel/issues/392
[i915#424]: https://gitlab.freedesktop.org/drm/intel/issues/424
[i915#45]: https://gitlab.freedesktop.org/drm/intel/issues/45
[i915#563]: https://gitlab.freedesktop.org/drm/intel/issues/563
[i915#69]: https://gitlab.freedesktop.org/drm/intel/issues/69
[i915#694]: https://gitlab.freedesktop.org/drm/intel/issues/694
[i915#725]: https://gitlab.freedesktop.org/drm/intel/issues/725
[i915#816]: https://gitlab.freedesktop.org/drm/intel/issues/816

Participating hosts (45 -> 47)
------------------------------

Additional (8): fi-tgl-dsi fi-bsw-n3050 fi-bwr-2160 fi-gdg-551 fi-bsw-kefka fi-kbl-7560u fi-skl-6600u fi-snb-2600
Missing (6): fi-ilk-m540 fi-byt-squawks fi-bsw-cyan fi-whl-u fi-byt-clapper fi-bdw-samus

Build changes
-------------

* CI: CI-20190529 -> None
* IGT: IGT_5432 -> IGTPW_4119

CI-20190529: 20190529
CI_DRM_7899: cf2d5e78e3f8cfe15f613b6181df7a6ab6238453 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_4119: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4119/index.html
IGT_5432: 6677811be6e9be9000b3217e8862353b3945a4f3 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4119/index.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

Reviewed-by on v1 1/1
#5 lore raw
In reply to Petri Latvala
Quoted 9 lines · Petri Latvala

If metadata.txt or other vital data files are missing from a results-directory, igt_resume silently exited. Print an error message to the user so it's somewhat clear why we didn't resume the execution.

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev