Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify flakes table for jobs #7519

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions scripts/upload_ci_stats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ create table job(
url text,
run_attempt int,
run_id bigint,
run_number int
run_number int,
pg_version text generated always as (
mkindahl marked this conversation as resolved.
Show resolved Hide resolved
substring(job_name from 'PG([0-9]+(\.[0-9]+)*)')
) stored
);

create unique index on job(job_date);
Expand Down Expand Up @@ -75,7 +78,13 @@ JOB_NAME="${JOB_NAME:-test-job}"
export JOB_NAME

JOB_DATE=$("${PSQL[@]}" -c "
insert into job values (
insert into job(
job_date, commit_sha, job_name,
repository, ref_name, event_name,
pr_number, job_status,
url,
run_attempt, run_id, run_number
) values (
now(), '$COMMIT_SHA', '$JOB_NAME',
'$GITHUB_REPOSITORY', '$GITHUB_REF_NAME', '$GITHUB_EVENT_NAME',
'$GITHUB_PR_NUMBER', '$JOB_STATUS',
Expand Down
Loading