-
Notifications
You must be signed in to change notification settings - Fork 56
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
OTA-1348: Fix dkrv2_openshift_secondary_metadata_scraper
openshift_secondary_metadata_extraction
test
#978
Changes from all commits
3f52d44
336aad7
b854ca0
b6bcc62
12dc4ba
58b841d
cf33b03
0d7d5b2
7459d55
763530d
dbca501
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-----BEGIN PGP PUBLIC KEY BLOCK----- | ||
|
||
mDMEZyopcxYJKwYBBAHaRw8BAQdAXH1M1WCrEClQqIx8keNmUPmMPiAjzhEoCBph | ||
+jnewT20H0RhdmlkIEh1cnRhIDxkaHVydGFAcmVkaGF0LmNvbT6IkwQTFgoAOxYh | ||
BAFg3HqS5RZ949wgw26Qne9O4omXBQJnKilzAhsDBQsJCAcCAiICBhUKCQgLAgQW | ||
AgMBAh4HAheAAAoJEG6Qne9O4omXyigA/ikgLwiwS9DwRTB59fknPxf1RmNKvsDG | ||
e6r/UGUDG6GAAP4iYVunXoUzNtp67f6SvtYLABL8TVIUpcpp5MOe6wWqBrg4BGcq | ||
KXMSCisGAQQBl1UBBQEBB0D8r9JYjG2cl4RwkGomUN+IMNTI4ozkOac7J2K/tKfD | ||
NgMBCAeIeAQYFgoAIBYhBAFg3HqS5RZ949wgw26Qne9O4omXBQJnKilzAhsMAAoJ | ||
EG6Qne9O4omXM0QA/in7Dw9H10eZC2dp/7qdD23RIBIMtoM3ITJwuPwDC7QVAQCB | ||
fEPBrHTx/mE5HD3+qRTlzX8bpgtTP4z0M9Y3fzfEAg== | ||
=HUqV | ||
-----END PGP PUBLIC KEY BLOCK----- |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ for target in "${@}"; do | |
tag="${tag_raw/_/-}" | ||
|
||
full_tag="${REPO_BASE}-${repo}:${tag}" | ||
buildah bud -t "${full_tag}" "${target}" | ||
buildah bud -t "${full_tag}" --format docker "${target}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This graph-builder/tests/images/build-n-push-buildah.sh script is run in two places.
This change is needed for the former script as described in the change's commit. However, I have not run the latter script with the new changes. I would like to run it after all tests are fixed to verify the change and to more easily notice any tests start breaking. Just checked, it seems running the script won't be necessary probably; the existing images produced by the latter script already have the docker format.
|
||
|
||
if [[ -e "${arch_file}" ]]; then | ||
img_arch="$(head -n1 ${arch_file})" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm particularly concerned about this change.
we've similar code fragment in the other secondary parser https://github.com/openshift/cincinnati/blob/master/cincinnati/src/plugins/internal/graph_builder/github_openshift_secondary_metadata_scraper/plugin.rs#L13-L19
does this change affect the outcome of unit/e2es etc ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When debugging the unit tests I have written down my findings in the 005098f commit:
I did not have much luck in understanding exactly why. I have concluded that the chosen decoder or the archive likely influences the functionality.
Let me run the CI on the PR changes excluding this one to check e2e 👍 Without this change, the unit tests locally did not pass for me as nothing was getting matched by the original
DEFAULT_OUTPUT_ALLOWLIST
regex patterns.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
e2e
job passes with and without this change. Check PR test history. Although, I do not know what thee2e
job is testing.The
cargo test
job starts failing withpanicked at 'no files were extracted'
:This means the current regex patterns on
master
were not able to match anything, and thus nothing was extracted.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The c466179 in the full PR test history reverted the commits regarding the modifications to the
DEFAULT_OUTPUT_ALLOWLIST
variable.I am dropping the reverts.