Skip to content

Conversation

@andrzej-kaczmarek
Copy link
Contributor

No description provided.

This allows to use pattern matching on allowed/ignored repo lists
instead of simple string comparison only.

By default, string comparison is used.

If pattern begins with "~", it's compiled as a regexp (excluding "~"
character). The regexp pattern has added start of string anchor
automatically, i.e. pattern "~apache.*" is compiled as "^apache.*".

If pattern ends with "*", it's used as a wildcard and matches any repo
starting with pattern excluding "*" character, i.e. pattern "apache-*"
is equivalent to regexp "^apache-.*$".
Copy link
Contributor

@kasjer kasjer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested OK, code not inspected.

This improves newt upgrade by optimizing the way repos are checked for
potential upgrade. Each repo is now checked only once i.e. if it was
loaded from project.yml and updated it's not considered for update
anymore. This also means no duplicate messages are printed.
This improves newt upgrade output to include message when it's fetching
updates to each repository and also skips "trying to make changes..."
message if there's no prompt requested.
If external repo has version specified as commit SHA and that SHA is
currently checked out, we don't need to fetch that repo.
@andrzej-kaczmarek andrzej-kaczmarek merged commit fa83de6 into apache:master Oct 25, 2024
73 checks passed
@andrzej-kaczmarek andrzej-kaczmarek deleted the upgrade-optimize branch October 25, 2024 14:17
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.

4 participants