Improve IGT runner dry-run logic
cover Improve IGT runner dry-run logic
From: Mauro Carvalho Chehab <[email protected]>
The IGT dry-run logic is currently almost useless, as it doesn't produce any output with the planned jobs. It also currently requires root access, but this is not needed.
Mauro Carvalho Chehab (2):
igt_runner: don't require root for dry_run
igt_runner: output planned job_list tasks in dry-run mode
runner/executor.c | 6 ++++++ runner/settings.c | 1 + 2 files changed, 7 insertions(+)
Signature · 1 line
2.41.0
PATCH 1/2 igt_runner: don't require root for dry_run
From: Mauro Carvalho Chehab <[email protected]>
When --dry-run option is used, there's no need to require root, as no tests will actually be executed.
--- runner/settings.c | 1 + 1 file changed, 1 insertion(+)
runner/settings.c +1 -0
@@ -687,6 +687,7 @@ bool parse_options(int argc, char **argv,break ;case OPT_DRY_RUN : settings->dry_run = true; + settings->allow_non_root = true;break ;case OPT_ALLOW_NON_ROOT : settings->allow_non_root = true;
Signature · 1 line
2.41.0
Re: [igt-dev] [PATCH i-g-t 1/2] igt_runner: don't require root for dry_run
Hi Mauro,
Quoted 6 lines · Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <[email protected]>
When --dry-run option is used, there's no need to require root, as no tests will actually be executed.
Signed-off-by Mauro Carvalho Chehab <[email protected]>
LGTM,
Quoted 19 lines
--- runner/settings.c | 1 + 1 file changed, 1 insertion(+)runner/settings.c +1
-0@@ -687,6 +687,7 @@ bool parse_options(int argc, char **argv,break ;case OPT_DRY_RUN : settings->dry_run = true; + settings->allow_non_root = true;break ;case OPT_ALLOW_NON_ROOT : settings->allow_non_root = true;Signature · 1 line
2.41.0
PATCH 2/2 igt_runner: output planned job_list tasks in dry-run mode
In reply to Mauro Carvalho ChehabFrom: Mauro Carvalho Chehab <[email protected]>
If igt_runner is executed in dry-run mode, show what jobs were planned to be executed. That helps debugging issues at the runner job plan logic.
--- runner/executor.c | 6 ++++++ 1 file changed, 6 insertions(+)
runner/executor.c +6 -0
@@ -2287,6 +2287,12 @@ bool execute(struct execute_state *state,bool status = true;if (state->dry) { +for (; state->next < job_list->size; state->next++) { +char *job_name; + + job_name =entry_display_name (&job_list->entries[state->next]); +outf ("dry-run: %s\n" , job_name); + }outf ("Dry run, not executing. Invoke igt_resume if you want to execute.\n" );return true; }
Signature · 1 line
2.41.0
Re: [igt-dev] [PATCH i-g-t 2/2] igt_runner: output planned job_list tasks in dry-run mode
Hi Mauro,
Quoted 7 lines · Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <[email protected]>
If
igt_runneris executed in dry-run mode, show what jobs were planned to be executed. That helps debugging issues at the runner job plan logic.Signed-off-by Mauro Carvalho Chehab <[email protected]>
I will add Pteri on cc.
Regards,
Kamil
Quoted 24 lines
--- runner/executor.c | 6 ++++++ 1 file changed, 6 insertions(+)runner/executor.c +6
-0@@ -2287,6 +2287,12 @@ bool execute(struct execute_state *state,bool status = true;if (state->dry) { +for (; state->next < job_list->size; state->next++) { +char *job_name; + + job_name =entry_display_name (&job_list->entries[state->next]); +outf ("dry-run: %s\n" , job_name); + }outf ("Dry run, not executing. Invoke igt_resume if you want to execute.\n" );return true; }Signature · 1 line
2.41.0
Re: [igt-dev] [PATCH i-g-t 2/2] igt_runner: output planned job_list tasks in dry-run mode
In reply to Mauro Carvalho ChehabQuoted 5 lines · Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <[email protected]>
If
igt_runneris executed in dry-run mode, show what jobs were planned to be executed. That helps debugging issues at the runner job plan logic.
If you only need this for debugging, look at the job list file the dry run created.
Signature · 1 line
Petri Latvala
Quoted 26 lines
Signed-off-by Mauro Carvalho Chehab <[email protected]>--- runner/executor.c | 6 ++++++ 1 file changed, 6 insertions(+)runner/executor.c +6
-0@@ -2287,6 +2287,12 @@ bool execute(struct execute_state *state,bool status = true;if (state->dry) { +for (; state->next < job_list->size; state->next++) { +char *job_name; + + job_name =entry_display_name (&job_list->entries[state->next]); +outf ("dry-run: %s\n" , job_name); + }outf ("Dry run, not executing. Invoke igt_resume if you want to execute.\n" );return true; }Signature · 1 line
2.41.0
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for Improve IGT runner dry-run logic
In reply to Mauro Carvalho Chehab== Series Details ==
== Series Details ==
Series: Improve IGT runner dry-run logic
URL : https://patchwork.freedesktop.org/series/125391/
State : success
== Summary ==
CI Bug Log - changes from IGT_7551 -> IGTPW_10039
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10039/index.html
Participating hosts (36 -> 32)
------------------------------
Missing (4): fi-hsw-4770 bat-kbl-2 fi-bsw-n3050 bat-dg1-5
Known issues
------------
Here are the changes found in IGTPW_10039 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_pipe_crc_basic@suspend-read-crc:
- bat-dg2-9: NOTRUN -> [SKIP][1] ([i915#1845] / [i915#9197])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10039/bat-dg2-9/igt@[email protected]
#### Possible fixes ####
* igt@gem_exec_suspend@basic-s0@smem:
- bat-dg2-9: [INCOMPLETE][2] ([i915#9275]) -> [PASS][3]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7551/bat-dg2-9/igt@gem_exec_suspend@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10039/bat-dg2-9/igt@gem_exec_suspend@[email protected]
* igt@kms_pipe_crc_basic@read-crc-frame-sequence@pipe-d-edp-1:
- bat-rplp-1: [ABORT][4] ([i915#8668]) -> [PASS][5]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7551/bat-rplp-1/igt@kms_pipe_crc_basic@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10039/bat-rplp-1/igt@kms_pipe_crc_basic@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#7359]: https://gitlab.freedesktop.org/drm/intel/issues/7359
[i915#8668]: https://gitlab.freedesktop.org/drm/intel/issues/8668
[i915#8981]: https://gitlab.freedesktop.org/drm/intel/issues/8981
[i915#9197]: https://gitlab.freedesktop.org/drm/intel/issues/9197
[i915#9275]: https://gitlab.freedesktop.org/drm/intel/issues/9275
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_7551 -> IGTPW_10039
CI-20190529: 20190529
CI_DRM_13777: 1b4fd688d213556268c50f853746c94c9a0cfee7 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_10039: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10039/index.html
IGT_7551: 15e7d92ca5f98d10feffa27a76724c33cbd68da5 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Testlist changes
----------------
-igt@xe_mmap@cpu-caching-coh
-igt@xe_pat@pat-index-all
-igt@xe_pat@pat-index-common
-igt@xe_pat@pat-index-xe2
-igt@xe_pat@pat-index-xehpc
-igt@xe_pat@pat-index-xelp
-igt@xe_pat@pat-index-xelpg
-igt@xe_pat@userptr-coh-none
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10039/index.html
Patchwork
CI[igt-dev] ✗ CI.xeBAT: failure for Improve IGT runner dry-run logic
In reply to Mauro Carvalho Chehab== Series Details ==
== Series Details ==
Series: Improve IGT runner dry-run logic
URL : https://patchwork.freedesktop.org/series/125391/
State : failure
== Summary ==
CI Bug Log - changes from XEIGT_7551_BAT -> XEIGTPW_10039_BAT
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with XEIGTPW_10039_BAT absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in XEIGTPW_10039_BAT, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.
Participating hosts (4 -> 4)
------------------------------
No changes in participating hosts
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in XEIGTPW_10039_BAT:
### IGT changes ###
#### Possible regressions ####
* igt@kms_force_connector_basic@force-connector-state:
- bat-dg2-oem2: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7551/bat-dg2-oem2/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_10039/bat-dg2-oem2/igt@[email protected]
Known issues
------------
Here are the changes found in XEIGTPW_10039_BAT that come from known issues:
### IGT changes ###
#### Possible fixes ####
* igt@kms_flip@basic-flip-vs-wf_vblank@c-edp1:
- bat-adlp-7: [FAIL][3] ([Intel XE#480]) -> [PASS][4] +2 other tests pass
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7551/bat-adlp-7/igt@kms_flip@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_10039/bat-adlp-7/igt@kms_flip@[email protected]
* {igt@xe_create@create-execqueues-noleak}:
- bat-adlp-7: [FAIL][5] ([Intel XE#524]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7551/bat-adlp-7/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_10039/bat-adlp-7/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[Intel XE#480]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/480
[Intel XE#524]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/524
Build changes
-------------
* IGT: IGT_7551 -> IGTPW_10039
IGTPW_10039: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_10039/index.html
IGT_7551: 15e7d92ca5f98d10feffa27a76724c33cbd68da5 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
xe-442-a0a80950176b39dbc76f8faa92fddf6caaa06191: a0a80950176b39dbc76f8faa92fddf6caaa06191
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_10039/index.html