-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Remember failed workflows/td files
to be able to run them first in the next run on a PR
- Loading branch information
Showing
35 changed files
with
499 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
misc/python/materialize/test_analytics/setup/tables/03-build-job-failure.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
-- Copyright Materialize, Inc. and contributors. All rights reserved. | ||
-- | ||
-- Use of this software is governed by the Business Source License | ||
-- included in the LICENSE file at the root of this repository. | ||
-- | ||
-- As of the Change Date specified in that file, in accordance with | ||
-- the Business Source License, use of this software will be governed | ||
-- by the Apache License, Version 2.0. | ||
|
||
-- part of a build job that failed, can be a testdrive file or a workflow | ||
CREATE TABLE build_job_failure ( | ||
build_job_id TEXT NOT NULL, | ||
part TEXT NOT NULL | ||
); | ||
|
||
ALTER TABLE build_job_failure OWNER TO qa; | ||
GRANT SELECT, INSERT, UPDATE ON TABLE build_job_failure TO "hetzner-ci"; |
27 changes: 27 additions & 0 deletions
27
misc/python/materialize/test_analytics/setup/views/03-build-failure.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
-- Copyright Materialize, Inc. and contributors. All rights reserved. | ||
-- | ||
-- Use of this software is governed by the Business Source License | ||
-- included in the LICENSE file at the root of this repository. | ||
-- | ||
-- As of the Change Date specified in that file, in accordance with | ||
-- the Business Source License, use of this software will be governed | ||
-- by the Apache License, Version 2.0. | ||
|
||
CREATE OR REPLACE MATERIALIZED VIEW mv_build_job_failed_on_branch AS | ||
SELECT build_step_key, branch, part | ||
FROM build | ||
JOIN build_job ON build.build_id = build_job.build_id | ||
JOIN build_job_failure ON build_job.build_job_id = build_job_failure.build_job_id; | ||
|
||
CREATE OR REPLACE MATERIALIZED VIEW mv_build_job_failed AS | ||
SELECT build_step_key, part | ||
FROM build_job | ||
JOIN build_job_failure ON build_job.build_job_id = build_job_failure.build_job_id; | ||
|
||
CREATE DEFAULT INDEX ON mv_build_job_failed_on_branch; | ||
CREATE DEFAULT INDEX ON mv_build_job_failed; | ||
|
||
ALTER MATERIALIZED VIEW mv_build_job_failed_on_branch OWNER TO qa; | ||
GRANT SELECT ON TABLE mv_build_job_failed_on_branch TO "hetzner-ci"; | ||
ALTER MATERIALIZED VIEW mv_build_job_failed OWNER TO qa; | ||
GRANT SELECT ON TABLE mv_build_job_failed TO "hetzner-ci"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.