Skip to content

goose: 3.15.0 -> 3.19.2#302629

Merged
RaghavSood merged 1 commit intoNixOS:masterfrom
RaghavSood:master
Apr 9, 2024
Merged

goose: 3.15.0 -> 3.19.2#302629
RaghavSood merged 1 commit intoNixOS:masterfrom
RaghavSood:master

Conversation

@RaghavSood
Copy link
Member

@RaghavSood RaghavSood commented Apr 8, 2024

Description of changes

Bumps goose to the latest version

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@ofborg ofborg bot requested a review from yu-re-ka April 8, 2024 18:42
@ofborg ofborg bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Apr 8, 2024
@RaghavSood RaghavSood merged commit e641db7 into NixOS:master Apr 9, 2024
@geekodour
Copy link
Contributor

error: builder for '/nix/store/yb727vzx80sc457b4h016d0ww53kkspb-goose-3.19.2.drv' failed with exit code 1;
       last 10 log lines:
       > 2024/04/15 05:32:58 OK   00003_comments_table.sql (10.65ms)
       > 2024/04/15 05:32:58 OK   00002_posts_table.sql (52.94ms)
       > 2024/04/15 05:32:58 OK   00001_users_table.sql (11.82ms)
       > 2024/04/15 05:32:58 Created new file: /build/TestEmbeddedMigrationscreate_uses_os_fs517639883/001/20240415053258_test.sql
       > 2024/04/15 05:32:58 RENAMED 20240415053258_test.sql => 00001_test.sql
       > --- FAIL: TestLockModeAdvisorySession (0.00s)
       >     provider_run_test.go:941: unexpected error: failed to create docker container: dial unix /var/run/docker.sock: connect: no such file or directory
       > FAIL
       > FAIL       github.com/pressly/goose/v3     32.478s
       > FAIL
       For full logs, run 'nix log /nix/store/yb727vzx80sc457b4h016d0ww53kkspb-goose-3.19.2.drv'.

Getting this error when trying to build. why is it trying to create a docker container?

@RaghavSood
Copy link
Member Author

error: builder for '/nix/store/yb727vzx80sc457b4h016d0ww53kkspb-goose-3.19.2.drv' failed with exit code 1;
       last 10 log lines:
       > 2024/04/15 05:32:58 OK   00003_comments_table.sql (10.65ms)
       > 2024/04/15 05:32:58 OK   00002_posts_table.sql (52.94ms)
       > 2024/04/15 05:32:58 OK   00001_users_table.sql (11.82ms)
       > 2024/04/15 05:32:58 Created new file: /build/TestEmbeddedMigrationscreate_uses_os_fs517639883/001/20240415053258_test.sql
       > 2024/04/15 05:32:58 RENAMED 20240415053258_test.sql => 00001_test.sql
       > --- FAIL: TestLockModeAdvisorySession (0.00s)
       >     provider_run_test.go:941: unexpected error: failed to create docker container: dial unix /var/run/docker.sock: connect: no such file or directory
       > FAIL
       > FAIL       github.com/pressly/goose/v3     32.478s
       > FAIL
       For full logs, run 'nix log /nix/store/yb727vzx80sc457b4h016d0ww53kkspb-goose-3.19.2.drv'.

Getting this error when trying to build. why is it trying to create a docker container?

I suspect it's trying to run tests that run a DB inside docker - what OS are you on?

Maybe we should disable the tests or patch out the ones that require docker, I'll take a look

@geekodour
Copy link
Contributor

geekodour commented Apr 15, 2024

Linux hq 6.1.72 #1-NixOS SMP PREEMPT_DYNAMIC Wed Jan 10 16:10:37 UTC 2024 x86_64 GNU/Linux
OS: NixOS 23.11.2936.428544ae95ee (Tapir) x86_64

Maybe we should disable the tests or patch out the ones that require docker, I'll take a look

Yes, think we don't need to run the tests when all we want to do is to build the package and run it on our systems

@geekodour
Copy link
Contributor

geekodour commented Apr 15, 2024

Seems like this docker based test was intentionally added in #232485, wonder why

Oh I think we just need to add the new test (pressly/goose#493) to the skip check list added in #232485

Update:
working on a patch for this^

geekodour added a commit to geekodour/nixpkgs that referenced this pull request Apr 15, 2024
fixes NixOS#302629

After updating from `3.15.0 -> 3.19.2` build for `goose` was failing.
This was due to the tests failing esp on integration tests which
required the docker darmon to be running.

Tests with similar nature were already skipped, but on the upgraded
version newer integration tests were added. This change adds these
changes to the test skip list aswell.

Skip following tests which require a docker daemon to be running
- TestLockModeAdvisorySession
- TestDialectStore
- TestGoMigrationStats
- TestPostgresSessionLocker

Links:
- Commit adding the new integration tests: pressly/goose@b2c483a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants