You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: trino-rest-github/src/test/java/pl/net/was/rest/github/TestGithubQueries.java
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -86,12 +86,11 @@ public void selectFromGithubActionsTable()
86
86
assertThat(runId).isGreaterThan(0);
87
87
longjobId = (long) runner.execute(format("SELECT id FROM jobs WHERE owner = 'nineinchnick' AND repo = 'trino-rest' AND run_id = %d LIMIT 1", runId)).getOnlyValue();
88
88
assertThat(jobId).isGreaterThan(0);
89
-
// TODO this is unreliable, as old job logs can get pruned by Github
89
+
// TODO this is unreliable, as old job logs and steps can get pruned by Github
90
90
//long logLength = (long) runner.execute(format("SELECT length(contents) FROM job_logs WHERE owner = 'nineinchnick' AND repo = 'trino-rest' AND job_id = %d", jobId)).getOnlyValue();
91
91
//assertThat(logLength).isGreaterThan(0);
92
-
93
-
assertQuery(format("SELECT owner FROM steps WHERE owner = 'nineinchnick' AND repo = 'trino-rest' AND run_id = %d LIMIT 1", runId),
94
-
"VALUES ('nineinchnick')");
92
+
//assertQuery(format("SELECT owner FROM steps WHERE owner = 'nineinchnick' AND repo = 'trino-rest' AND run_id = %d LIMIT 1", runId),
93
+
// "VALUES ('nineinchnick')");
95
94
// can't check results, since currently no jobs produce artifacts
96
95
assertQuerySucceeds(format("SELECT owner FROM artifacts WHERE owner = 'nineinchnick' AND repo = 'trino-rest' AND run_id = %d", runId));
97
96
// TODO this doesn't work with the default token available in GHA
0 commit comments