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

Changes and fixes for showing reports against nightly releases and OEM sysexts #149

Merged
merged 6 commits into from
Sep 26, 2023

Conversation

krnowak
Copy link
Member

@krnowak krnowak commented Sep 22, 2023

Please see each of the commit for the changes made and some reasoning.

The show-changes script required to be run from the parent directory
of the scripts/coreos-overlay/portage-stable repositories. The
requirement may be inconvenient in some situations (like the repo
having a different name, or being forced to change the directory
before invoking the script). Allow pointing the show-changes script to
the locations of scripts, coreos-overlay and portage-stable
repositories. If the locations are not overridden, then the script has
the old expectations.
Without the change, the script could be fetching changes twelve times
(once for scripts, once for coreos-overlay and once for
portage-stable, all repeated four times for four change categories).

Just fetch the changes once for each repo if the repo directory
exists. This makes the script much faster.
Instead of adding another special case for contents file (as it would
be the case by adding support for OEM sysext image content files) just
expect all files ending with _contents.txt (or contents_wtd.txt) to be
of specific format.
We generate some intermediate files using `git diff` with an option to
generate a large number of context lines in order to print all the
unchanged lines. But if both files are the same, git diff prints no
output at all. In such case, we need to copy one of the files and
prepend a space to it to have a "diff" file with unchanged lines only.

This fixes some ominous warnings about expecting a bad report.
@krnowak krnowak merged commit e241367 into master Sep 26, 2023
@krnowak krnowak deleted the krnowak/image-changes branch September 26, 2023 08:31
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.

2 participants