* [igt-dev] [PATCH i-g-t 1/4] lib: Export a function for loading igtrc
@ 2019-09-09 11:38 Petri Latvala
2019-09-09 11:38 ` [igt-dev] [PATCH i-g-t 2/4] runner: Add support for aborting on network failure Petri Latvala
` (7 more replies)
0 siblings, 8 replies; 15+ messages in thread
From: Petri Latvala @ 2019-09-09 11:38 UTC (permalink / raw)
To: igt-dev; +Cc: Petri Latvala
Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
---
lib/igt_core.c | 40 +++++++++++++++++++++++++++++++---------
lib/igt_core.h | 2 ++
2 files changed, 33 insertions(+), 9 deletions(-)
diff --git a/lib/igt_core.c b/lib/igt_core.c
index 1cbb09f9..940913c1 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -642,11 +642,21 @@ static void oom_adjust_for_doom(void)
}
-static void common_init_config(void)
+/**
+ * load_igtrc:
+ *
+ * Load .igtrc from the path pointed to by #IGT_CONFIG_PATH or from
+ * home directory if that is not set. The returned keyfile needs to be
+ * deallocated using g_key_file_free().
+ *
+ * Returns: Pointer to the keyfile, NULL on error.
+ */
+GKeyFile *igt_load_igtrc(void)
{
char *key_file_env = NULL;
char *key_file_loc = NULL;
GError *error = NULL;
+ GKeyFile *file;
int ret;
/* Determine igt config path */
@@ -659,19 +669,35 @@ static void common_init_config(void)
}
/* Load igt config file */
- igt_key_file = g_key_file_new();
- ret = g_key_file_load_from_file(igt_key_file, key_file_loc,
+ file = g_key_file_new();
+ ret = g_key_file_load_from_file(file, key_file_loc,
G_KEY_FILE_NONE, &error);
if (!ret) {
g_error_free(error);
- g_key_file_free(igt_key_file);
- igt_key_file = NULL;
+ g_key_file_free(file);
+ file = NULL;
goto out;
}
g_clear_error(&error);
+ out:
+ if (!key_file_env && key_file_loc)
+ free(key_file_loc);
+
+ return file;
+}
+
+static void common_init_config(void)
+{
+ GError *error = NULL;
+ int ret;
+
+ igt_key_file = igt_load_igtrc();
+ if (!igt_key_file)
+ return;
+
if (!igt_frame_dump_path)
igt_frame_dump_path =
g_key_file_get_string(igt_key_file, "Common",
@@ -687,10 +713,6 @@ static void common_init_config(void)
if (ret != 0)
igt_set_autoresume_delay(ret);
-
-out:
- if (!key_file_env && key_file_loc)
- free(key_file_loc);
}
static void common_init_env(void)
diff --git a/lib/igt_core.h b/lib/igt_core.h
index 177d2431..521cda10 100644
--- a/lib/igt_core.h
+++ b/lib/igt_core.h
@@ -83,6 +83,8 @@ extern const char* __igt_test_description __attribute__((weak));
extern bool __igt_plain_output;
extern char *igt_frame_dump_path;
+struct _GKeyFile *igt_load_igtrc(void);
+
/**
* IGT_TEST_DESCRIPTION:
* @str: description string
--
2.19.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [igt-dev] [PATCH i-g-t 2/4] runner: Add support for aborting on network failure
2019-09-09 11:38 [igt-dev] [PATCH i-g-t 1/4] lib: Export a function for loading igtrc Petri Latvala
@ 2019-09-09 11:38 ` Petri Latvala
2019-09-10 12:43 ` Arkadiusz Hiler
2019-09-09 11:38 ` [igt-dev] [PATCH i-g-t 3/4] HAX: Check all conditions to abort Petri Latvala
` (6 subsequent siblings)
7 siblings, 1 reply; 15+ messages in thread
From: Petri Latvala @ 2019-09-09 11:38 UTC (permalink / raw)
To: igt-dev; +Cc: Tomi Sarvela, Petri Latvala, Daniel Vetter
If the network goes down while testing, CI tends to interpret that as
the device being down, cutting its power after a while. This causes an
incomplete to an innocent test, increasing noise in the results.
A new flag to --abort-on-monitored-error, "ping", uses liboping to
ping a host configured in .igtrc with one ping after each test
execution and aborts the run if there is no reply in a hardcoded
amount of time.
v2:
- Use a higher timeout
- Allow hostname configuration from environment
v3:
- Use runner_c_args for holding c args for runner
- Handle runner's meson options in runner/meson.build
- Instead of one ping with 20 second timeout, ping with 1 second timeout
for a duration of 20 seconds
v4:
- Rebase
- Use now-exported igt_load_igtrc instead of copypaste code
- Use define for timeout, clearer var name for single attempt timeout
Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Cc: Martin Peres <martin.peres@linux.intel.com>
Cc: Tomi Sarvela <tomi.p.sarvela@intel.com>
Cc: Daniel Vetter <daniel@ffwll.ch>
---
meson_options.txt | 4 ++
runner/executor.c | 129 +++++++++++++++++++++++++++++++++++++++++++++
runner/meson.build | 14 ++++-
runner/settings.c | 4 ++
runner/settings.h | 5 +-
5 files changed, 153 insertions(+), 3 deletions(-)
diff --git a/meson_options.txt b/meson_options.txt
index 8e2e1cf0..ff3abf08 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -42,6 +42,10 @@ option('runner',
type : 'feature',
description : 'Build test runner')
+option('oping',
+ type : 'feature',
+ description : 'Build test runner with liboping for pinging support')
+
option('use_rpath',
type : 'boolean',
value : false,
diff --git a/runner/executor.c b/runner/executor.c
index 52fee7d1..6ac95663 100644
--- a/runner/executor.c
+++ b/runner/executor.c
@@ -1,6 +1,10 @@
#include <errno.h>
#include <fcntl.h>
+#include <glib.h>
#include <linux/watchdog.h>
+#if HAVE_OPING
+#include <oping.h>
+#endif
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
@@ -17,6 +21,7 @@
#include <time.h>
#include <unistd.h>
+#include "igt_aux.h"
#include "igt_core.h"
#include "executor.h"
#include "output_strings.h"
@@ -130,6 +135,129 @@ static void ping_watchdogs(void)
}
}
+#if HAVE_OPING
+static pingobj_t *pingobj = NULL;
+
+static bool load_ping_config_from_file(void)
+{
+ GError *error = NULL;
+ GKeyFile *key_file = NULL;
+ const char *ping_hostname;
+
+ /* Load igt config file */
+ key_file = igt_load_igtrc();
+ if (!key_file)
+ return false;
+
+ ping_hostname =
+ g_key_file_get_string(key_file, "DUT",
+ "PingHostName", &error);
+
+ g_clear_error(&error);
+ g_key_file_free(key_file);
+
+ if (!ping_hostname)
+ return false;
+
+ if (ping_host_add(pingobj, ping_hostname)) {
+ fprintf(stderr,
+ "abort on ping: Cannot use hostname from config file\n");
+ return false;
+ }
+
+ return true;
+}
+
+static bool load_ping_config_from_env(void)
+{
+ const char *ping_hostname;
+
+ ping_hostname = getenv("IGT_PING_HOSTNAME");
+ if (!ping_hostname)
+ return false;
+
+ if (ping_host_add(pingobj, ping_hostname)) {
+ fprintf(stderr,
+ "abort on ping: Cannot use hostname from environment\n");
+ return false;
+ }
+
+ return true;
+}
+
+/*
+ * On some hosts, getting network back up after suspend takes
+ * upwards of 10 seconds. 20 seconds should be enough to see
+ * if network comes back at all, and hopefully not too long to
+ * make external monitoring freak out.
+ */
+#define PING_ABORT_DEADLINE 20
+
+static bool can_ping(void)
+{
+ igt_until_timeout(PING_ABORT_DEADLINE) {
+ pingobj_iter_t *iter;
+
+ ping_send(pingobj);
+
+ for (iter = ping_iterator_get(pingobj);
+ iter != NULL;
+ iter = ping_iterator_next(iter)) {
+ double latency;
+ size_t len = sizeof(latency);
+
+ ping_iterator_get_info(iter,
+ PING_INFO_LATENCY,
+ &latency,
+ &len);
+ if (latency >= 0.0)
+ return true;
+ }
+ }
+
+ return false;
+}
+
+#endif
+
+static void ping_config(void)
+{
+#if HAVE_OPING
+ double single_attempt_timeout = 1.0;
+
+ if (pingobj)
+ return;
+
+ pingobj = ping_construct();
+
+ /* Try env first, then config file */
+ if (!load_ping_config_from_env() && !load_ping_config_from_file()) {
+ fprintf(stderr,
+ "abort on ping: No host to ping configured\n");
+ ping_destroy(pingobj);
+ pingobj = NULL;
+ return;
+ }
+
+ ping_setopt(pingobj, PING_OPT_TIMEOUT, &single_attempt_timeout);
+#endif
+}
+
+static char *handle_ping(void)
+{
+#if HAVE_OPING
+ if (pingobj && !can_ping()) {
+ char *reason;
+
+ asprintf(&reason,
+ "Ping host did not respond to ping, network down");
+ return reason;
+ }
+#endif
+
+ return NULL;
+}
+
static char *handle_lockdep(void)
{
const char *header = "Lockdep not active\n\n/proc/lockdep_stats contents:\n";
@@ -219,6 +347,7 @@ static const struct {
} abort_handlers[] = {
{ ABORT_LOCKDEP, handle_lockdep },
{ ABORT_TAINT, handle_taint },
+ { ABORT_PING, handle_ping },
{ 0, 0 },
};
diff --git a/runner/meson.build b/runner/meson.build
index 86521f94..6d8d3ab2 100644
--- a/runner/meson.build
+++ b/runner/meson.build
@@ -13,6 +13,14 @@ runner_test_sources = [ 'runner_tests.c' ]
runner_json_test_sources = [ 'runner_json_tests.c' ]
jsonc = dependency('json-c', required: build_runner)
+runner_deps = [jsonc, glib]
+runner_c_args = []
+
+liboping = dependency('liboping', required: get_option('oping'))
+if liboping.found()
+ runner_deps += liboping
+ runner_c_args += '-DHAVE_OPING=1'
+endif
if not build_tests and jsonc.found()
error('Building test runner requires building tests')
@@ -23,7 +31,8 @@ if jsonc.found()
runnerlib = static_library('igt_runner', runnerlib_sources,
include_directories : inc,
- dependencies : [jsonc, glib])
+ c_args : runner_c_args,
+ dependencies : runner_deps)
runner = executable('igt_runner', runner_sources,
link_with : runnerlib,
@@ -61,6 +70,9 @@ if jsonc.found()
test('runner_json', runner_json_test)
build_info += 'Build test runner: true'
+ if liboping.found()
+ build_info += 'Build test runner with oping: true'
+ endif
else
build_info += 'Build test runner: false'
endif
diff --git a/runner/settings.c b/runner/settings.c
index 8b39c063..d601cd11 100644
--- a/runner/settings.c
+++ b/runner/settings.c
@@ -51,6 +51,7 @@ static struct {
} abort_conditions[] = {
{ ABORT_TAINT, "taint" },
{ ABORT_LOCKDEP, "lockdep" },
+ { ABORT_PING, "ping" },
{ ABORT_ALL, "all" },
{ 0, 0 },
};
@@ -140,6 +141,9 @@ static const char *usage_str =
" Possible conditions:\n"
" lockdep - abort when kernel lockdep has been angered.\n"
" taint - abort when kernel becomes fatally tainted.\n"
+ " ping - abort when a host configured in .igtrc or\n"
+ " environment variable IGT_PING_HOSTNAME does\n"
+ " not respond to ping.\n"
" all - abort for all of the above.\n"
" -s, --sync Sync results to disk after every test\n"
" -l {quiet,verbose,dummy}, --log-level {quiet,verbose,dummy}\n"
diff --git a/runner/settings.h b/runner/settings.h
index 6dcfa8c5..13409f04 100644
--- a/runner/settings.h
+++ b/runner/settings.h
@@ -15,9 +15,10 @@ enum {
#define ABORT_TAINT (1 << 0)
#define ABORT_LOCKDEP (1 << 1)
-#define ABORT_ALL (ABORT_TAINT | ABORT_LOCKDEP)
+#define ABORT_PING (1 << 2)
+#define ABORT_ALL (ABORT_TAINT | ABORT_LOCKDEP | ABORT_PING)
-_Static_assert(ABORT_ALL == (ABORT_TAINT | ABORT_LOCKDEP), "ABORT_ALL must be all conditions bitwise or'd");
+_Static_assert(ABORT_ALL == (ABORT_TAINT | ABORT_LOCKDEP | ABORT_PING), "ABORT_ALL must be all conditions bitwise or'd");
struct regex_list {
char **regex_strings;
--
2.19.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [igt-dev] [PATCH i-g-t 3/4] HAX: Check all conditions to abort
2019-09-09 11:38 [igt-dev] [PATCH i-g-t 1/4] lib: Export a function for loading igtrc Petri Latvala
2019-09-09 11:38 ` [igt-dev] [PATCH i-g-t 2/4] runner: Add support for aborting on network failure Petri Latvala
@ 2019-09-09 11:38 ` Petri Latvala
2019-09-09 11:38 ` [igt-dev] [PATCH i-g-t 4/4] HAX: Print ping times to stderr Petri Latvala
` (5 subsequent siblings)
7 siblings, 0 replies; 15+ messages in thread
From: Petri Latvala @ 2019-09-09 11:38 UTC (permalink / raw)
To: igt-dev; +Cc: Petri Latvala
---
runner/executor.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/runner/executor.c b/runner/executor.c
index 6ac95663..5ed191f9 100644
--- a/runner/executor.c
+++ b/runner/executor.c
@@ -358,7 +358,7 @@ static char *need_to_abort(const struct settings* settings)
for (it = abort_handlers; it->condition; it++) {
char *abort;
- if (!(settings->abort_mask & it->condition))
+ if (false && !(settings->abort_mask & it->condition))
continue;
abort = it->handler();
@@ -1475,6 +1475,9 @@ bool execute(struct execute_state *state,
init_watchdogs(settings);
+ if (true || settings->abort_mask & ABORT_PING)
+ ping_config();
+
if (!uname(&unamebuf)) {
dprintf(unamefd, "%s %s %s %s %s\n",
unamebuf.sysname,
--
2.19.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [igt-dev] [PATCH i-g-t 4/4] HAX: Print ping times to stderr
2019-09-09 11:38 [igt-dev] [PATCH i-g-t 1/4] lib: Export a function for loading igtrc Petri Latvala
2019-09-09 11:38 ` [igt-dev] [PATCH i-g-t 2/4] runner: Add support for aborting on network failure Petri Latvala
2019-09-09 11:38 ` [igt-dev] [PATCH i-g-t 3/4] HAX: Check all conditions to abort Petri Latvala
@ 2019-09-09 11:38 ` Petri Latvala
2019-09-09 11:50 ` Petri Latvala
2019-09-09 12:12 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/4] lib: Export a function for loading igtrc Patchwork
` (4 subsequent siblings)
7 siblings, 1 reply; 15+ messages in thread
From: Petri Latvala @ 2019-09-09 11:38 UTC (permalink / raw)
To: igt-dev; +Cc: Petri Latvala
---
runner/executor.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/runner/executor.c b/runner/executor.c
index 5ed191f9..1d636884 100644
--- a/runner/executor.c
+++ b/runner/executor.c
@@ -210,8 +210,12 @@ static bool can_ping(void)
PING_INFO_LATENCY,
&latency,
&len);
- if (latency >= 0.0)
+ if (latency >= 0.0) {
+ fprintf(stderr,
+ "ping: Successful ping response in %f seconds\n",
+ latency);
return true;
+ }
}
}
--
2.19.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [igt-dev] [PATCH i-g-t 4/4] HAX: Print ping times to stderr
2019-09-09 11:38 ` [igt-dev] [PATCH i-g-t 4/4] HAX: Print ping times to stderr Petri Latvala
@ 2019-09-09 11:50 ` Petri Latvala
0 siblings, 0 replies; 15+ messages in thread
From: Petri Latvala @ 2019-09-09 11:50 UTC (permalink / raw)
To: igt-dev; +Cc: Petri Latvala
---
runner/executor.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/runner/executor.c b/runner/executor.c
index 5ed191f9..db300e89 100644
--- a/runner/executor.c
+++ b/runner/executor.c
@@ -210,8 +210,15 @@ static bool can_ping(void)
PING_INFO_LATENCY,
&latency,
&len);
- if (latency >= 0.0)
+ if (latency >= 0.0) {
+ fprintf(stderr,
+ "ping: Successful ping response in %f seconds\n",
+ latency);
return true;
+ } else {
+ fprintf(stderr,
+ "ping: No response...\n");
+ }
}
}
--
2.19.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/4] lib: Export a function for loading igtrc
2019-09-09 11:38 [igt-dev] [PATCH i-g-t 1/4] lib: Export a function for loading igtrc Petri Latvala
` (2 preceding siblings ...)
2019-09-09 11:38 ` [igt-dev] [PATCH i-g-t 4/4] HAX: Print ping times to stderr Petri Latvala
@ 2019-09-09 12:12 ` Patchwork
2019-09-09 12:29 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/4] lib: Export a function for loading igtrc (rev2) Patchwork
` (3 subsequent siblings)
7 siblings, 0 replies; 15+ messages in thread
From: Patchwork @ 2019-09-09 12:12 UTC (permalink / raw)
To: Petri Latvala; +Cc: igt-dev
== Series Details ==
Series: series starting with [i-g-t,1/4] lib: Export a function for loading igtrc
URL : https://patchwork.freedesktop.org/series/66428/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6853 -> IGTPW_3432
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/66428/revisions/1/mbox/
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_3432:
### IGT changes ###
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses.
They do not affect the overall result.
* igt@gem_exec_parallel@basic:
- {fi-tgl-u}: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/fi-tgl-u/igt@gem_exec_parallel@basic.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/fi-tgl-u/igt@gem_exec_parallel@basic.html
Known issues
------------
Here are the changes found in IGTPW_3432 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_selftest@live_execlists:
- fi-skl-gvtdvm: [PASS][3] -> [DMESG-FAIL][4] ([fdo#111108])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/fi-skl-gvtdvm/igt@i915_selftest@live_execlists.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/fi-skl-gvtdvm/igt@i915_selftest@live_execlists.html
* igt@kms_chamelium@dp-crc-fast:
- fi-kbl-7500u: [PASS][5] -> [FAIL][6] ([fdo#109483] / [fdo#109635 ])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/fi-kbl-7500u/igt@kms_chamelium@dp-crc-fast.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/fi-kbl-7500u/igt@kms_chamelium@dp-crc-fast.html
#### Possible fixes ####
* igt@prime_vgem@basic-fence-mmap:
- fi-icl-u3: [DMESG-WARN][7] ([fdo#107724]) -> [PASS][8] +1 similar issue
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/fi-icl-u3/igt@prime_vgem@basic-fence-mmap.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/fi-icl-u3/igt@prime_vgem@basic-fence-mmap.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#109483]: https://bugs.freedesktop.org/show_bug.cgi?id=109483
[fdo#109635 ]: https://bugs.freedesktop.org/show_bug.cgi?id=109635
[fdo#111108]: https://bugs.freedesktop.org/show_bug.cgi?id=111108
Participating hosts (53 -> 44)
------------------------------
Additional (1): fi-kbl-soraka
Missing (10): fi-icl-u4 fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-icl-u2 fi-bsw-cyan fi-icl-y fi-icl-guc fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_5176 -> IGTPW_3432
CI-20190529: 20190529
CI_DRM_6853: ad1a8a60aba111d2c186d19391d5a17bd09ab48b @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_3432: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/
IGT_5176: 0102dcf4e2e8b357b59173fe1ff78069148080c6 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 15+ messages in thread
* [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/4] lib: Export a function for loading igtrc (rev2)
2019-09-09 11:38 [igt-dev] [PATCH i-g-t 1/4] lib: Export a function for loading igtrc Petri Latvala
` (3 preceding siblings ...)
2019-09-09 12:12 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/4] lib: Export a function for loading igtrc Patchwork
@ 2019-09-09 12:29 ` Patchwork
2019-09-09 17:40 ` [igt-dev] ✓ Fi.CI.IGT: success for series starting with [i-g-t,1/4] lib: Export a function for loading igtrc Patchwork
` (2 subsequent siblings)
7 siblings, 0 replies; 15+ messages in thread
From: Patchwork @ 2019-09-09 12:29 UTC (permalink / raw)
To: Petri Latvala; +Cc: igt-dev
== Series Details ==
Series: series starting with [i-g-t,1/4] lib: Export a function for loading igtrc (rev2)
URL : https://patchwork.freedesktop.org/series/66428/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6853 -> IGTPW_3433
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/66428/revisions/2/mbox/
Known issues
------------
Here are the changes found in IGTPW_3433 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_create@basic-files:
- fi-apl-guc: [PASS][1] -> [INCOMPLETE][2] ([fdo#103927])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/fi-apl-guc/igt@gem_ctx_create@basic-files.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/fi-apl-guc/igt@gem_ctx_create@basic-files.html
* igt@i915_selftest@live_gem_contexts:
- fi-kbl-7500u: [PASS][3] -> [INCOMPLETE][4] ([fdo#111519])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/fi-kbl-7500u/igt@i915_selftest@live_gem_contexts.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/fi-kbl-7500u/igt@i915_selftest@live_gem_contexts.html
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-icl-u2: [PASS][5] -> [FAIL][6] ([fdo#109483])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/fi-icl-u2/igt@kms_chamelium@hdmi-hpd-fast.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/fi-icl-u2/igt@kms_chamelium@hdmi-hpd-fast.html
* igt@kms_frontbuffer_tracking@basic:
- fi-hsw-peppy: [PASS][7] -> [DMESG-WARN][8] ([fdo#102614])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/fi-hsw-peppy/igt@kms_frontbuffer_tracking@basic.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/fi-hsw-peppy/igt@kms_frontbuffer_tracking@basic.html
[fdo#102614]: https://bugs.freedesktop.org/show_bug.cgi?id=102614
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#109483]: https://bugs.freedesktop.org/show_bug.cgi?id=109483
[fdo#111519]: https://bugs.freedesktop.org/show_bug.cgi?id=111519
Participating hosts (53 -> 44)
------------------------------
Additional (1): fi-kbl-soraka
Missing (10): fi-ilk-m540 fi-tgl-u fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-icl-u3 fi-pnv-d510 fi-icl-y fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_5176 -> IGTPW_3433
CI-20190529: 20190529
CI_DRM_6853: ad1a8a60aba111d2c186d19391d5a17bd09ab48b @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_3433: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/
IGT_5176: 0102dcf4e2e8b357b59173fe1ff78069148080c6 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 15+ messages in thread
* [igt-dev] ✓ Fi.CI.IGT: success for series starting with [i-g-t,1/4] lib: Export a function for loading igtrc
2019-09-09 11:38 [igt-dev] [PATCH i-g-t 1/4] lib: Export a function for loading igtrc Petri Latvala
` (4 preceding siblings ...)
2019-09-09 12:29 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/4] lib: Export a function for loading igtrc (rev2) Patchwork
@ 2019-09-09 17:40 ` Patchwork
2019-09-09 18:31 ` [igt-dev] ✓ Fi.CI.IGT: success for series starting with [i-g-t,1/4] lib: Export a function for loading igtrc (rev2) Patchwork
2019-09-10 12:41 ` [igt-dev] [PATCH i-g-t 1/4] lib: Export a function for loading igtrc Arkadiusz Hiler
7 siblings, 0 replies; 15+ messages in thread
From: Patchwork @ 2019-09-09 17:40 UTC (permalink / raw)
To: Petri Latvala; +Cc: igt-dev
== Series Details ==
Series: series starting with [i-g-t,1/4] lib: Export a function for loading igtrc
URL : https://patchwork.freedesktop.org/series/66428/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6853_full -> IGTPW_3432_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/66428/revisions/1/mbox/
Known issues
------------
Here are the changes found in IGTPW_3432_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_schedule@independent-bsd:
- shard-iclb: [PASS][1] -> [SKIP][2] ([fdo#111325]) +2 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb6/igt@gem_exec_schedule@independent-bsd.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-iclb2/igt@gem_exec_schedule@independent-bsd.html
* igt@gem_exec_schedule@preempt-other-bsd1:
- shard-iclb: [PASS][3] -> [SKIP][4] ([fdo#109276]) +12 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb1/igt@gem_exec_schedule@preempt-other-bsd1.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-iclb3/igt@gem_exec_schedule@preempt-other-bsd1.html
* igt@i915_pm_rpm@system-suspend:
- shard-kbl: [PASS][5] -> [INCOMPLETE][6] ([fdo#103665] / [fdo#107807])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-kbl6/igt@i915_pm_rpm@system-suspend.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-kbl6/igt@i915_pm_rpm@system-suspend.html
* igt@i915_selftest@live_hangcheck:
- shard-iclb: [PASS][7] -> [INCOMPLETE][8] ([fdo#107713] / [fdo#108569])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb1/igt@i915_selftest@live_hangcheck.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-iclb2/igt@i915_selftest@live_hangcheck.html
* igt@i915_suspend@fence-restore-tiled2untiled:
- shard-apl: [PASS][9] -> [DMESG-WARN][10] ([fdo#108566]) +7 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-apl6/igt@i915_suspend@fence-restore-tiled2untiled.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-apl6/igt@i915_suspend@fence-restore-tiled2untiled.html
* igt@kms_draw_crc@draw-method-xrgb8888-render-xtiled:
- shard-iclb: [PASS][11] -> [FAIL][12] ([fdo#103184] / [fdo#103232])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb4/igt@kms_draw_crc@draw-method-xrgb8888-render-xtiled.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-iclb7/igt@kms_draw_crc@draw-method-xrgb8888-render-xtiled.html
* igt@kms_flip@flip-vs-expired-vblank-interruptible:
- shard-glk: [PASS][13] -> [FAIL][14] ([fdo#105363])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-glk2/igt@kms_flip@flip-vs-expired-vblank-interruptible.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-glk8/igt@kms_flip@flip-vs-expired-vblank-interruptible.html
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-shrfb-msflip-blt:
- shard-iclb: [PASS][15] -> [FAIL][16] ([fdo#103167]) +2 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb5/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-shrfb-msflip-blt.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-iclb1/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-shrfb-msflip-blt.html
* igt@kms_plane_lowres@pipe-a-tiling-x:
- shard-iclb: [PASS][17] -> [FAIL][18] ([fdo#103166])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb2/igt@kms_plane_lowres@pipe-a-tiling-x.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-iclb8/igt@kms_plane_lowres@pipe-a-tiling-x.html
* igt@kms_vblank@pipe-a-query-idle-hang:
- shard-hsw: [PASS][19] -> [INCOMPLETE][20] ([fdo#103540])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-hsw2/igt@kms_vblank@pipe-a-query-idle-hang.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-hsw8/igt@kms_vblank@pipe-a-query-idle-hang.html
* igt@perf_pmu@rc6-runtime-pm:
- shard-glk: [PASS][21] -> [FAIL][22] ([fdo#105010])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-glk2/igt@perf_pmu@rc6-runtime-pm.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-glk4/igt@perf_pmu@rc6-runtime-pm.html
- shard-apl: [PASS][23] -> [FAIL][24] ([fdo#105010])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-apl7/igt@perf_pmu@rc6-runtime-pm.html
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-apl4/igt@perf_pmu@rc6-runtime-pm.html
- shard-kbl: [PASS][25] -> [FAIL][26] ([fdo#105010])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-kbl2/igt@perf_pmu@rc6-runtime-pm.html
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-kbl4/igt@perf_pmu@rc6-runtime-pm.html
- shard-iclb: [PASS][27] -> [FAIL][28] ([fdo#105010])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb6/igt@perf_pmu@rc6-runtime-pm.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-iclb5/igt@perf_pmu@rc6-runtime-pm.html
- shard-hsw: [PASS][29] -> [FAIL][30] ([fdo#105010])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-hsw5/igt@perf_pmu@rc6-runtime-pm.html
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-hsw1/igt@perf_pmu@rc6-runtime-pm.html
#### Possible fixes ####
* igt@gem_exec_schedule@preempt-other-chain-bsd:
- shard-iclb: [SKIP][31] ([fdo#111325]) -> [PASS][32] +4 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb1/igt@gem_exec_schedule@preempt-other-chain-bsd.html
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-iclb7/igt@gem_exec_schedule@preempt-other-chain-bsd.html
* igt@gem_partial_pwrite_pread@write-display:
- shard-iclb: [INCOMPLETE][33] ([fdo#107713] / [fdo#109100]) -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb7/igt@gem_partial_pwrite_pread@write-display.html
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-iclb2/igt@gem_partial_pwrite_pread@write-display.html
* igt@gem_softpin@noreloc-s3:
- shard-kbl: [INCOMPLETE][35] ([fdo#103665]) -> [PASS][36]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-kbl1/igt@gem_softpin@noreloc-s3.html
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-kbl2/igt@gem_softpin@noreloc-s3.html
* igt@i915_suspend@debugfs-reader:
- shard-apl: [DMESG-WARN][37] ([fdo#108566]) -> [PASS][38] +2 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-apl4/igt@i915_suspend@debugfs-reader.html
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-apl6/igt@i915_suspend@debugfs-reader.html
* igt@i915_suspend@sysfs-reader:
- shard-iclb: [INCOMPLETE][39] ([fdo#107713]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb7/igt@i915_suspend@sysfs-reader.html
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-iclb8/igt@i915_suspend@sysfs-reader.html
* igt@kms_cursor_crc@pipe-c-cursor-128x42-sliding:
- shard-apl: [FAIL][41] ([fdo#103232]) -> [PASS][42]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-apl5/igt@kms_cursor_crc@pipe-c-cursor-128x42-sliding.html
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-apl3/igt@kms_cursor_crc@pipe-c-cursor-128x42-sliding.html
- shard-kbl: [FAIL][43] ([fdo#103232]) -> [PASS][44]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-kbl1/igt@kms_cursor_crc@pipe-c-cursor-128x42-sliding.html
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-kbl6/igt@kms_cursor_crc@pipe-c-cursor-128x42-sliding.html
* igt@kms_cursor_crc@pipe-c-cursor-256x85-offscreen:
- shard-apl: [INCOMPLETE][45] ([fdo#103927]) -> [PASS][46] +3 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-apl5/igt@kms_cursor_crc@pipe-c-cursor-256x85-offscreen.html
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-apl5/igt@kms_cursor_crc@pipe-c-cursor-256x85-offscreen.html
* igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite:
- shard-iclb: [FAIL][47] ([fdo#103167]) -> [PASS][48] +5 similar issues
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb8/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite.html
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-iclb4/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite.html
* igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-pwrite:
- shard-iclb: [INCOMPLETE][49] ([fdo#106978] / [fdo#107713]) -> [PASS][50]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb1/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-pwrite.html
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-iclb3/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-pwrite.html
* igt@kms_psr@psr2_cursor_plane_onoff:
- shard-iclb: [SKIP][51] ([fdo#109441]) -> [PASS][52] +1 similar issue
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb6/igt@kms_psr@psr2_cursor_plane_onoff.html
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-iclb2/igt@kms_psr@psr2_cursor_plane_onoff.html
* igt@kms_setmode@basic:
- shard-apl: [FAIL][53] ([fdo#99912]) -> [PASS][54]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-apl8/igt@kms_setmode@basic.html
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-apl5/igt@kms_setmode@basic.html
* igt@prime_busy@hang-bsd2:
- shard-iclb: [SKIP][55] ([fdo#109276]) -> [PASS][56] +16 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb6/igt@prime_busy@hang-bsd2.html
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-iclb1/igt@prime_busy@hang-bsd2.html
#### Warnings ####
* igt@gem_ctx_isolation@vcs1-nonpriv:
- shard-iclb: [FAIL][57] ([fdo#111329]) -> [SKIP][58] ([fdo#109276])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb2/igt@gem_ctx_isolation@vcs1-nonpriv.html
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-iclb3/igt@gem_ctx_isolation@vcs1-nonpriv.html
* igt@gem_mocs_settings@mocs-rc6-bsd2:
- shard-iclb: [FAIL][59] ([fdo#111330]) -> [SKIP][60] ([fdo#109276])
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb2/igt@gem_mocs_settings@mocs-rc6-bsd2.html
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-iclb3/igt@gem_mocs_settings@mocs-rc6-bsd2.html
* igt@gem_mocs_settings@mocs-settings-bsd2:
- shard-iclb: [SKIP][61] ([fdo#109276]) -> [FAIL][62] ([fdo#111330])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb5/igt@gem_mocs_settings@mocs-settings-bsd2.html
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/shard-iclb4/igt@gem_mocs_settings@mocs-settings-bsd2.html
[fdo#103166]: https://bugs.freedesktop.org/show_bug.cgi?id=103166
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103184]: https://bugs.freedesktop.org/show_bug.cgi?id=103184
[fdo#103232]: https://bugs.freedesktop.org/show_bug.cgi?id=103232
[fdo#103540]: https://bugs.freedesktop.org/show_bug.cgi?id=103540
[fdo#103665]: https://bugs.freedesktop.org/show_bug.cgi?id=103665
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#105010]: https://bugs.freedesktop.org/show_bug.cgi?id=105010
[fdo#105363]: https://bugs.freedesktop.org/show_bug.cgi?id=105363
[fdo#106978]: https://bugs.freedesktop.org/show_bug.cgi?id=106978
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107807]: https://bugs.freedesktop.org/show_bug.cgi?id=107807
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#108569]: https://bugs.freedesktop.org/show_bug.cgi?id=108569
[fdo#109100]: https://bugs.freedesktop.org/show_bug.cgi?id=109100
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#111325]: https://bugs.freedesktop.org/show_bug.cgi?id=111325
[fdo#111329]: https://bugs.freedesktop.org/show_bug.cgi?id=111329
[fdo#111330]: https://bugs.freedesktop.org/show_bug.cgi?id=111330
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912
Participating hosts (10 -> 6)
------------------------------
Missing (4): pig-skl-6260u shard-skl pig-hsw-4770r pig-glk-j5005
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_5176 -> IGTPW_3432
* Piglit: piglit_4509 -> None
CI-20190529: 20190529
CI_DRM_6853: ad1a8a60aba111d2c186d19391d5a17bd09ab48b @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_3432: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/
IGT_5176: 0102dcf4e2e8b357b59173fe1ff78069148080c6 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3432/
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 15+ messages in thread
* [igt-dev] ✓ Fi.CI.IGT: success for series starting with [i-g-t,1/4] lib: Export a function for loading igtrc (rev2)
2019-09-09 11:38 [igt-dev] [PATCH i-g-t 1/4] lib: Export a function for loading igtrc Petri Latvala
` (5 preceding siblings ...)
2019-09-09 17:40 ` [igt-dev] ✓ Fi.CI.IGT: success for series starting with [i-g-t,1/4] lib: Export a function for loading igtrc Patchwork
@ 2019-09-09 18:31 ` Patchwork
2019-09-10 12:41 ` [igt-dev] [PATCH i-g-t 1/4] lib: Export a function for loading igtrc Arkadiusz Hiler
7 siblings, 0 replies; 15+ messages in thread
From: Patchwork @ 2019-09-09 18:31 UTC (permalink / raw)
To: Petri Latvala; +Cc: igt-dev
== Series Details ==
Series: series starting with [i-g-t,1/4] lib: Export a function for loading igtrc (rev2)
URL : https://patchwork.freedesktop.org/series/66428/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6853_full -> IGTPW_3433_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/66428/revisions/2/mbox/
Known issues
------------
Here are the changes found in IGTPW_3433_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_schedule@preempt-other-bsd1:
- shard-iclb: [PASS][1] -> [SKIP][2] ([fdo#109276]) +10 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb1/igt@gem_exec_schedule@preempt-other-bsd1.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/shard-iclb7/igt@gem_exec_schedule@preempt-other-bsd1.html
* igt@gem_exec_schedule@promotion-bsd:
- shard-iclb: [PASS][3] -> [SKIP][4] ([fdo#111325]) +5 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb5/igt@gem_exec_schedule@promotion-bsd.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/shard-iclb4/igt@gem_exec_schedule@promotion-bsd.html
* igt@i915_pm_rc6_residency@rc6-accuracy:
- shard-kbl: [PASS][5] -> [SKIP][6] ([fdo#109271])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-kbl4/igt@i915_pm_rc6_residency@rc6-accuracy.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/shard-kbl2/igt@i915_pm_rc6_residency@rc6-accuracy.html
* igt@kms_flip@flip-vs-expired-vblank-interruptible:
- shard-glk: [PASS][7] -> [FAIL][8] ([fdo#105363])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-glk2/igt@kms_flip@flip-vs-expired-vblank-interruptible.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/shard-glk1/igt@kms_flip@flip-vs-expired-vblank-interruptible.html
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-blt:
- shard-iclb: [PASS][9] -> [FAIL][10] ([fdo#103167]) +2 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb4/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-blt.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/shard-iclb1/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-blt.html
* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-planes:
- shard-apl: [PASS][11] -> [DMESG-WARN][12] ([fdo#108566]) +3 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-apl7/igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-planes.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/shard-apl2/igt@kms_plane@plane-panning-bottom-right-suspend-pipe-b-planes.html
#### Possible fixes ####
* igt@gem_ctx_switch@legacy-bsd2-heavy:
- shard-iclb: [SKIP][13] ([fdo#109276]) -> [PASS][14] +13 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb8/igt@gem_ctx_switch@legacy-bsd2-heavy.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/shard-iclb2/igt@gem_ctx_switch@legacy-bsd2-heavy.html
* igt@gem_exec_balancer@smoke:
- shard-iclb: [SKIP][15] ([fdo#110854]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb5/igt@gem_exec_balancer@smoke.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/shard-iclb4/igt@gem_exec_balancer@smoke.html
* igt@gem_exec_schedule@preempt-other-chain-bsd:
- shard-iclb: [SKIP][17] ([fdo#111325]) -> [PASS][18] +4 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb1/igt@gem_exec_schedule@preempt-other-chain-bsd.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/shard-iclb3/igt@gem_exec_schedule@preempt-other-chain-bsd.html
* igt@gem_partial_pwrite_pread@write-display:
- shard-iclb: [INCOMPLETE][19] ([fdo#107713] / [fdo#109100]) -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb7/igt@gem_partial_pwrite_pread@write-display.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/shard-iclb8/igt@gem_partial_pwrite_pread@write-display.html
* igt@gem_softpin@noreloc-s3:
- shard-kbl: [INCOMPLETE][21] ([fdo#103665]) -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-kbl1/igt@gem_softpin@noreloc-s3.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/shard-kbl6/igt@gem_softpin@noreloc-s3.html
* igt@i915_suspend@debugfs-reader:
- shard-apl: [DMESG-WARN][23] ([fdo#108566]) -> [PASS][24] +1 similar issue
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-apl4/igt@i915_suspend@debugfs-reader.html
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/shard-apl3/igt@i915_suspend@debugfs-reader.html
* igt@i915_suspend@sysfs-reader:
- shard-iclb: [INCOMPLETE][25] ([fdo#107713]) -> [PASS][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb7/igt@i915_suspend@sysfs-reader.html
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/shard-iclb7/igt@i915_suspend@sysfs-reader.html
* igt@kms_cursor_crc@pipe-c-cursor-128x42-sliding:
- shard-apl: [FAIL][27] ([fdo#103232]) -> [PASS][28]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-apl5/igt@kms_cursor_crc@pipe-c-cursor-128x42-sliding.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/shard-apl3/igt@kms_cursor_crc@pipe-c-cursor-128x42-sliding.html
- shard-kbl: [FAIL][29] ([fdo#103232]) -> [PASS][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-kbl1/igt@kms_cursor_crc@pipe-c-cursor-128x42-sliding.html
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/shard-kbl1/igt@kms_cursor_crc@pipe-c-cursor-128x42-sliding.html
* igt@kms_cursor_crc@pipe-c-cursor-256x85-offscreen:
- shard-apl: [INCOMPLETE][31] ([fdo#103927]) -> [PASS][32] +3 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-apl5/igt@kms_cursor_crc@pipe-c-cursor-256x85-offscreen.html
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/shard-apl8/igt@kms_cursor_crc@pipe-c-cursor-256x85-offscreen.html
* igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite:
- shard-iclb: [FAIL][33] ([fdo#103167]) -> [PASS][34] +4 similar issues
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb8/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite.html
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/shard-iclb4/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite.html
* igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-pwrite:
- shard-iclb: [INCOMPLETE][35] ([fdo#106978] / [fdo#107713]) -> [PASS][36]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb1/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-pwrite.html
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/shard-iclb5/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-pwrite.html
* igt@kms_psr@psr2_basic:
- shard-iclb: [SKIP][37] ([fdo#109441]) -> [PASS][38] +1 similar issue
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb1/igt@kms_psr@psr2_basic.html
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/shard-iclb2/igt@kms_psr@psr2_basic.html
* igt@kms_setmode@basic:
- shard-glk: [FAIL][39] ([fdo#99912]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-glk4/igt@kms_setmode@basic.html
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/shard-glk2/igt@kms_setmode@basic.html
- shard-hsw: [FAIL][41] ([fdo#99912]) -> [PASS][42]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-hsw5/igt@kms_setmode@basic.html
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/shard-hsw1/igt@kms_setmode@basic.html
#### Warnings ####
* igt@gem_ctx_isolation@vcs1-nonpriv:
- shard-iclb: [FAIL][43] ([fdo#111329]) -> [SKIP][44] ([fdo#109276])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb2/igt@gem_ctx_isolation@vcs1-nonpriv.html
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/shard-iclb8/igt@gem_ctx_isolation@vcs1-nonpriv.html
* igt@gem_mocs_settings@mocs-rc6-bsd2:
- shard-iclb: [FAIL][45] ([fdo#111330]) -> [SKIP][46] ([fdo#109276])
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb2/igt@gem_mocs_settings@mocs-rc6-bsd2.html
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/shard-iclb3/igt@gem_mocs_settings@mocs-rc6-bsd2.html
* igt@gem_mocs_settings@mocs-settings-bsd2:
- shard-iclb: [SKIP][47] ([fdo#109276]) -> [FAIL][48] ([fdo#111330])
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6853/shard-iclb5/igt@gem_mocs_settings@mocs-settings-bsd2.html
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/shard-iclb2/igt@gem_mocs_settings@mocs-settings-bsd2.html
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103232]: https://bugs.freedesktop.org/show_bug.cgi?id=103232
[fdo#103665]: https://bugs.freedesktop.org/show_bug.cgi?id=103665
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#105363]: https://bugs.freedesktop.org/show_bug.cgi?id=105363
[fdo#106978]: https://bugs.freedesktop.org/show_bug.cgi?id=106978
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#109100]: https://bugs.freedesktop.org/show_bug.cgi?id=109100
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#110854]: https://bugs.freedesktop.org/show_bug.cgi?id=110854
[fdo#111325]: https://bugs.freedesktop.org/show_bug.cgi?id=111325
[fdo#111329]: https://bugs.freedesktop.org/show_bug.cgi?id=111329
[fdo#111330]: https://bugs.freedesktop.org/show_bug.cgi?id=111330
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912
Participating hosts (10 -> 6)
------------------------------
Missing (4): pig-skl-6260u shard-skl pig-hsw-4770r pig-glk-j5005
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_5176 -> IGTPW_3433
* Piglit: piglit_4509 -> None
CI-20190529: 20190529
CI_DRM_6853: ad1a8a60aba111d2c186d19391d5a17bd09ab48b @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_3433: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/
IGT_5176: 0102dcf4e2e8b357b59173fe1ff78069148080c6 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3433/
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [igt-dev] [PATCH i-g-t 1/4] lib: Export a function for loading igtrc
2019-09-09 11:38 [igt-dev] [PATCH i-g-t 1/4] lib: Export a function for loading igtrc Petri Latvala
` (6 preceding siblings ...)
2019-09-09 18:31 ` [igt-dev] ✓ Fi.CI.IGT: success for series starting with [i-g-t,1/4] lib: Export a function for loading igtrc (rev2) Patchwork
@ 2019-09-10 12:41 ` Arkadiusz Hiler
2019-09-13 9:26 ` Petri Latvala
7 siblings, 1 reply; 15+ messages in thread
From: Arkadiusz Hiler @ 2019-09-10 12:41 UTC (permalink / raw)
To: Petri Latvala; +Cc: igt-dev
On Mon, Sep 09, 2019 at 02:38:06PM +0300, Petri Latvala wrote:
> Signed-off-by: Petri Latvala <petri.latvala@intel.com>
> Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
> ---
> lib/igt_core.c | 40 +++++++++++++++++++++++++++++++---------
> lib/igt_core.h | 2 ++
> 2 files changed, 33 insertions(+), 9 deletions(-)
>
> diff --git a/lib/igt_core.c b/lib/igt_core.c
> index 1cbb09f9..940913c1 100644
> --- a/lib/igt_core.c
> +++ b/lib/igt_core.c
> @@ -642,11 +642,21 @@ static void oom_adjust_for_doom(void)
>
> }
>
> -static void common_init_config(void)
> +/**
> + * load_igtrc:
> + *
> + * Load .igtrc from the path pointed to by #IGT_CONFIG_PATH or from
> + * home directory if that is not set. The returned keyfile needs to be
> + * deallocated using g_key_file_free().
> + *
> + * Returns: Pointer to the keyfile, NULL on error.
> + */
> +GKeyFile *igt_load_igtrc(void)
> {
> char *key_file_env = NULL;
> char *key_file_loc = NULL;
> GError *error = NULL;
> + GKeyFile *file;
> int ret;
>
> /* Determine igt config path */
> @@ -659,19 +669,35 @@ static void common_init_config(void)
> }
>
> /* Load igt config file */
> - igt_key_file = g_key_file_new();
> - ret = g_key_file_load_from_file(igt_key_file, key_file_loc,
> + file = g_key_file_new();
> + ret = g_key_file_load_from_file(file, key_file_loc,
> G_KEY_FILE_NONE, &error);
> if (!ret) {
> g_error_free(error);
> - g_key_file_free(igt_key_file);
> - igt_key_file = NULL;
> + g_key_file_free(file);
> + file = NULL;
>
> goto out;
> }
>
> g_clear_error(&error);
>
> + out:
> + if (!key_file_env && key_file_loc)
> + free(key_file_loc);
> +
> + return file;
> +}
> +
> +static void common_init_config(void)
> +{
> + GError *error = NULL;
> + int ret;
> +
> + igt_key_file = igt_load_igtrc();
> + if (!igt_key_file)
> + return;
> +
> if (!igt_frame_dump_path)
> igt_frame_dump_path =
> g_key_file_get_string(igt_key_file, "Common",
> @@ -687,10 +713,6 @@ static void common_init_config(void)
>
> if (ret != 0)
> igt_set_autoresume_delay(ret);
> -
> -out:
> - if (!key_file_env && key_file_loc)
> - free(key_file_loc);
> }
>
> static void common_init_env(void)
> diff --git a/lib/igt_core.h b/lib/igt_core.h
> index 177d2431..521cda10 100644
> --- a/lib/igt_core.h
> +++ b/lib/igt_core.h
> @@ -83,6 +83,8 @@ extern const char* __igt_test_description __attribute__((weak));
> extern bool __igt_plain_output;
> extern char *igt_frame_dump_path;
>
> +struct _GKeyFile *igt_load_igtrc(void);
Why not GKeyFile *...?
> +
> /**
> * IGT_TEST_DESCRIPTION:
> * @str: description string
> --
> 2.19.1
>
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [igt-dev] [PATCH i-g-t 2/4] runner: Add support for aborting on network failure
2019-09-09 11:38 ` [igt-dev] [PATCH i-g-t 2/4] runner: Add support for aborting on network failure Petri Latvala
@ 2019-09-10 12:43 ` Arkadiusz Hiler
0 siblings, 0 replies; 15+ messages in thread
From: Arkadiusz Hiler @ 2019-09-10 12:43 UTC (permalink / raw)
To: Petri Latvala; +Cc: igt-dev, Tomi Sarvela, Daniel Vetter
On Mon, Sep 09, 2019 at 02:38:07PM +0300, Petri Latvala wrote:
> If the network goes down while testing, CI tends to interpret that as
> the device being down, cutting its power after a while. This causes an
> incomplete to an innocent test, increasing noise in the results.
>
> A new flag to --abort-on-monitored-error, "ping", uses liboping to
> ping a host configured in .igtrc with one ping after each test
> execution and aborts the run if there is no reply in a hardcoded
> amount of time.
>
> v2:
> - Use a higher timeout
> - Allow hostname configuration from environment
> v3:
> - Use runner_c_args for holding c args for runner
> - Handle runner's meson options in runner/meson.build
> - Instead of one ping with 20 second timeout, ping with 1 second timeout
> for a duration of 20 seconds
> v4:
> - Rebase
> - Use now-exported igt_load_igtrc instead of copypaste code
> - Use define for timeout, clearer var name for single attempt timeout
>
> Signed-off-by: Petri Latvala <petri.latvala@intel.com>
> Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
> Cc: Martin Peres <martin.peres@linux.intel.com>
> Cc: Tomi Sarvela <tomi.p.sarvela@intel.com>
> Cc: Daniel Vetter <daniel@ffwll.ch>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [igt-dev] [PATCH i-g-t 1/4] lib: Export a function for loading igtrc
2019-09-10 12:41 ` [igt-dev] [PATCH i-g-t 1/4] lib: Export a function for loading igtrc Arkadiusz Hiler
@ 2019-09-13 9:26 ` Petri Latvala
2019-09-13 10:50 ` Arkadiusz Hiler
0 siblings, 1 reply; 15+ messages in thread
From: Petri Latvala @ 2019-09-13 9:26 UTC (permalink / raw)
To: Arkadiusz Hiler; +Cc: igt-dev
On Tue, Sep 10, 2019 at 03:41:24PM +0300, Arkadiusz Hiler wrote:
> On Mon, Sep 09, 2019 at 02:38:06PM +0300, Petri Latvala wrote:
> > Signed-off-by: Petri Latvala <petri.latvala@intel.com>
> > Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
> > ---
> > lib/igt_core.c | 40 +++++++++++++++++++++++++++++++---------
> > lib/igt_core.h | 2 ++
> > 2 files changed, 33 insertions(+), 9 deletions(-)
> >
> > diff --git a/lib/igt_core.c b/lib/igt_core.c
> > index 1cbb09f9..940913c1 100644
> > --- a/lib/igt_core.c
> > +++ b/lib/igt_core.c
> > @@ -642,11 +642,21 @@ static void oom_adjust_for_doom(void)
> >
> > }
> >
> > -static void common_init_config(void)
> > +/**
> > + * load_igtrc:
> > + *
> > + * Load .igtrc from the path pointed to by #IGT_CONFIG_PATH or from
> > + * home directory if that is not set. The returned keyfile needs to be
> > + * deallocated using g_key_file_free().
> > + *
> > + * Returns: Pointer to the keyfile, NULL on error.
> > + */
> > +GKeyFile *igt_load_igtrc(void)
> > {
> > char *key_file_env = NULL;
> > char *key_file_loc = NULL;
> > GError *error = NULL;
> > + GKeyFile *file;
> > int ret;
> >
> > /* Determine igt config path */
> > @@ -659,19 +669,35 @@ static void common_init_config(void)
> > }
> >
> > /* Load igt config file */
> > - igt_key_file = g_key_file_new();
> > - ret = g_key_file_load_from_file(igt_key_file, key_file_loc,
> > + file = g_key_file_new();
> > + ret = g_key_file_load_from_file(file, key_file_loc,
> > G_KEY_FILE_NONE, &error);
> > if (!ret) {
> > g_error_free(error);
> > - g_key_file_free(igt_key_file);
> > - igt_key_file = NULL;
> > + g_key_file_free(file);
> > + file = NULL;
> >
> > goto out;
> > }
> >
> > g_clear_error(&error);
> >
> > + out:
> > + if (!key_file_env && key_file_loc)
> > + free(key_file_loc);
> > +
> > + return file;
> > +}
> > +
> > +static void common_init_config(void)
> > +{
> > + GError *error = NULL;
> > + int ret;
> > +
> > + igt_key_file = igt_load_igtrc();
> > + if (!igt_key_file)
> > + return;
> > +
> > if (!igt_frame_dump_path)
> > igt_frame_dump_path =
> > g_key_file_get_string(igt_key_file, "Common",
> > @@ -687,10 +713,6 @@ static void common_init_config(void)
> >
> > if (ret != 0)
> > igt_set_autoresume_delay(ret);
> > -
> > -out:
> > - if (!key_file_env && key_file_loc)
> > - free(key_file_loc);
> > }
> >
> > static void common_init_env(void)
> > diff --git a/lib/igt_core.h b/lib/igt_core.h
> > index 177d2431..521cda10 100644
> > --- a/lib/igt_core.h
> > +++ b/lib/igt_core.h
> > @@ -83,6 +83,8 @@ extern const char* __igt_test_description __attribute__((weak));
> > extern bool __igt_plain_output;
> > extern char *igt_frame_dump_path;
> >
> > +struct _GKeyFile *igt_load_igtrc(void);
>
> Why not GKeyFile *...?
That would require #include <glib.h> in igt_core.h and spread that
dependency further than feels ok.
--
Petri Latvala
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [igt-dev] [PATCH i-g-t 1/4] lib: Export a function for loading igtrc
2019-09-13 9:26 ` Petri Latvala
@ 2019-09-13 10:50 ` Arkadiusz Hiler
2019-09-13 12:48 ` Petri Latvala
0 siblings, 1 reply; 15+ messages in thread
From: Arkadiusz Hiler @ 2019-09-13 10:50 UTC (permalink / raw)
To: igt-dev
On Fri, Sep 13, 2019 at 12:26:21PM +0300, Petri Latvala wrote:
> On Tue, Sep 10, 2019 at 03:41:24PM +0300, Arkadiusz Hiler wrote:
> > On Mon, Sep 09, 2019 at 02:38:06PM +0300, Petri Latvala wrote:
> > > Signed-off-by: Petri Latvala <petri.latvala@intel.com>
> > > Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
> > > ---
> > > lib/igt_core.c | 40 +++++++++++++++++++++++++++++++---------
> > > lib/igt_core.h | 2 ++
> > > 2 files changed, 33 insertions(+), 9 deletions(-)
> > >
> > > diff --git a/lib/igt_core.c b/lib/igt_core.c
> > > index 1cbb09f9..940913c1 100644
> > > --- a/lib/igt_core.c
> > > +++ b/lib/igt_core.c
> > > @@ -642,11 +642,21 @@ static void oom_adjust_for_doom(void)
> > >
> > > }
> > >
> > > -static void common_init_config(void)
> > > +/**
> > > + * load_igtrc:
> > > + *
> > > + * Load .igtrc from the path pointed to by #IGT_CONFIG_PATH or from
> > > + * home directory if that is not set. The returned keyfile needs to be
> > > + * deallocated using g_key_file_free().
> > > + *
> > > + * Returns: Pointer to the keyfile, NULL on error.
> > > + */
> > > +GKeyFile *igt_load_igtrc(void)
> > > {
> > > char *key_file_env = NULL;
> > > char *key_file_loc = NULL;
> > > GError *error = NULL;
> > > + GKeyFile *file;
> > > int ret;
> > >
> > > /* Determine igt config path */
> > > @@ -659,19 +669,35 @@ static void common_init_config(void)
> > > }
> > >
> > > /* Load igt config file */
> > > - igt_key_file = g_key_file_new();
> > > - ret = g_key_file_load_from_file(igt_key_file, key_file_loc,
> > > + file = g_key_file_new();
> > > + ret = g_key_file_load_from_file(file, key_file_loc,
> > > G_KEY_FILE_NONE, &error);
> > > if (!ret) {
> > > g_error_free(error);
> > > - g_key_file_free(igt_key_file);
> > > - igt_key_file = NULL;
> > > + g_key_file_free(file);
> > > + file = NULL;
> > >
> > > goto out;
> > > }
> > >
> > > g_clear_error(&error);
> > >
> > > + out:
> > > + if (!key_file_env && key_file_loc)
> > > + free(key_file_loc);
> > > +
> > > + return file;
> > > +}
> > > +
> > > +static void common_init_config(void)
> > > +{
> > > + GError *error = NULL;
> > > + int ret;
> > > +
> > > + igt_key_file = igt_load_igtrc();
> > > + if (!igt_key_file)
> > > + return;
> > > +
> > > if (!igt_frame_dump_path)
> > > igt_frame_dump_path =
> > > g_key_file_get_string(igt_key_file, "Common",
> > > @@ -687,10 +713,6 @@ static void common_init_config(void)
> > >
> > > if (ret != 0)
> > > igt_set_autoresume_delay(ret);
> > > -
> > > -out:
> > > - if (!key_file_env && key_file_loc)
> > > - free(key_file_loc);
> > > }
> > >
> > > static void common_init_env(void)
> > > diff --git a/lib/igt_core.h b/lib/igt_core.h
> > > index 177d2431..521cda10 100644
> > > --- a/lib/igt_core.h
> > > +++ b/lib/igt_core.h
> > > @@ -83,6 +83,8 @@ extern const char* __igt_test_description __attribute__((weak));
> > > extern bool __igt_plain_output;
> > > extern char *igt_frame_dump_path;
> > >
> > > +struct _GKeyFile *igt_load_igtrc(void);
> >
> > Why not GKeyFile *...?
>
>
> That would require #include <glib.h> in igt_core.h and spread that
> dependency further than feels ok.
Oh. Oh.... Then where do we get struct _GKeyFile from?
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [igt-dev] [PATCH i-g-t 1/4] lib: Export a function for loading igtrc
2019-09-13 10:50 ` Arkadiusz Hiler
@ 2019-09-13 12:48 ` Petri Latvala
2019-09-16 13:00 ` Arkadiusz Hiler
0 siblings, 1 reply; 15+ messages in thread
From: Petri Latvala @ 2019-09-13 12:48 UTC (permalink / raw)
To: Arkadiusz Hiler; +Cc: igt-dev
On Fri, Sep 13, 2019 at 01:50:10PM +0300, Arkadiusz Hiler wrote:
> On Fri, Sep 13, 2019 at 12:26:21PM +0300, Petri Latvala wrote:
> > On Tue, Sep 10, 2019 at 03:41:24PM +0300, Arkadiusz Hiler wrote:
> > > On Mon, Sep 09, 2019 at 02:38:06PM +0300, Petri Latvala wrote:
> > > > Signed-off-by: Petri Latvala <petri.latvala@intel.com>
> > > > Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
> > > > ---
> > > > lib/igt_core.c | 40 +++++++++++++++++++++++++++++++---------
> > > > lib/igt_core.h | 2 ++
> > > > 2 files changed, 33 insertions(+), 9 deletions(-)
> > > >
> > > > diff --git a/lib/igt_core.c b/lib/igt_core.c
> > > > index 1cbb09f9..940913c1 100644
> > > > --- a/lib/igt_core.c
> > > > +++ b/lib/igt_core.c
> > > > @@ -642,11 +642,21 @@ static void oom_adjust_for_doom(void)
> > > >
> > > > }
> > > >
> > > > -static void common_init_config(void)
> > > > +/**
> > > > + * load_igtrc:
> > > > + *
> > > > + * Load .igtrc from the path pointed to by #IGT_CONFIG_PATH or from
> > > > + * home directory if that is not set. The returned keyfile needs to be
> > > > + * deallocated using g_key_file_free().
> > > > + *
> > > > + * Returns: Pointer to the keyfile, NULL on error.
> > > > + */
> > > > +GKeyFile *igt_load_igtrc(void)
> > > > {
> > > > char *key_file_env = NULL;
> > > > char *key_file_loc = NULL;
> > > > GError *error = NULL;
> > > > + GKeyFile *file;
> > > > int ret;
> > > >
> > > > /* Determine igt config path */
> > > > @@ -659,19 +669,35 @@ static void common_init_config(void)
> > > > }
> > > >
> > > > /* Load igt config file */
> > > > - igt_key_file = g_key_file_new();
> > > > - ret = g_key_file_load_from_file(igt_key_file, key_file_loc,
> > > > + file = g_key_file_new();
> > > > + ret = g_key_file_load_from_file(file, key_file_loc,
> > > > G_KEY_FILE_NONE, &error);
> > > > if (!ret) {
> > > > g_error_free(error);
> > > > - g_key_file_free(igt_key_file);
> > > > - igt_key_file = NULL;
> > > > + g_key_file_free(file);
> > > > + file = NULL;
> > > >
> > > > goto out;
> > > > }
> > > >
> > > > g_clear_error(&error);
> > > >
> > > > + out:
> > > > + if (!key_file_env && key_file_loc)
> > > > + free(key_file_loc);
> > > > +
> > > > + return file;
> > > > +}
> > > > +
> > > > +static void common_init_config(void)
> > > > +{
> > > > + GError *error = NULL;
> > > > + int ret;
> > > > +
> > > > + igt_key_file = igt_load_igtrc();
> > > > + if (!igt_key_file)
> > > > + return;
> > > > +
> > > > if (!igt_frame_dump_path)
> > > > igt_frame_dump_path =
> > > > g_key_file_get_string(igt_key_file, "Common",
> > > > @@ -687,10 +713,6 @@ static void common_init_config(void)
> > > >
> > > > if (ret != 0)
> > > > igt_set_autoresume_delay(ret);
> > > > -
> > > > -out:
> > > > - if (!key_file_env && key_file_loc)
> > > > - free(key_file_loc);
> > > > }
> > > >
> > > > static void common_init_env(void)
> > > > diff --git a/lib/igt_core.h b/lib/igt_core.h
> > > > index 177d2431..521cda10 100644
> > > > --- a/lib/igt_core.h
> > > > +++ b/lib/igt_core.h
> > > > @@ -83,6 +83,8 @@ extern const char* __igt_test_description __attribute__((weak));
> > > > extern bool __igt_plain_output;
> > > > extern char *igt_frame_dump_path;
> > > >
> > > > +struct _GKeyFile *igt_load_igtrc(void);
> > >
> > > Why not GKeyFile *...?
> >
> >
> > That would require #include <glib.h> in igt_core.h and spread that
> > dependency further than feels ok.
>
> Oh. Oh.... Then where do we get struct _GKeyFile from?
Nowhere, it being a complete type is not needed to have a valid
pointer type.
(For the record, "struct GKeyFile *" is wrong, because when we
actually have glib.h, there won't be a "struct GKeyFile", there's a
"struct _GKeyFile" and a typedef of that into "GKeyFile")
--
Petri Latvala
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [igt-dev] [PATCH i-g-t 1/4] lib: Export a function for loading igtrc
2019-09-13 12:48 ` Petri Latvala
@ 2019-09-16 13:00 ` Arkadiusz Hiler
0 siblings, 0 replies; 15+ messages in thread
From: Arkadiusz Hiler @ 2019-09-16 13:00 UTC (permalink / raw)
To: igt-dev
On Fri, Sep 13, 2019 at 03:48:42PM +0300, Petri Latvala wrote:
> On Fri, Sep 13, 2019 at 01:50:10PM +0300, Arkadiusz Hiler wrote:
> > On Fri, Sep 13, 2019 at 12:26:21PM +0300, Petri Latvala wrote:
> > > On Tue, Sep 10, 2019 at 03:41:24PM +0300, Arkadiusz Hiler wrote:
> > > > On Mon, Sep 09, 2019 at 02:38:06PM +0300, Petri Latvala wrote:
> > > > > Signed-off-by: Petri Latvala <petri.latvala@intel.com>
> > > > > Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
> > > > > ---
> > > > > lib/igt_core.c | 40 +++++++++++++++++++++++++++++++---------
> > > > > lib/igt_core.h | 2 ++
> > > > > 2 files changed, 33 insertions(+), 9 deletions(-)
> > > > >
> > > > > diff --git a/lib/igt_core.c b/lib/igt_core.c
> > > > > index 1cbb09f9..940913c1 100644
> > > > > --- a/lib/igt_core.c
> > > > > +++ b/lib/igt_core.c
> > > > > @@ -642,11 +642,21 @@ static void oom_adjust_for_doom(void)
> > > > >
> > > > > }
> > > > >
> > > > > -static void common_init_config(void)
> > > > > +/**
> > > > > + * load_igtrc:
> > > > > + *
> > > > > + * Load .igtrc from the path pointed to by #IGT_CONFIG_PATH or from
> > > > > + * home directory if that is not set. The returned keyfile needs to be
> > > > > + * deallocated using g_key_file_free().
> > > > > + *
> > > > > + * Returns: Pointer to the keyfile, NULL on error.
> > > > > + */
> > > > > +GKeyFile *igt_load_igtrc(void)
> > > > > {
> > > > > char *key_file_env = NULL;
> > > > > char *key_file_loc = NULL;
> > > > > GError *error = NULL;
> > > > > + GKeyFile *file;
> > > > > int ret;
> > > > >
> > > > > /* Determine igt config path */
> > > > > @@ -659,19 +669,35 @@ static void common_init_config(void)
> > > > > }
> > > > >
> > > > > /* Load igt config file */
> > > > > - igt_key_file = g_key_file_new();
> > > > > - ret = g_key_file_load_from_file(igt_key_file, key_file_loc,
> > > > > + file = g_key_file_new();
> > > > > + ret = g_key_file_load_from_file(file, key_file_loc,
> > > > > G_KEY_FILE_NONE, &error);
> > > > > if (!ret) {
> > > > > g_error_free(error);
> > > > > - g_key_file_free(igt_key_file);
> > > > > - igt_key_file = NULL;
> > > > > + g_key_file_free(file);
> > > > > + file = NULL;
> > > > >
> > > > > goto out;
> > > > > }
> > > > >
> > > > > g_clear_error(&error);
> > > > >
> > > > > + out:
> > > > > + if (!key_file_env && key_file_loc)
> > > > > + free(key_file_loc);
> > > > > +
> > > > > + return file;
> > > > > +}
> > > > > +
> > > > > +static void common_init_config(void)
> > > > > +{
> > > > > + GError *error = NULL;
> > > > > + int ret;
> > > > > +
> > > > > + igt_key_file = igt_load_igtrc();
> > > > > + if (!igt_key_file)
> > > > > + return;
> > > > > +
> > > > > if (!igt_frame_dump_path)
> > > > > igt_frame_dump_path =
> > > > > g_key_file_get_string(igt_key_file, "Common",
> > > > > @@ -687,10 +713,6 @@ static void common_init_config(void)
> > > > >
> > > > > if (ret != 0)
> > > > > igt_set_autoresume_delay(ret);
> > > > > -
> > > > > -out:
> > > > > - if (!key_file_env && key_file_loc)
> > > > > - free(key_file_loc);
> > > > > }
> > > > >
> > > > > static void common_init_env(void)
> > > > > diff --git a/lib/igt_core.h b/lib/igt_core.h
> > > > > index 177d2431..521cda10 100644
> > > > > --- a/lib/igt_core.h
> > > > > +++ b/lib/igt_core.h
> > > > > @@ -83,6 +83,8 @@ extern const char* __igt_test_description __attribute__((weak));
> > > > > extern bool __igt_plain_output;
> > > > > extern char *igt_frame_dump_path;
> > > > >
> > > > > +struct _GKeyFile *igt_load_igtrc(void);
> > > >
> > > > Why not GKeyFile *...?
> > >
> > >
> > > That would require #include <glib.h> in igt_core.h and spread that
> > > dependency further than feels ok.
> >
> > Oh. Oh.... Then where do we get struct _GKeyFile from?
>
> Nowhere, it being a complete type is not needed to have a valid
> pointer type.
In the rush I haven't noticed the lack of struct, and yeah typedes do
not behave the same as opawue struct. Sorry for the dumb question.
> (For the record, "struct GKeyFile *" is wrong, because when we
> actually have glib.h, there won't be a "struct GKeyFile", there's a
> "struct _GKeyFile" and a typedef of that into "GKeyFile")
bit ugly, bit haxy, but I don't see a better way
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2019-09-16 13:01 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-09 11:38 [igt-dev] [PATCH i-g-t 1/4] lib: Export a function for loading igtrc Petri Latvala
2019-09-09 11:38 ` [igt-dev] [PATCH i-g-t 2/4] runner: Add support for aborting on network failure Petri Latvala
2019-09-10 12:43 ` Arkadiusz Hiler
2019-09-09 11:38 ` [igt-dev] [PATCH i-g-t 3/4] HAX: Check all conditions to abort Petri Latvala
2019-09-09 11:38 ` [igt-dev] [PATCH i-g-t 4/4] HAX: Print ping times to stderr Petri Latvala
2019-09-09 11:50 ` Petri Latvala
2019-09-09 12:12 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/4] lib: Export a function for loading igtrc Patchwork
2019-09-09 12:29 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/4] lib: Export a function for loading igtrc (rev2) Patchwork
2019-09-09 17:40 ` [igt-dev] ✓ Fi.CI.IGT: success for series starting with [i-g-t,1/4] lib: Export a function for loading igtrc Patchwork
2019-09-09 18:31 ` [igt-dev] ✓ Fi.CI.IGT: success for series starting with [i-g-t,1/4] lib: Export a function for loading igtrc (rev2) Patchwork
2019-09-10 12:41 ` [igt-dev] [PATCH i-g-t 1/4] lib: Export a function for loading igtrc Arkadiusz Hiler
2019-09-13 9:26 ` Petri Latvala
2019-09-13 10:50 ` Arkadiusz Hiler
2019-09-13 12:48 ` Petri Latvala
2019-09-16 13:00 ` Arkadiusz Hiler
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.