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

Skip install step when metadata is unchanged #99

Merged
merged 3 commits into from
Nov 27, 2024

Conversation

HebaruSan
Copy link
Member

@HebaruSan HebaruSan commented Nov 27, 2024

Motivation

KSP-CKAN/NetKAN#10308 is changing 177 netkans in a way that should have no impact on their inflated metadata (with a few exceptions where x_via: Automated SpaceDock CKAN submission is being removed). This took over an hour to validate, partly because it ran the full validation for every mod, including installing it and its dependencies.

When a .ckan file exactly matches what we already have for that mod release in the metadata repo, it will install the same as before. We have a diff step already, but we simply print it regardless of what it is and then proceed to the install.

Changes

Now if a diff is empty, we announce it and skip the install step. This will make no-op netkan changes validate more quickly.

@HebaruSan HebaruSan merged commit d0eab53 into KSP-CKAN:master Nov 27, 2024
2 checks passed
@HebaruSan HebaruSan deleted the feature/empty-diff-skip-inst branch November 27, 2024 17:11
@HebaruSan
Copy link
Member Author

Before: 1 hr 13 min
After: 11 min!

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

Successfully merging this pull request may close these issues.

1 participant