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

[6.x] Remove insertion of extra repairs in patch queue #8278

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

msullivan
Copy link
Member

@msullivan msullivan commented Jan 30, 2025

Currently, if there is any repair in a patch queue, we insert a
repair after every patch that modifies the std schema.

This was in combination with deferring all repairs until the last one
in the queue, which allowed us to avoid needing to load the current
standard schema in order to do a repair. But we implemented support
for doing that as part of patching user extensions, so merge all of
the schema repair code into that.

I tested this on 5.x's substantial collection of complex patches (see #8277), and
then forward ported to master, and then backported this to 6.x.

@msullivan
Copy link
Member Author

Forward porting had enough conflicts that I'm doing a synthetic test for 6.x.

It would be really nice to have tests for the patching system: #5805

msullivan added a commit that referenced this pull request Jan 30, 2025
Currently, if there is *any* repair in a patch queue, we insert a
repair after *every* patch that modifies the std schema.

This was in combination with deferring all repairs until the last one
in the queue, which allowed us to avoid needing to load the current
standard schema in order to do a repair. But we implemented support
for doing that as part of patching user extensions, so merge all of
the schema repair code into that.

I tested this on 5.x's substantial collection of complex patches, and
then forward ported. Since I had to resolve more conflicts there than
I expected, I then also injected a testing repair into the 6.x
backport (#8278), which shook out that `schema_repair()` is fully
broken on 6.x (fixed in #8279), but no patch-specific issues.
@msullivan msullivan marked this pull request as draft January 30, 2025 06:33
msullivan added a commit that referenced this pull request Jan 30, 2025
Currently, if there is *any* repair in a patch queue, we insert a
repair after *every* patch that modifies the std schema.

This was in combination with deferring all repairs until the last one
in the queue, which allowed us to avoid needing to load the current
standard schema in order to do a repair. But we implemented support
for doing that as part of patching user extensions, so merge all of
the schema repair code into that.

I tested this on 5.x's substantial collection of complex patches, and
then forward ported. Since I had to resolve more conflicts there than
I expected, I then also injected a testing repair into the 6.x
backport (#8278), which shook out that `schema_repair()` is fully
broken on 6.x (fixed in #8279), but no patch-specific issues.
Currently, if there is *any* repair in a patch queue, we insert a
repair after *every* patch that modifies the std schema.

This was in combination with deferring all repairs until the last one
in the queue, which allowed us to avoid needing to load the current
standard schema in order to do a repair. But we implemented support
for doing that as part of patching user extensions, so merge all of
the schema repair code into that.

I tested this on 5.x's substantial collection of complex patches, and
then forward ported to master, and then backported this to 6.x.
@msullivan msullivan marked this pull request as ready for review January 30, 2025 16:50
@msullivan msullivan merged commit 34923bd into release/6.x Jan 31, 2025
30 checks passed
@msullivan msullivan deleted the 6x-simplify-repair branch January 31, 2025 04:59
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.

1 participant