From 81e7be4c5f570187dea8d7ed1fd8e3f307876422 Mon Sep 17 00:00:00 2001 From: Joel Maher Date: Mon, 17 Feb 2025 12:48:27 -0800 Subject: [PATCH] Revert "update treeherder sample_data used for tests." This reverts commit 4e2725d82f381a5d9c3fef95ffbd28b2449cb702. --- .../artifacts/text_log_summary.json | 2 +- tests/sample_data/bug_list.json | 54 +++--- .../bugscache_population/run-0.json | 2 +- tests/sample_data/graphql/query_node.json | 170 ++++++++++++++++++ tests/sample_data_generator.py | 15 +- 5 files changed, 204 insertions(+), 39 deletions(-) create mode 100644 tests/sample_data/graphql/query_node.json diff --git a/tests/sample_data/artifacts/text_log_summary.json b/tests/sample_data/artifacts/text_log_summary.json index 7954b1257fa..2a33adcc03e 100644 --- a/tests/sample_data/artifacts/text_log_summary.json +++ b/tests/sample_data/artifacts/text_log_summary.json @@ -18,7 +18,7 @@ "linenumber": 8157 } ], - "logurl": "https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/YxJCaWl3Shu4FBJrKG2K1Q/runs/0/artifacts/public/logs/live_backing.log.gz" + "logurl": "http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2015/04/2015-04-15-03-02-06-mozilla-central/mozilla-central_snowleopard_test-mochitest-2-bm107-tests1-macosx-build128.txt.gz" }, "type": "json", "id": 8217463, diff --git a/tests/sample_data/bug_list.json b/tests/sample_data/bug_list.json index c04feaad85a..3989b0a5adf 100644 --- a/tests/sample_data/bug_list.json +++ b/tests/sample_data/bug_list.json @@ -9,19 +9,19 @@ "cf_crash_signature": "", "keywords": ["intermittent-failure"], "resolution": "RESOLVED", - "last_change_time": "2024-01-01 00:00:00", + "last_change_time": "2014-01-01 00:00:00", "whiteboard": "text" }, { "status": "NEW", "id": 453969, - "summary": "Intermittent browser/base/content/test/performance/browser_startup_flicker.js | single tracking bug", + "summary": "Intermittent test_bug382113.html | Child got load event - got false, expected true", "dupe_of": null, "duplicates": [], "cf_crash_signature": "", - "keywords": ["intermittent-failure", "intermittent-testcase"], + "keywords": ["intermittent-failure"], "resolution": "", - "last_change_time": "2024-01-01 00:00:00", + "last_change_time": "2014-01-01 00:00:00", "whiteboard": "text" }, { @@ -33,7 +33,7 @@ "cf_crash_signature": "", "keywords": ["intermittent-failure"], "resolution": "", - "last_change_time": "2024-01-01 00:00:00", + "last_change_time": "2014-01-01 00:00:00", "whiteboard": "text" }, { @@ -45,7 +45,7 @@ "cf_crash_signature": "", "keywords": ["intermittent-failure"], "resolution": "", - "last_change_time": "2024-01-01 00:00:00", + "last_change_time": "2014-01-01 00:00:00", "whiteboard": "text" }, { @@ -57,7 +57,7 @@ "cf_crash_signature": "", "keywords": ["intermittent-failure"], "resolution": "", - "last_change_time": "2024-01-01 00:00:00", + "last_change_time": "2014-01-01 00:00:00", "whiteboard": "text" }, { @@ -69,7 +69,7 @@ "cf_crash_signature": "", "keywords": ["intermittent-failure"], "resolution": "", - "last_change_time": "2024-01-01 00:00:00", + "last_change_time": "2014-01-01 00:00:00", "whiteboard": "text" }, { @@ -81,7 +81,7 @@ "cf_crash_signature": "", "keywords": ["intermittent-failure"], "resolution": "", - "last_change_time": "2024-01-01 00:00:00", + "last_change_time": "2014-01-01 00:00:00", "whiteboard": "text" }, { @@ -93,7 +93,7 @@ "cf_crash_signature": "", "keywords": ["intermittent-failure"], "resolution": "", - "last_change_time": "2024-01-01 00:00:00", + "last_change_time": "2014-01-01 00:00:00", "whiteboard": "text" }, { @@ -105,7 +105,7 @@ "cf_crash_signature": "", "keywords": ["intermittent-failure"], "resolution": "", - "last_change_time": "2024-01-01 00:00:00", + "last_change_time": "2014-01-01 00:00:00", "whiteboard": "text" }, { @@ -117,7 +117,7 @@ "cf_crash_signature": "", "keywords": ["intermittent-failure"], "resolution": "", - "last_change_time": "2024-01-01 00:00:00", + "last_change_time": "2014-01-01 00:00:00", "whiteboard": "text" }, { @@ -129,7 +129,7 @@ "cf_crash_signature": "", "keywords": ["intermittent-failure"], "resolution": "", - "last_change_time": "2024-01-01 00:00:00", + "last_change_time": "2014-01-01 00:00:00", "whiteboard": "text" }, { @@ -141,7 +141,7 @@ "cf_crash_signature": "", "keywords": ["ateam-marionette-intermittent", "intermittent-failure"], "resolution": "", - "last_change_time": "2024-08-17T23:15:38", + "last_change_time": "2014-08-17T23:15:38", "whiteboard": "text" }, { @@ -153,7 +153,7 @@ "cf_crash_signature": "", "keywords": ["ateam-marionette-intermittent", "intermittent-failure"], "resolution": "", - "last_change_time": "2024-10-29T20:57:46", + "last_change_time": "2014-10-29T20:57:46", "whiteboard": "text" }, { @@ -165,7 +165,7 @@ "cf_crash_signature": "", "keywords": ["intermittent-failure"], "resolution": "", - "last_change_time": "2024-10-23T13:35:06", + "last_change_time": "2014-10-23T13:35:06", "whiteboard": "text" }, { @@ -177,7 +177,7 @@ "cf_crash_signature": "", "keywords": ["intermittent-failure"], "resolution": "", - "last_change_time": "2024-10-29T20:57:46", + "last_change_time": "2014-10-29T20:57:46", "whiteboard": "text" }, { @@ -189,7 +189,7 @@ "cf_crash_signature": "", "keywords": ["intermittent-failure"], "resolution": "", - "last_change_time": "2023-07-25T01:04:15Z", + "last_change_time": "2016-07-25T01:04:15Z", "whiteboard": "text" }, { @@ -201,7 +201,7 @@ "cf_crash_signature": "", "keywords": ["intermittent-failure"], "resolution": "", - "last_change_time": "2023-07-25T01:04:15Z", + "last_change_time": "2016-07-25T01:04:15Z", "whiteboard": "text" }, { @@ -213,7 +213,7 @@ "cf_crash_signature": "", "keywords": ["intermittent-failure"], "resolution": "", - "last_change_time": "2023-07-25T01:04:15Z", + "last_change_time": "2016-07-25T01:04:15Z", "whiteboard": "text" }, { @@ -225,7 +225,7 @@ "cf_crash_signature": "", "keywords": ["intermittent-failure"], "resolution": "", - "last_change_time": "2023-07-25T01:04:15Z", + "last_change_time": "2016-07-25T01:04:15Z", "whiteboard": "text" }, { @@ -237,7 +237,7 @@ "cf_crash_signature": "", "keywords": ["intermittent-failure"], "resolution": "", - "last_change_time": "2023-07-25T01:04:15Z", + "last_change_time": "2016-07-25T01:04:15Z", "whiteboard": "text" }, { @@ -249,7 +249,7 @@ "cf_crash_signature": "", "keywords": ["intermittent-failure"], "resolution": "", - "last_change_time": "2023-07-25T01:04:15Z", + "last_change_time": "2016-07-25T01:04:15Z", "whiteboard": "text" }, { @@ -261,7 +261,7 @@ "cf_crash_signature": "", "keywords": ["intermittent-failure"], "resolution": "", - "last_change_time": "2023-07-25T01:04:15Z", + "last_change_time": "2016-07-25T01:04:15Z", "whiteboard": "text" }, { @@ -273,7 +273,7 @@ "cf_crash_signature": "", "keywords": ["intermittent-failure"], "resolution": "", - "last_change_time": "2023-07-25T01:04:15Z", + "last_change_time": "2016-07-25T01:04:15Z", "whiteboard": "text" }, { @@ -285,7 +285,7 @@ "cf_crash_signature": "", "keywords": ["intermittent-failure"], "resolution": "", - "last_change_time": "2023-07-25T01:04:15Z", + "last_change_time": "2016-07-25T01:04:15Z", "whiteboard": "text" }, { @@ -297,7 +297,7 @@ "cf_crash_signature": "", "keywords": ["intermittent-failure"], "resolution": "", - "last_change_time": "2023-07-25T01:04:15Z", + "last_change_time": "2016-07-25T01:04:15Z", "whiteboard": "text" }, { diff --git a/tests/sample_data/bugscache_population/run-0.json b/tests/sample_data/bugscache_population/run-0.json index f5bb22e1709..dd5711146da 100644 --- a/tests/sample_data/bugscache_population/run-0.json +++ b/tests/sample_data/bugscache_population/run-0.json @@ -51,7 +51,7 @@ { "cf_crash_signature": "", "status": "NEW", - "summary": "Intermittent devtools/client/netmonitor/test/browser_net_resend_cors.js | single tracking bug", + "summary": "Intermittent devtools/client/netmonitor/test/browser_net_resend_cors.js | Test timed out -", "id": 1736534, "resolution": "", "last_change_time": "2021-11-01T06:16:02Z", diff --git a/tests/sample_data/graphql/query_node.json b/tests/sample_data/graphql/query_node.json new file mode 100644 index 00000000000..86e625ae779 --- /dev/null +++ b/tests/sample_data/graphql/query_node.json @@ -0,0 +1,170 @@ +[ + { + "alias": null, + "arguments": [ + { + "kind": "Argument", + "name": { + "kind": "Name", + "value": "result" + }, + "value": { + "kind": "StringValue", + "value": "testfailed" + } + }, + { + "kind": "Argument", + "name": { + "kind": "Name", + "value": "tier_Lt" + }, + "value": { + "kind": "IntValue", + "value": "3" + } + } + ], + "directives": [], + "kind": "Field", + "name": { + "kind": "Name", + "value": "jobs" + }, + "selection_set": { + "kind": "SelectionSet", + "selections": [ + { + "alias": null, + "arguments": [], + "directives": [], + "kind": "Field", + "name": { + "kind": "Name", + "value": "edges" + }, + "selection_set": { + "kind": "SelectionSet", + "selections": [ + { + "alias": null, + "arguments": [], + "directives": [], + "kind": "Field", + "name": { + "kind": "Name", + "value": "node" + }, + "selection_set": { + "kind": "SelectionSet", + "selections": [ + { + "alias": null, + "arguments": [], + "directives": [], + "kind": "Field", + "name": { + "kind": "Name", + "value": "failureClassification" + }, + "selection_set": { + "kind": "SelectionSet", + "selections": [ + { + "alias": null, + "arguments": [], + "directives": [], + "kind": "Field", + "name": { + "kind": "Name", + "value": "name" + }, + "selection_set": null + } + ] + } + }, + { + "alias": null, + "arguments": [], + "directives": [], + "kind": "Field", + "name": { + "kind": "Name", + "value": "jobType" + }, + "selection_set": { + "kind": "SelectionSet", + "selections": [ + { + "alias": null, + "arguments": [], + "directives": [], + "kind": "Field", + "name": { + "kind": "Name", + "value": "symbol" + }, + "selection_set": null + }, + { + "alias": null, + "arguments": [], + "directives": [], + "kind": "Field", + "name": { + "kind": "Name", + "value": "name" + }, + "selection_set": null + }, + { + "alias": null, + "arguments": [], + "directives": [], + "kind": "Field", + "name": { + "kind": "Name", + "value": "jobGroup" + }, + "selection_set": { + "kind": "SelectionSet", + "selections": [ + { + "alias": null, + "arguments": [], + "directives": [], + "kind": "Field", + "name": { + "kind": "Name", + "value": "symbol" + }, + "selection_set": null + }, + { + "alias": null, + "arguments": [], + "directives": [], + "kind": "Field", + "name": { + "kind": "Name", + "value": "name" + }, + "selection_set": null + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } + ] + } + } +] diff --git a/tests/sample_data_generator.py b/tests/sample_data_generator.py index 71c63f5362b..9788ede12f4 100644 --- a/tests/sample_data_generator.py +++ b/tests/sample_data_generator.py @@ -73,12 +73,7 @@ def option_collection(**kwargs): def log_references(log_refs=None): if not log_refs: - log_refs = [ - { - "url": "https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/...", - "name": "unittest", - } - ] + log_refs = [{"url": "http://ftp.mozilla.org/pub/...", "name": "unittest"}] return log_refs @@ -88,9 +83,9 @@ def build_platform(**kwargs): """ defaults = { - "platform": "Windows11", + "platform": "WINNT5.1", "os_name": "win", - "architecture": "x86_64", + "architecture": "x86", } defaults.update(kwargs) @@ -104,9 +99,9 @@ def machine_platform(**kwargs): """ defaults = { - "platform": "Windows11", + "platform": "WINNT5.1", "os_name": "win", - "architecture": "x86_64", + "architecture": "x86", } defaults.update(kwargs)