This file contains hidden or 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
| $ RUBY_IMAGE=rubylang/ruby:master docker compose -f .buildkite/docker-compose.yml build base | |
| [+] Building 270.4s (23/25) | |
| => [internal] load local bake definitions 0.0s | |
| => => reading from stdin 568B 0.0s | |
| => [internal] load build definition from Dockerfile 0.0s | |
| => => transferring dockerfile: 6.50kB 0.0s | |
| => [internal] load metadata for docker.io/rubylang/ruby:master 2.1s | |
| => [internal] load .dockerignore 0.0s | |
| => => transferring context: 2B 0.0s | |
| => [ 1/20] FROM docker.io/rubylang/ruby:master@sha256:7174ce49398bcf026e28b3946430cb253dbe1c9cc7d5 10.9s |
This file contains hidden or 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
| #4 Patched PostgreSQL : NOT ENFORCED -> ENFORCED restires pg_trigger tgdeferrable and tginitdeferred value to t | |
| ``` | |
| postgres=# select version(); | |
| version | |
| -------------------------------------------------------------------- | |
| PostgreSQL 19devel on x86_64-linux, compiled by gcc-15.2.1, 64-bit | |
| (1 row) |
This file contains hidden or 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
| #3 NOT ENFORCED -> ENFORCED resets pg_trigger tgdeferrable and tginitdeferred value to f | |
| ``` | |
| postgres=# select version(); | |
| version | |
| ----------------------------------------------------------------------------------------------------------------------------- | |
| PostgreSQL 18.3 (Homebrew) on aarch64-apple-darwin25.2.0, compiled by Apple clang version 17.0.0 (clang-1700.6.3.2), 64-bit | |
| (1 row) | |
| postgres=# CREATE TABLE parent ( | |
| id INT PRIMARY KEY |
This file contains hidden or 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
| #2 It raises "ERROR: insert or update on table "child" violates foreign key constraint "child_parent_fk" | |
| ``` | |
| postgres=# select version(); | |
| version | |
| ----------------------------------------------------------------------------------------------------------------------------- | |
| PostgreSQL 18.3 (Homebrew) on aarch64-apple-darwin25.2.0, compiled by Apple clang version 17.0.0 (clang-1700.6.3.2), 64-bit | |
| (1 row) | |
| postgres=# CREATE TABLE parent ( |
This file contains hidden or 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
| #1 It should raise "ERROR: insert or update on table "child" violates foreign key constraint "child_parent_fk" but does not | |
| ```sql | |
| postgres=# select version(); | |
| version | |
| ----------------------------------------------------------------------------------------------------------------------------- | |
| PostgreSQL 18.3 (Homebrew) on aarch64-apple-darwin25.2.0, compiled by Apple clang version 17.0.0 (clang-1700.6.3.2), 64-bit | |
| (1 row) | |
| postgres=# CREATE TABLE parent ( | |
| id INTEGER PRIMARY KEY, |
This file contains hidden or 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
| $ RUBY_IMAGE=rubylang/ruby:master docker compose -f .buildkite/docker-compose.yml build base | |
| docker tag buildkite-base buildkite_base | |
| [+] Building 585.2s (27/27) FINISHED | |
| => [internal] load local bake definitions 0.0s | |
| => => reading from stdin 610B 0.0s | |
| => [internal] load build definition from Dockerfile 0.0s | |
| => => transferring dockerfile: 6.72kB 0.0s | |
| => [internal] load metadata for docker.io/rubylang/ruby:master 2.3s | |
| => [auth] rubylang/ruby:pull token for registry-1.docker.io 0.0s | |
| => [internal] load .dockerignore |
This file contains hidden or 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
| $ RUBY_IMAGE=ruby:3.4 docker compose -f .buildkite/docker-compose.yml build base | |
| docker tag buildkite-base buildkite_base | |
| [+] Building 403.2s (27/27) FINISHED | |
| => [internal] load local bake definitions 0.0s | |
| => => reading from stdin 598B 0.0s | |
| => [internal] load build definition from Dockerfile 0.0s | |
| => => transferring dockerfile: 6.72kB 0.0s | |
| => [internal] load metadata for docker.io/library/ruby:3.4 2.5s | |
| => [auth] library/ruby:pull token for registry-1.docker.io 0.0s | |
| => [internal] load .dockerignore |
This file contains hidden or 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
| ``` | |
| % RUBY_IMAGE=rubylang/ruby:master docker compose -f .buildkite/docker-compose.yml build --pull base | |
| docker tag buildkite-base buildkite_base | |
| CI=1 docker compose -f .buildkite/docker-compose.yml run -e PRE_STEPS -e RACK --rm railties runner railties 'rake test' | |
| [+] Building 243.8s (26/26) FINISHED | |
| => [internal] load local bake definitions 0.0s | |
| => => reading from stdin 632B 0.0s | |
| => [internal] load build |
This file contains hidden or 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
| ~/src/github.com/rails/rails % RUBY_IMAGE=rubylang/ruby:master docker compose -f .buildkite/docker-compose.yml build --pull base | |
| docker tag buildkite-base buildkite_base | |
| CI=1 docker compose -f .buildkite/docker-compose.yml run -e PRE_STEPS -e RACK --rm railties runner railties 'rake test' | |
| [+] Building 543.5s (26/26) FINISHED | |
| => [internal] load local bake definitions 0.0s | |
| => => reading from stdin 632B 0.0s | |
This file contains hidden or 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
| test=# CREATE TABLE "posts" ("id" bigserial primary key, "title" character varying); | |
| CREATE TABLE | |
| test=# ALTER TABLE "posts" ADD CONSTRAINT posts_const CHECK (char_length(title) >= 5) NOT VALID; | |
| ALTER TABLE | |
| test=# CREATE TABLE "comments" ("id" bigserial primary key, "body" text, CONSTRAINT comments_const CHECK (char_length(body) >= 5) NOT VALID); | |
| CREATE TABLE | |
| test=# SELECT conname, convalidated FROM pg_constraint WHERE contype = 'c' | |
| and conname in('posts_const','comments_const'); | |
| conname | convalidated | |
| ----------------+-------------- |
NewerOlder