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

Whitelist Fedora updates mirrors #252

Closed
wants to merge 2 commits into from
Closed

Conversation

mbacchi
Copy link
Contributor

@mbacchi mbacchi commented Jul 12, 2018

Some mirrors have out of date repomd.xml files that
are older than the other repository metadata files
(i.e. primary.xml.gz) so we were getting frequent
404 errors. Whitelist 2 mirrors for Fedora 25 and 26.

Submitter Checklist:

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).
  • Tagged reviewers and labelled the pull request as needed.
  • Request a security/privacy review as needed.

Test Plan:

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Request a security/privacy review as needed.
  • Adequate test coverage exists to prevent regressions

Some mirrors have out of date repomd.xml files that
are older than the other repository metadata files
(i.e. primary.xml.gz) so we were getting frequent
404 errors. Whitelist 2 mirrors for Fedora 25 and 26.
@mbacchi mbacchi requested review from bridiver and bkero July 12, 2018 22:06
- # overwrite the originals.
- "https://download.fedoraproject.org/pub/fedora/linux/updates/%s/x86_64/" % version,
- ]
+ if version in '27':
Copy link
Collaborator

Choose a reason for hiding this comment

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

you can remove this and revert back to the original

+ # overwrite the originals.
+ "https://download.fedoraproject.org/pub/fedora/linux/updates/%s/x86_64/" % version,
+ ]
+ elif version in '26':
Copy link
Collaborator

Choose a reason for hiding this comment

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

start the if here and overwrite as needed for other versions

"https://download.opensuse.org/update/leap/%s/oss/" % version,
]

+print("rpm sources list for reference:")
Copy link
Collaborator

Choose a reason for hiding this comment

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

while this may be helpful, patches are fragile and I think it's best to avoid patching for debug output

@mbacchi
Copy link
Contributor Author

mbacchi commented Jul 13, 2018

@bridiver I just updated this PR with a reduced footprint patch. Let me know what you think.

@mbacchi
Copy link
Contributor Author

mbacchi commented Jul 31, 2018

Closing this in favor of performing a high number of retries in order to find a working mirror. Opened tracking issue brave/brave-browser#667

@mbacchi mbacchi closed this Jul 31, 2018
NejcZdovc pushed a commit that referenced this pull request Sep 19, 2019
fmarier pushed a commit that referenced this pull request Oct 29, 2019
Use debug build as a default mode
@bsclifton bsclifton deleted the whitelist_rpm_updates branch November 8, 2019 17:48
petemill pushed a commit that referenced this pull request Jul 27, 2020
Use debug build as a default mode
petemill pushed a commit that referenced this pull request Jul 28, 2020
Use debug build as a default mode
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