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

Fix CI for Rocket diesel async example #1

Merged

Conversation

ELD
Copy link

@ELD ELD commented Nov 26, 2023

This PR is for the upstream PR for enabling Postgres for diesel-async. There are several changes that this PR introduces to the CI configuration to ensure this works:

  • Start the Postgres services on Linux, macOS, and Windows (pre-installed in GHA images, just needs to be started)
  • Create the specified user and database for the example
  • Swap vcpkg caching from a static zip to GHA actions/cache (this can be reverted to a static zip, but it doesn't work to download the zip, upgrade libpq, and roll forward; we need to re-vendor the zip cache)

@ELD ELD force-pushed the fix/diesel_async_examples branch 3 times, most recently from 6143c63 to 2217201 Compare November 27, 2023 22:53
@ELD ELD force-pushed the fix/diesel_async_examples branch 24 times, most recently from be06854 to 6aff0e0 Compare December 29, 2023 06:26
@ELD ELD marked this pull request as ready for review December 29, 2023 06:28
@ELD
Copy link
Author

ELD commented Dec 29, 2023

@ThouCheese Just marked this ready for review. It passes CI on my fork (https://github.com/ELD/Rocket/actions/runs/7354153657/attempts/1) and the successive runs show that vcpkg is caching properly.

@ELD
Copy link
Author

ELD commented Dec 29, 2023

Whoops, uncommented some pieces of the CI workflow. If it passes again, it's good to go!

Check this job to know: https://github.com/ELD/Rocket/actions/runs/7354415905 https://github.com/ELD/Rocket/actions/runs/7354437952

- Start the preinstalled postgres service on the all executors
  - Note: This will work until macos-13 becomes the default since it's
    seemingly not installed on those runner images
- Create `rocket_runner` user
- Create the `epic_todo_database` DB
- Update SQL migrations to match Postgres dialect (different from SQLite
  or MySQL)
- Update user/pass configuration for Postgres user/db
@ThouCheese ThouCheese merged commit c93fb61 into ThouCheese:fix/diesel_async_examples Dec 30, 2023
@ELD ELD deleted the fix/diesel_async_examples branch December 30, 2023 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants