Skip to content
Snippets Groups Projects

Cleanup for converted ci_pipelines.auto_canceled_by_id

Merged Tianwen Chen requested to merge 422811-ignore-rule into master

What does this MR do and why?

Cleanup for converted ci_pipelines.auto_canceled_by_id

This is to step to remove the trigger and old integer column See https://docs.gitlab.com/ee/development/database/avoiding_downtime_in_migrations.html#remove-the-trigger-and-old-integer-columns-release-n--2

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #422811 (closed)

Edited by Tianwen Chen

Merge request reports

Merged results pipeline #1078822564 passed with warnings

Pipeline: GitLab

#1078829606

    Pipeline: E2E GDK

    #1078837581

      Merged results pipeline passed with warnings for 4e7ddc8a

      Test coverage 82.61% (9.93%) from 2 jobs

      Merged by Marius BobinMarius Bobin 1 year ago (Nov 20, 2023 4:56pm UTC)

      Loading

      Pipeline #1079061655 passed

      Pipeline passed for 3afeb84d on master

      Test coverage 66.81% (9.93%) from 2 jobs
      10 environments impacted.

      Activity

      Filter activity
      • Approvals
      • Assignees & reviewers
      • Comments (from bots)
      • Comments (from users)
      • Commits & branches
      • Edits
      • Labels
      • Lock status
      • Mentions
      • Merge request status
      • Tracking
    • A deleted user added Data WarehouseImpact Check label
    • Tianwen Chen marked this merge request as ready

      marked this merge request as ready

    • Tianwen Chen changed title from Draft: Remove ignore rule for ci_pipelines.auto_canceled_by_id conversion to Cleanup for converted ci_pipelines.auto_canceled_by_id

      changed title from Draft: Remove ignore rule for ci_pipelines.auto_canceled_by_id conversion to Cleanup for converted ci_pipelines.auto_canceled_by_id

    • Tianwen Chen changed the description

      changed the description

    • Tianwen Chen added 469 commits

      added 469 commits

      Compare with previous version

    • Database migrations (on the main database)

      Migrations included in this change have been executed on gitlab.com data for testing purposes. For details, please see the migration testing pipeline (limited access).

      Migration Type Total runtime Result DB size change
      20231114053330 - CleanupCiPipelinesAutoCanceledByIdBigint Post deploy 4.3 s -8.00 KiB
      Runtime Histogram for all migrations
      Query Runtime Count
      0 seconds - 0.01 seconds 0
      0.01 seconds - 0.1 seconds 5
      0.1 seconds - 1 second 1
      1 second - 5 seconds 0
      5 seconds - 15 seconds 0
      15 seconds - 5 minutes 0
      5 minutes + 0

      Migration: 20231114053330 - CleanupCiPipelinesAutoCanceledByIdBigint

      • Type: Post deploy
      • Duration: 4.3 s
      • Database size change: -8.00 KiB
      Calls Total Time Max Time Mean Time Rows Query
      1 74.1 ms 74.1 ms 74.1 ms 0
      ALTER TABLE "ci_pipelines" DROP COLUMN "auto_canceled_by_id_convert_to_bigint"
      1 22.5 ms 22.5 ms 22.5 ms 0
      DROP TRIGGER IF EXISTS trigger_1bd97da9c1a4 ON "ci_pipelines"
      1 12.1 ms 12.1 ms 12.1 ms 0
      DROP FUNCTION IF EXISTS trigger_1bd97da9c1a4()
      1 0.1 ms 0.1 ms 0.1 ms 1
      SELECT "feature_gates"."key", "feature_gates"."value"  FROM "feature_gates"  WHERE "feature_gates"."feature_key" = $1
      2 0.0 ms 0.0 ms 0.0 ms 2
      SELECT pg_backend_pid()
      Histogram for CleanupCiPipelinesAutoCanceledByIdBigint
      Query Runtime Count
      0 seconds - 0.01 seconds 0
      0.01 seconds - 0.1 seconds 5
      0.1 seconds - 1 second 1
      1 second - 5 seconds 0
      5 seconds - 15 seconds 0
      15 seconds - 5 minutes 0
      5 minutes + 0

      Other information

      No other migrations pending on GitLab.com

      Clone details
      Clone ID Clone Created At Clone Data Timestamp Expected Removal Time
      database-testing-2543767-11951963-main 2023-11-20T05:07:43Z 2023-11-20T04:11:27Z 2023-11-20 17:11:38 +0000
      database-testing-2543767-11951963-ci 2023-11-20T05:07:43Z 2023-11-20T04:45:42Z 2023-11-20 17:11:38 +0000

      Job artifacts

      Database migrations (on the ci database)

      Migrations included in this change have been executed on gitlab.com data for testing purposes. For details, please see the migration testing pipeline (limited access).

      Migration Type Total runtime Result DB size change
      20231114053330 - CleanupCiPipelinesAutoCanceledByIdBigint Post deploy 3.3 s -6.68 GiB
      Runtime Histogram for all migrations
      Query Runtime Count
      0 seconds - 0.01 seconds 0
      0.01 seconds - 0.1 seconds 5
      0.1 seconds - 1 second 0
      1 second - 5 seconds 0
      5 seconds - 15 seconds 0
      15 seconds - 5 minutes 0
      5 minutes + 0

      Migration: 20231114053330 - CleanupCiPipelinesAutoCanceledByIdBigint

      • Type: Post deploy
      • Duration: 3.3 s
      • Database size change: -6.68 GiB
      Calls Total Time Max Time Mean Time Rows Query
      1 22.7 ms 22.7 ms 22.7 ms 0
      ALTER TABLE "ci_pipelines" DROP COLUMN "auto_canceled_by_id_convert_to_bigint"
      1 16.2 ms 16.2 ms 16.2 ms 0
      DROP TRIGGER IF EXISTS trigger_1bd97da9c1a4 ON "ci_pipelines"
      1 7.7 ms 7.7 ms 7.7 ms 0
      DROP FUNCTION IF EXISTS trigger_1bd97da9c1a4()
      2 0.0 ms 0.0 ms 0.0 ms 2
      SELECT pg_backend_pid()
      Histogram for CleanupCiPipelinesAutoCanceledByIdBigint
      Query Runtime Count
      0 seconds - 0.01 seconds 0
      0.01 seconds - 0.1 seconds 5
      0.1 seconds - 1 second 0
      1 second - 5 seconds 0
      5 seconds - 15 seconds 0
      15 seconds - 5 minutes 0
      5 minutes + 0

      Other information

      No other migrations pending on GitLab.com

      Clone details
      Clone ID Clone Created At Clone Data Timestamp Expected Removal Time
      database-testing-2543767-11951963-main 2023-11-20T05:07:43Z 2023-11-20T04:11:27Z 2023-11-20 17:11:38 +0000
      database-testing-2543767-11951963-ci 2023-11-20T05:07:43Z 2023-11-20T04:45:42Z 2023-11-20 17:11:38 +0000

      Job artifacts


      Brought to you by gitlab-org/database-team/gitlab-com-database-testing. Epic

      Edited by Ghost User
    • Tianwen Chen
    • Tianwen Chen requested review from @mwoolf

      requested review from @mwoolf

    • added databasereviewed label and removed databasereview pending label

    • Loading
    • Loading
    • Loading
    • Loading
    • Loading
    • Loading
    • Loading
    • Loading
    • Loading
    • Loading
    • Please register or sign in to reply
      Loading