Test reversibility of migrations #220

Merged
bustikiller merged 35 commits from test-rollbacks into main 2025-01-25 09:43:43 +00:00
Owner

We want to make sure that:

  1. Migrations are reversible
  2. Reapplying migrations added to a PR leads to the same schema.rb
We want to make sure that: 1. Migrations are reversible 2. Reapplying migrations added to a PR leads to the same schema.rb
bustikiller added 1 commit 2025-01-23 21:07:37 +00:00
Extract rubocop to a separate job in CI
Some checks failed
Build Nginx-based docker image / build-static-assets (pull_request) Has been cancelled
Check usage of free licenses / check-licenses (pull_request) Successful in 54s
Add copyright notice / copyright_notice (pull_request) Successful in 1m32s
Run unit tests / rubocop (pull_request) Successful in 45s
Run unit tests / unit_tests (pull_request) Successful in 2m43s
da02f37069
bustikiller added 1 commit 2025-01-23 21:12:34 +00:00
Add a new step redoing the last migration
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 1m24s
Add copyright notice / copyright_notice (pull_request) Successful in 2m45s
Run unit tests / unit_tests (pull_request) Successful in 5m2s
Run unit tests / reversible_migrations (pull_request) Failing after 3m32s
Build Nginx-based docker image / build-static-assets (pull_request) Has been cancelled
Check usage of free licenses / check-licenses (pull_request) Successful in 1m19s
f681f8d2f9
bustikiller added 1 commit 2025-01-23 21:21:51 +00:00
Reuse code to wait for Postgres to be active
Some checks failed
Add copyright notice / copyright_notice (pull_request) Successful in 2m23s
Check usage of free licenses / check-licenses (pull_request) Successful in 1m7s
Run unit tests / rubocop (pull_request) Successful in 3m3s
Build Nginx-based docker image / build-static-assets (pull_request) Successful in 50m52s
Run unit tests / unit_tests (pull_request) Successful in 6m1s
Run unit tests / reversible_migrations (pull_request) Failing after 3m20s
db55bafea1
bustikiller added 1 commit 2025-01-23 21:24:40 +00:00
Move docker build into the same workflow
Some checks failed
Run unit tests / reversible_migrations (pull_request) Failing after 4m36s
Run unit tests / build-static-assets (pull_request) Has been skipped
Check usage of free licenses / check-licenses (pull_request) Successful in 1m39s
Add copyright notice / copyright_notice (pull_request) Successful in 3m19s
Run unit tests / rubocop (pull_request) Successful in 1m49s
Run unit tests / unit_tests (pull_request) Successful in 5m34s
e612cf9936
bustikiller added 1 commit 2025-01-23 21:36:26 +00:00
Redo last 5 migrations before running specs
Some checks failed
Check usage of free licenses / check-licenses (pull_request) Successful in 1m46s
Add copyright notice / copyright_notice (pull_request) Successful in 2m25s
Run unit tests / rubocop (pull_request) Successful in 1m8s
Run unit tests / unit_tests (pull_request) Failing after 3m45s
Run unit tests / build-static-assets (pull_request) Has been skipped
798cf564b4
bustikiller added 3 commits 2025-01-23 21:43:31 +00:00
Display last 10 migrations
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 1m9s
Run unit tests / check-licenses (pull_request) Successful in 1m14s
Run unit tests / copyright_notice (pull_request) Successful in 1m40s
Run unit tests / unit_tests (pull_request) Failing after 2m41s
Run unit tests / build-static-assets (pull_request) Has been skipped
bb7d7cbf49
bustikiller added 1 commit 2025-01-23 21:46:27 +00:00
Restore working version
All checks were successful
Run unit tests / check-licenses (pull_request) Successful in 1m39s
Run unit tests / rubocop (pull_request) Successful in 1m44s
Run unit tests / copyright_notice (pull_request) Successful in 2m36s
Run unit tests / unit_tests (pull_request) Successful in 4m48s
Run unit tests / build-static-assets (pull_request) Successful in 30m15s
540ba0d59d
bustikiller added 1 commit 2025-01-23 23:13:11 +00:00
Redo last migration
Some checks failed
Run unit tests / unit_tests (pull_request) Failing after 2m18s
Run unit tests / build-static-assets (pull_request) Has been skipped
Run unit tests / check-licenses (pull_request) Successful in 43s
Run unit tests / rubocop (pull_request) Successful in 50s
Run unit tests / copyright_notice (pull_request) Successful in 1m44s
d5173baca2
bustikiller added 1 commit 2025-01-23 23:16:14 +00:00
Display list of migrations
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 1m3s
Run unit tests / unit_tests (pull_request) Failing after 2m32s
Run unit tests / build-static-assets (pull_request) Has been skipped
Run unit tests / check-licenses (pull_request) Successful in 1m7s
Run unit tests / copyright_notice (pull_request) Successful in 1m56s
7a2feec3cb
bustikiller added 1 commit 2025-01-23 23:19:19 +00:00
Fix previous migration to make it reversible
All checks were successful
Run unit tests / rubocop (pull_request) Successful in 53s
Run unit tests / copyright_notice (pull_request) Successful in 1m42s
Run unit tests / check-licenses (pull_request) Successful in 49s
Run unit tests / unit_tests (pull_request) Successful in 2m18s
Run unit tests / build-static-assets (pull_request) Successful in 18m5s
c8f221614a
bustikiller added 1 commit 2025-01-23 23:26:06 +00:00
Exit if reapplying last migration generates schema changes
Some checks failed
Run unit tests / rubocop (pull_request) Failing after 1m5s
Run unit tests / check-licenses (pull_request) Successful in 1m11s
Run unit tests / copyright_notice (pull_request) Successful in 1m38s
Run unit tests / build-static-assets (pull_request) Has been skipped
Run unit tests / unit_tests (pull_request) Failing after 2m23s
d35c0353fc
bustikiller added 1 commit 2025-01-23 23:29:39 +00:00
Fix schema
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 45s
Run unit tests / check-licenses (pull_request) Successful in 47s
Run unit tests / copyright_notice (pull_request) Failing after 1m19s
Run unit tests / unit_tests (pull_request) Successful in 4m1s
Run unit tests / build-static-assets (pull_request) Has been skipped
1306a33e8a
bustikiller added 1 commit 2025-01-23 23:30:51 +00:00
Add copyright notice
Some checks failed
Run unit tests / unit_tests (pull_request) Failing after 3m52s
Run unit tests / build-static-assets (pull_request) Has been skipped
Run unit tests / rubocop (pull_request) Successful in 1m7s
Run unit tests / check-licenses (pull_request) Successful in 1m0s
Run unit tests / copyright_notice (pull_request) Successful in 2m8s
89bc7fa142
bustikiller added 1 commit 2025-01-23 23:31:52 +00:00
Display the number of migrations added
Some checks failed
Run unit tests / unit_tests (pull_request) Failing after 3m18s
Run unit tests / check-licenses (pull_request) Successful in 1m42s
Run unit tests / rubocop (pull_request) Successful in 1m45s
Run unit tests / build-static-assets (pull_request) Has been skipped
Run unit tests / copyright_notice (pull_request) Successful in 2m24s
966998e6c8
bustikiller added 1 commit 2025-01-23 23:37:19 +00:00
Compare number of migrations against base ref
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 42s
Run unit tests / check-licenses (pull_request) Successful in 44s
Run unit tests / copyright_notice (pull_request) Successful in 1m11s
Run unit tests / unit_tests (pull_request) Failing after 1m37s
Run unit tests / build-static-assets (pull_request) Has been skipped
8f5b3d7faa
bustikiller added 1 commit 2025-01-23 23:39:34 +00:00
Use variable notation
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 53s
Run unit tests / check-licenses (pull_request) Successful in 1m0s
Run unit tests / unit_tests (pull_request) Has been cancelled
Run unit tests / copyright_notice (pull_request) Has been cancelled
Run unit tests / build-static-assets (pull_request) Has been cancelled
b4f1b79134
bustikiller force-pushed test-rollbacks from b4f1b79134 to 66c5b3a526 2025-01-23 23:40:29 +00:00 Compare
bustikiller added 1 commit 2025-01-23 23:43:51 +00:00
Fetch branch before comparison
Some checks failed
Run unit tests / unit_tests (pull_request) Failing after 1m38s
Run unit tests / build-static-assets (pull_request) Has been skipped
Run unit tests / rubocop (pull_request) Successful in 36s
Run unit tests / check-licenses (pull_request) Successful in 38s
Run unit tests / copyright_notice (pull_request) Successful in 1m1s
44590e6889
bustikiller added 1 commit 2025-01-23 23:48:04 +00:00
Use PR base SHA
Some checks failed
Run unit tests / copyright_notice (pull_request) Successful in 55s
Run unit tests / check-licenses (pull_request) Successful in 39s
Run unit tests / unit_tests (pull_request) Failing after 1m31s
Run unit tests / rubocop (pull_request) Successful in 23s
Run unit tests / build-static-assets (pull_request) Has been skipped
a12d60e7cb
bustikiller added 1 commit 2025-01-23 23:50:17 +00:00
Fetch before diff
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 23s
Run unit tests / unit_tests (pull_request) Failing after 1m45s
Run unit tests / build-static-assets (pull_request) Has been skipped
Run unit tests / check-licenses (pull_request) Successful in 43s
Run unit tests / copyright_notice (pull_request) Successful in 1m8s
3651176bbd
bustikiller added 1 commit 2025-01-24 07:39:05 +00:00
Checkout the commit as is in the PR, not if merged into the base
Some checks failed
Run unit tests / copyright_notice (pull_request) Successful in 52s
Run unit tests / check-licenses (pull_request) Failing after 1m5s
Run unit tests / rubocop (pull_request) Failing after 1m5s
Run unit tests / unit_tests (pull_request) Failing after 1m40s
Run unit tests / build-static-assets (pull_request) Has been skipped
f08082fb3b
bustikiller added 1 commit 2025-01-24 07:46:02 +00:00
Add a separate action to list changed migrations
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 55s
Run unit tests / check-licenses (pull_request) Successful in 1m10s
Run unit tests / copyright_notice (pull_request) Successful in 1m17s
Run unit tests / unit_tests (pull_request) Failing after 2m0s
Run unit tests / build-static-assets (pull_request) Has been skipped
644f35c57f
bustikiller added 1 commit 2025-01-24 07:51:07 +00:00
Show number of migrations added
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 48s
Run unit tests / check-licenses (pull_request) Successful in 1m17s
Run unit tests / copyright_notice (pull_request) Successful in 1m43s
Run unit tests / unit_tests (pull_request) Failing after 2m10s
Run unit tests / build-static-assets (pull_request) Has been skipped
139502c69a
bustikiller added 1 commit 2025-01-24 07:55:30 +00:00
Redo migrations after running specs
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 52s
Run unit tests / check-licenses (pull_request) Successful in 1m10s
Run unit tests / copyright_notice (pull_request) Successful in 1m37s
Run unit tests / unit_tests (pull_request) Failing after 2m29s
Run unit tests / build-static-assets (pull_request) Has been skipped
ac470a802b
bustikiller added 1 commit 2025-01-24 07:58:17 +00:00
Add missing variable
Some checks failed
Run unit tests / check-licenses (pull_request) Successful in 56s
Run unit tests / rubocop (pull_request) Successful in 1m32s
Run unit tests / copyright_notice (pull_request) Successful in 1m43s
Run unit tests / unit_tests (pull_request) Failing after 2m50s
Run unit tests / build-static-assets (pull_request) Has been skipped
494431eea6
bustikiller added 1 commit 2025-01-24 08:02:51 +00:00
Exclude db/schema.rb from copyright notice
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 33s
Run unit tests / check-licenses (pull_request) Successful in 34s
Run unit tests / copyright_notice (pull_request) Failing after 40s
Run unit tests / unit_tests (pull_request) Failing after 4m36s
Run unit tests / build-static-assets (pull_request) Has been skipped
c30b6df0a4
bustikiller added 1 commit 2025-01-24 08:03:30 +00:00
Add copyright notice
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 17s
Run unit tests / check-licenses (pull_request) Successful in 35s
Run unit tests / copyright_notice (pull_request) Successful in 1m5s
Run unit tests / unit_tests (pull_request) Failing after 4m2s
Run unit tests / build-static-assets (pull_request) Has been skipped
7baf31dfc5
bustikiller force-pushed test-rollbacks from 7baf31dfc5 to c714a49a04 2025-01-24 08:05:33 +00:00 Compare
bustikiller added 1 commit 2025-01-24 08:08:32 +00:00
Restore original version of the migration
Some checks failed
Run unit tests / build-static-assets (pull_request) Has been cancelled
Run unit tests / rubocop (pull_request) Has been cancelled
Run unit tests / check-licenses (pull_request) Has been cancelled
Run unit tests / copyright_notice (pull_request) Has been cancelled
Run unit tests / unit_tests (pull_request) Has been cancelled
9724e19954
bustikiller added 1 commit 2025-01-24 08:08:55 +00:00
Do not fail job if there are new copyright assignments
All checks were successful
Run unit tests / rubocop (pull_request) Successful in 1m18s
Run unit tests / check-licenses (pull_request) Successful in 1m20s
Run unit tests / copyright_notice (pull_request) Successful in 1m32s
Run unit tests / unit_tests (pull_request) Successful in 2m42s
Run unit tests / build-static-assets (pull_request) Successful in 10m50s
140555ed68
bustikiller added 2 commits 2025-01-25 08:40:13 +00:00
Merge remote-tracking branch 'origin/main' into test-rollbacks
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 1m19s
Run unit tests / check-licenses (pull_request) Successful in 1m24s
Run unit tests / build-static-assets (pull_request) Has been cancelled
Run unit tests / unit_tests (pull_request) Has been cancelled
Run unit tests / copyright_notice (pull_request) Has been cancelled
c44c3b8ec8
bustikiller added 1 commit 2025-01-25 08:41:24 +00:00
Add copyright notice
Some checks failed
Run unit tests / copyright_notice (pull_request) Successful in 2m15s
Run unit tests / rubocop (pull_request) Successful in 2m31s
Run unit tests / check-licenses (pull_request) Successful in 2m46s
Run unit tests / unit_tests (pull_request) Successful in 4m11s
Run unit tests / build-static-assets (pull_request) Has been cancelled
85e1ec453e
bustikiller force-pushed test-rollbacks from 85e1ec453e to c44c3b8ec8 2025-01-25 08:51:00 +00:00 Compare
bustikiller added 1 commit 2025-01-25 08:52:25 +00:00
Redo migrations after running specs
All checks were successful
Run unit tests / check-licenses (pull_request) Successful in 1m46s
Run unit tests / rubocop (pull_request) Successful in 1m52s
Run unit tests / copyright_notice (pull_request) Successful in 2m17s
Run unit tests / unit_tests (pull_request) Successful in 4m50s
Run unit tests / build-static-assets (pull_request) Successful in 31m44s
d4b95c9c55
bustikiller added 1 commit 2025-01-25 08:54:42 +00:00
Add copyright notice
All checks were successful
Run unit tests / rubocop (pull_request) Successful in 1m22s
Run unit tests / check-licenses (pull_request) Successful in 1m30s
Run unit tests / copyright_notice (pull_request) Successful in 2m21s
Run unit tests / unit_tests (pull_request) Successful in 3m35s
Run unit tests / build-static-assets (pull_request) Successful in 30m28s
9bc03f15f5
bustikiller changed title from WIP: Test reversibility of migrations to Test reversibility of migrations 2025-01-25 08:56:28 +00:00
bustikiller scheduled this pull request to auto merge when all checks succeed 2025-01-25 08:56:36 +00:00
bustikiller canceled auto merging this pull request when all checks succeed 2025-01-25 08:58:20 +00:00
bustikiller scheduled this pull request to auto merge when all checks succeed 2025-01-25 08:58:32 +00:00
bustikiller force-pushed test-rollbacks from 9bc03f15f5 to 744b13ecb8 2025-01-25 09:11:21 +00:00 Compare
bustikiller added 1 commit 2025-01-25 09:12:41 +00:00
Fix markup errors
All checks were successful
Run unit tests / check-licenses (pull_request) Successful in 58s
Run unit tests / rubocop (pull_request) Successful in 1m2s
Run unit tests / copyright_notice (pull_request) Successful in 1m48s
Run unit tests / unit_tests (pull_request) Successful in 4m2s
Run unit tests / build-static-assets (pull_request) Successful in 26m47s
60cfbd1a40
bustikiller added 1 commit 2025-01-25 09:14:14 +00:00
Add copyright notice
All checks were successful
Run unit tests / check-licenses (pull_request) Successful in 1m18s
Run unit tests / rubocop (pull_request) Successful in 1m20s
Run unit tests / copyright_notice (pull_request) Successful in 1m55s
Run unit tests / unit_tests (pull_request) Successful in 3m24s
Run unit tests / build-static-assets (pull_request) Successful in 26m0s
27ab5fc896
bustikiller merged commit f414acb2d5 into main 2025-01-25 09:43:43 +00:00
Sign in to join this conversation.
No Reviewers
No Label
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bustikiller/wedding-planner#220
No description provided.