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: add diesel print-schema check #10527

Merged
merged 4 commits into from
Jan 31, 2025
Merged

Conversation

bayandin
Copy link
Member

@bayandin bayandin commented Jan 27, 2025

Problem

We want to check that diesel print-schema doesn't generate any changes (storage_controller/src/schema.rs) in comparison with the list of migration.

Summary of changes

  • Add diesel_cli to build-tools image
  • Add Check diesel schema step to build-neon job, at this stage we have all required binaries, so don't need to compile anything additionally
  • Check runs only on x86 release builds to be sure we do it at least once per CI run.

@bayandin bayandin linked an issue Jan 27, 2025 that may be closed by this pull request
@bayandin bayandin force-pushed the bayandin/add-diesel-print-schema-check branch 6 times, most recently from fb5eff6 to 15578bb Compare January 27, 2025 23:18
@bayandin bayandin force-pushed the bayandin/add-diesel-print-schema-check branch from 15578bb to c29998c Compare January 27, 2025 23:46
Copy link

github-actions bot commented Jan 28, 2025

7414 tests run: 7062 passed, 0 failed, 352 skipped (full report)


Code coverage* (full report)

  • functions: 33.3% (8515 of 25538 functions)
  • lines: 49.1% (71504 of 145568 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
fce6b0e at 2025-01-31T03:44:36.887Z :recycle:

@bayandin bayandin force-pushed the bayandin/add-diesel-print-schema-check branch from be66b54 to 481b6b6 Compare January 28, 2025 11:06
@bayandin bayandin force-pushed the bayandin/add-diesel-print-schema-check branch 3 times, most recently from 916f64c to 94301f1 Compare January 31, 2025 02:14
@bayandin bayandin force-pushed the bayandin/add-diesel-print-schema-check branch from 94301f1 to fce6b0e Compare January 31, 2025 02:46
@bayandin bayandin requested a review from arpad-m January 31, 2025 02:53
@bayandin bayandin marked this pull request as ready for review January 31, 2025 02:53
@bayandin bayandin requested a review from a team as a code owner January 31, 2025 02:53
@bayandin
Copy link
Member Author

The steps takes ~1s to run: https://github.com/neondatabase/neon/actions/runs/13065424194/job/36456904782?pr=10527#step:25:1

@bayandin bayandin added this pull request to the merge queue Jan 31, 2025
Merged via the queue into main with commit 503bc72 Jan 31, 2025
93 checks passed
@bayandin bayandin deleted the bayandin/add-diesel-print-schema-check branch January 31, 2025 11:49
winter-loo pushed a commit to winter-loo/neon that referenced this pull request Feb 4, 2025
## Problem

We want to check that `diesel print-schema` doesn't generate any changes
(`storage_controller/src/schema.rs`) in comparison with the list of
migration.

## Summary of changes
- Add `diesel_cli` to `build-tools` image
- Add `Check diesel schema` step to `build-neon` job, at this stage we
have all required binaries, so don't need to compile anything
additionally
- Check runs only on x86 release builds to be sure we do it at least
once per CI run.
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 this pull request may close these issues.

diesel print-schema should be clean
3 participants