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

CI failure in rollback of newtype migrations #256

Closed
jayvdb opened this issue Apr 20, 2024 · 1 comment · Fixed by #257
Closed

CI failure in rollback of newtype migrations #256

jayvdb opened this issue Apr 20, 2024 · 1 comment · Fixed by #257

Comments

@jayvdb
Copy link
Collaborator

jayvdb commented Apr 20, 2024

#250 passed, but then failed on main twice with

---- migrate_and_rollback_pg stdout ----
Rolled back 20240406_035726416_tags
thread 'migrate_and_rollback_pg' panicked at examples/newtype/tests/rollback.rs:46:60:
called `Result::unwrap_err()` on an `Ok` value: ()
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::result::unwrap_failed
   3: core::result::Result<T,E>::unwrap_err
   4: rollback::migrate_and_rollback
   5: rollback::migrate_and_rollback_pg
   6: rollback::migrate_and_rollback_pg::{{closure}}
   7: core::ops::function::FnOnce::call_once
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

i.e. the rollback was successful.
Locally it passes; i.e. the rollback is unsuccessful , every time.

And on the latest push for PR #252 , it has now failed 5 times in a row on linux.
https://github.com/Electron100/butane/actions/runs/8766992655?pr=252

Luckily, since it is always unsuccessful for me, I can investigate it. Will do later today.

@jayvdb
Copy link
Collaborator Author

jayvdb commented Apr 20, 2024

Locally I now see

---- migrate_and_rollback_pg stdout ----
thread 'migrate_and_rollback_pg' panicked at examples/newtype/tests/rollback.rs:40:43:
called `Result::unwrap()` on an `Err` value: Postgres(Error { kind: Db, cause: Some(DbError { severity: "ERROR", parsed_severity: Some(Error), code: SqlState(E2BP01), message: "cannot drop table blog because other objects depend on it", detail: Some("constraint post_blog_fkey on table post depends on table blog"), hint: Some("Use DROP ... CASCADE to drop the dependent objects too."), position: None, where_: None, schema: None, table: None, column: None, datatype: None, constraint: None, file: Some("dependency.c"), line: Some(1197), routine: Some("reportDependentObjects") }) })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant