-
Notifications
You must be signed in to change notification settings - Fork 4
Validate-fedora-ci-fixes #25
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
Merged
majamassarini
merged 6 commits into
packit:main
from
majamassarini:validate-fedora-ci-fixes
Apr 14, 2026
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
4556df5
Fix Pagure git remote setup when fork already exists
majamassarini 8fe1c98
Use test comment for skip_build tests instead of build comment
majamassarini 1fb9ad9
Add extended wait for GitLab webhook delays on opened PR tests
majamassarini 975f63c
Add SSH configuration to avoid host key verification prompts
majamassarini 4bee123
Set Sentry environment based on deployment configuration
majamassarini 178bb15
Increase test staggering time from 60 to 180 seconds
majamassarini File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,16 @@ | ||
| FROM fedora:latest | ||
|
|
||
| RUN dnf install -y python3-ogr python3-copr python3-koji python3-pip fedpkg krb5-workstation && dnf clean all | ||
| RUN dnf install -y python3-ogr python3-copr python3-koji python3-pip fedpkg krb5-workstation openssh-clients && dnf clean all | ||
|
|
||
| RUN pip3 install --upgrade sentry-sdk && pip3 check | ||
|
|
||
| # Configure SSH to not prompt for host key verification | ||
| RUN mkdir -p /root/.ssh && \ | ||
| echo "Host pkgs.fedoraproject.org" >> /root/.ssh/config && \ | ||
| echo " StrictHostKeyChecking accept-new" >> /root/.ssh/config && \ | ||
| echo " UserKnownHostsFile /dev/null" >> /root/.ssh/config && \ | ||
| chmod 600 /root/.ssh/config | ||
|
|
||
| RUN pip3 install git+https://github.com/packit/validation.git | ||
|
|
||
| CMD ["validation"] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,7 +36,15 @@ def sentry_sdk(): | |
| if sentry_secret := getenv("SENTRY_SECRET"): | ||
| import sentry_sdk | ||
|
|
||
| sentry_sdk.init(sentry_secret) | ||
| from validation.deployment import DEPLOYMENT | ||
|
|
||
| # Set environment based on deployment to distinguish in Sentry | ||
| environment = f"validation-{DEPLOYMENT.name}" | ||
|
Member
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. 👍 |
||
|
|
||
| sentry_sdk.init( | ||
| sentry_secret, | ||
| environment=environment, | ||
| ) | ||
| return sentry_sdk | ||
|
|
||
| logging.warning("SENTRY_SECRET was not set!") | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
We could probably pregenerate the
KnownHosts, but I don't think it's worth it here.