IGT cleanup
PATCH v3 1/1 IGT cleanup
Before starting the next subtest, clean up the states to default values, those are assumed by other tests.
v2: And also before running the subtest we need to sanitize the system state to default, since we can't trust the state of previous subtest, used igt_display_reset() to sanitize the state. (Bhanuprakash Modem)
Below tests are modified:
tests/kms_concurrent.c
tests/kms_sequence.c
--- tests/kms_concurrent.c | 5 ++++- tests/kms_sequence.c | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-)
tests/kms_concurrent.c +4 -1
@@ -82,7 +82,8 @@ static void test_fini(data_t *data, enum pipe pipe, int n_planes, }/* reset the constraint on the pipe */ -igt_output_set_pipe (output,PIPE_ANY ); +igt_output_set_pipe (output,PIPE_NONE ); +igt_display_commit2 (&data->display, data->display.is_atomic ?COMMIT_ATOMIC :COMMIT_LEGACY );free (data->plane); data->plane =NULL ;
@@ -375,10 +376,12 @@ igt_main_args("", long_options, help_str, opt_handler, NULL) data.drm_fd =drm_open_driver_master (DRIVER_ANY );kmstest_set_vt_graphics_mode ();igt_display_require (&data.display, data.drm_fd); +igt_display_reset (&data.display);igt_require (data.display.is_atomic); }for_each_pipe_static (pipe) { +igt_display_reset (&data.display);igt_subtest_group run_tests_for_pipe(&data, pipe); }
tests/kms_sequence.c +4 -2
@@ -109,8 +109,8 @@ static void cleanup_crtc(data_t *data, int fd, igt_output_t *output) primary =igt_output_get_plane_type (output,DRM_PLANE_TYPE_PRIMARY );igt_plane_set_fb (primary,NULL ); -igt_output_set_pipe (output,PIPE_ANY ); -igt_display_commit (display); +igt_output_set_pipe (output,PIPE_NONE ); +igt_display_commit2 (display, display->is_atomic ?COMMIT_ATOMIC :COMMIT_LEGACY ); }static int crtc_get_sequence (int fd,struct drm_crtc_get_sequence *cgs)
@@ -278,6 +278,7 @@ igt_main fd =drm_open_driver_master (DRIVER_ANY );kmstest_set_vt_graphics_mode ();igt_display_require (&data.display, fd); +igt_display_reset (&data.display); }for (f = funcs; f->name; f++) {
@@ -289,6 +290,7 @@ igt_main "drmCrtcQueueSequence"); igt_subtest_f("%s-%s", f->name, m->name) { data.flags = m->flags; +igt_display_reset (&data.display);run_test (&data, fd, f->func); } }
Signature · 1 line
2.26.2
Patchwork
CI[igt-dev] ✗ Fi.CI.BUILD: failure for IGT cleanup (rev3)
== Series Details ==
== Series Details ==
Series: IGT cleanup (rev3)
URL : https://patchwork.freedesktop.org/series/100801/
State : failure
== Summary ==
IGT patchset build failed on latest successful build 2372a4beb6a33c5f0799a4a8ccbb93794f52dbca tests/kms_plane_scaling: Add negative test to check num of scalers
292/324 testcase check amdgpu/amd_basic OK 0.19s 293/324 testcase check amdgpu/amd_bypass OK 0.18s 294/324 testcase check amdgpu/amd_color OK 0.18s 295/324 testcase check amdgpu/amd_cs_nop OK 0.17s 296/324 testcase check amdgpu/amd_hotplug OK 0.16s 297/324 testcase check amdgpu/amd_info OK 0.16s 298/324 testcase check amdgpu/amd_prime OK 0.15s 299/324 testcase check amdgpu/amd_module_load OK 0.15s 300/324 testcase check amdgpu/amd_mem_leak OK 0.14s 301/324 testcase check amdgpu/amd_max_bpc OK 0.15s 302/324 testcase check amdgpu/amd_link_settings OK 0.14s 303/324 testcase check amdgpu/amd_vrr_range OK 0.13s 304/324 testcase check amdgpu/amd_mode_switch OK 0.12s 305/324 testcase check amdgpu/amd_dp_dsc OK 0.12s 306/324 testcase check amdgpu/amd_psr OK 0.12s 307/324 testcase check amdgpu/amd_plane OK 0.12s 308/324 testcase check amdgpu/amd_ilr OK 0.11s 309/324 runner_json OK 0.08s 310/324 assembler test/mov OK 0.08s 311/324 assembler test/frc OK 0.08s 312/324 assembler test/regtype OK 0.07s 313/324 assembler test/rndd OK 0.06s 314/324 assembler test/rndu OK 0.06s 315/324 assembler test/rnde OK 0.06s 316/324 assembler test/rnde-intsrc OK 0.05s 317/324 assembler test/rndz OK 0.05s 318/324 assembler test/lzd OK 0.05s 319/324 assembler test/not OK 0.04s 320/324 assembler test/immediate OK 0.03s 321/324 lib igt_nesting OK 2.28s 322/324 lib igt_fork OK 2.76s 323/324 runner OK 4.67s 324/324 testcase check gem_concurrent_all OK 5.34s
Summary of Failures:
71/324 testcase check kms_concurrent FAIL 0.44s exit status 1
Ok: 320 Expected Fail: 3 Fail: 1 Unexpected Pass: 0 Skipped: 0 Timeout: 0
Full log written to /home/cidrm/igt-gpu-tools/build/meson-logs/testlog.txt
FAILED: meson-test/usr/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed.
Patchwork
CI[igt-dev] ✗ GitLab.Pipeline: warning for IGT cleanup (rev3)
In reply to Nidhi Gupta== Series Details ==
== Series Details ==
Series: IGT cleanup (rev3)
URL : https://patchwork.freedesktop.org/series/100801/
State : warning
== Summary ==
Pipeline status: FAILED.
see https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/pipelines/522559 for the overview.
test:ninja-test has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/19381022):
320/324 assembler test/rnde-intsrc OK 0.02 s 321/324 assembler test/rndz OK 0.01 s 322/324 assembler test/lzd OK 0.02 s 323/324 assembler test/not OK 0.02 s 324/324 assembler test/immediate OK 0.01 s
Ok: 320
Expected Fail: 3 Fail: 1 Unexpected Pass: 0 Skipped: 0 Timeout: 0
Full log written to /builds/gfx-ci/igt-ci-tags/build/meson-logs/testlog.txt section_end:1646280999:step_script section_start:1646280999:cleanup_file_variables
Cleaning up project directory and file based variables section_end:1646281000:cleanup_file_variables
ERROR: Job failed: exit code 1
test:ninja-test-arm64 has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/19381025):
Ok: 306
Expected Fail: 3 Fail: 1 Unexpected Pass: 0 Skipped: 0 Timeout: 0
Full log written to /builds/gfx-ci/igt-ci-tags/build/meson-logs/testlog.txt section_end:1646281067:step_script
section_start:1646281067:upload_artifacts_on_failure
Uploading artifacts for failed job
Uploading artifacts...
build: found 1694 matching files and directories
Uploading artifacts as "archive" to coordinator... 201 Created id=19381025 responseStatus=201 Created token=_Rho-Xyd section_end:1646281076:upload_artifacts_on_failure
section_start:1646281076:cleanup_file_variables
Cleaning up project directory and file based variables section_end:1646281076:cleanup_file_variables
ERROR: Job failed: exit code 1
test:ninja-test-armhf has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/19381026):
Ok: 306
Expected Fail: 3 Fail: 1 Unexpected Pass: 0 Skipped: 0 Timeout: 0
Full log written to /builds/gfx-ci/igt-ci-tags/build/meson-logs/testlog.txt section_end:1646281072:step_script
section_start:1646281072:upload_artifacts_on_failure
Uploading artifacts for failed job
Uploading artifacts...
build: found 1694 matching files and directories
Uploading artifacts as "archive" to coordinator... 201 Created id=19381026 responseStatus=201 Created token=gUsS_-tL section_end:1646281081:upload_artifacts_on_failure
section_start:1646281081:cleanup_file_variables
Cleaning up project directory and file based variables section_end:1646281082:cleanup_file_variables
ERROR: Job failed: exit code 1
test:ninja-test-clang has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/19381024):
320/324 assembler test/rnde-intsrc OK 0.02 s 321/324 assembler test/rndz OK 0.01 s 322/324 assembler test/lzd OK 0.02 s 323/324 assembler test/not OK 0.03 s 324/324 assembler test/immediate OK 0.03 s
Ok: 320
Expected Fail: 3 Fail: 1 Unexpected Pass: 0 Skipped: 0 Timeout: 0
Full log written to /builds/gfx-ci/igt-ci-tags/build/meson-logs/testlog.txt section_end:1646281030:step_script section_start:1646281030:cleanup_file_variables
Cleaning up project directory and file based variables section_end:1646281030:cleanup_file_variables
ERROR: Job failed: exit code 1
test:ninja-test-mips has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/19381027):
Ok: 306
Expected Fail: 3 Fail: 1 Unexpected Pass: 0 Skipped: 0 Timeout: 0
Full log written to /builds/gfx-ci/igt-ci-tags/build/meson-logs/testlog.txt section_end:1646281119:step_script
section_start:1646281119:upload_artifacts_on_failure
Uploading artifacts for failed job
Uploading artifacts...
build: found 1694 matching files and directories
Uploading artifacts as "archive" to coordinator... 201 Created id=19381027 responseStatus=201 Created token=SZ5GUuk8 section_end:1646281128:upload_artifacts_on_failure
section_start:1646281128:cleanup_file_variables
Cleaning up project directory and file based variables section_end:1646281129:cleanup_file_variables
ERROR: Job failed: exit code 1
== Logs ==
For more details see: https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/pipelines/522559