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

Drop query to PDC #583

Merged
merged 4 commits into from
Oct 24, 2023
Merged

Drop query to PDC #583

merged 4 commits into from
Oct 24, 2023

Conversation

LenkaSeg
Copy link
Contributor

@LenkaSeg LenkaSeg commented Oct 15, 2023

Remove PDC calls from the-new-hotness.

PDC was used when checking if a package is retired. Now it is checked on dist-git.

Module pdc.py renamed to retired.py. I'm not sure if it's the best approach, since the other modules are named after the app they are calling, but naming it dist-git for example might be confusing, since there is a pagure module which also uses dist-git.
Another option would be to add the validator of the retired packages as a method of the pagure class. That would need wider changes in the code I think, but it's doable :)

@LenkaSeg LenkaSeg linked an issue Oct 15, 2023 that may be closed by this pull request
@softwarefactory-project-zuul
Copy link

Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/e437638b5612477bbbc3473a37c8145b

✔️ fi-tox-mypy SUCCESS in 5m 45s
✔️ fi-tox-lint SUCCESS in 9m 40s
✔️ fi-tox-format SUCCESS in 9m 35s
✔️ fi-tox-python38 SUCCESS in 10m 07s
✔️ fi-tox-python39 SUCCESS in 10m 02s
✔️ fi-tox-python310 SUCCESS in 10m 04s
✔️ fi-tox-python311 SUCCESS in 9m 53s
✔️ fi-tox-docs SUCCESS in 9m 50s
✔️ fi-tox-bandit SUCCESS in 9m 51s
✔️ fi-tox-diff-cover SUCCESS in 11m 18s

@softwarefactory-project-zuul
Copy link

Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/5f36bf60c6174960a5465d71cf51f236

✔️ fi-tox-mypy SUCCESS in 12m 01s
✔️ fi-tox-lint SUCCESS in 10m 52s
✔️ fi-tox-format SUCCESS in 11m 39s
✔️ fi-tox-python38 SUCCESS in 12m 20s
✔️ fi-tox-python39 SUCCESS in 12m 19s
✔️ fi-tox-python310 SUCCESS in 12m 07s
✔️ fi-tox-python311 SUCCESS in 6m 12s
✔️ fi-tox-docs SUCCESS in 11m 36s
✔️ fi-tox-bandit SUCCESS in 11m 20s
✔️ fi-tox-diff-cover SUCCESS in 13m 40s

@@ -253,9 +253,9 @@ defined in use cases layer.
Class that is checking if the package is newer or not than the package currently available
in Fedora using mdapi system. Inherits from `validator.py`.

* **pdc.py**
* **retired.py**
Copy link
Contributor

Choose a reason for hiding this comment

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

There should be one validator per external system (it makes it easier to replace them when needed). In this case it would be better to update the Pagure validator and add a new key retired to output dictionary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added retired as a new key in the output dictionary under the pagure validator.
But I'm not too happy about having two request calls in one function. It complicates the testing and does not feel right. I'll try to figure out how to make it better.

@Zlopez
Copy link
Contributor

Zlopez commented Oct 16, 2023

The implementation should be different and adhere to original design. One external system per one validator. Also the news file is missing.

@softwarefactory-project-zuul
Copy link

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/fedora-infra/the-new-hotness for 583,1eae069607a006a31a3f2081fdf56d304e700ff6

Signed-off-by: Lenka Segura <[email protected]>
@LenkaSeg
Copy link
Contributor Author

Ah, yes, and the news file. Changing this PR to draft for now.

@softwarefactory-project-zuul
Copy link

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/5bd638246cad4371b60790e4b76a45cd

✔️ fi-tox-mypy SUCCESS in 6m 17s
✔️ fi-tox-lint SUCCESS in 9m 10s
fi-tox-format FAILURE in 6m 02s
fi-tox-python38 FAILURE in 9m 48s
fi-tox-python39 FAILURE in 10m 03s
fi-tox-python310 FAILURE in 9m 49s
fi-tox-python311 FAILURE in 9m 53s
✔️ fi-tox-docs SUCCESS in 9m 27s
✔️ fi-tox-bandit SUCCESS in 9m 18s
fi-tox-diff-cover FAILURE in 11m 00s

@LenkaSeg LenkaSeg marked this pull request as draft October 18, 2023 23:17
@softwarefactory-project-zuul
Copy link

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/7755f1661cfb4a828b9bd160bf95adea

✔️ fi-tox-mypy SUCCESS in 7m 35s
✔️ fi-tox-lint SUCCESS in 7m 40s
fi-tox-format FAILURE in 7m 21s
✔️ fi-tox-python38 SUCCESS in 7m 57s
✔️ fi-tox-python39 SUCCESS in 6m 25s
✔️ fi-tox-python310 SUCCESS in 8m 31s
✔️ fi-tox-python311 SUCCESS in 8m 30s
✔️ fi-tox-docs SUCCESS in 8m 05s
✔️ fi-tox-bandit SUCCESS in 8m 22s
✔️ fi-tox-diff-cover SUCCESS in 9m 58s

@softwarefactory-project-zuul
Copy link

Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/495edbbda1c3478da5aaa5e86c12311f

✔️ fi-tox-mypy SUCCESS in 8m 27s
✔️ fi-tox-lint SUCCESS in 8m 12s
✔️ fi-tox-format SUCCESS in 8m 24s
✔️ fi-tox-python38 SUCCESS in 7m 55s
✔️ fi-tox-python39 SUCCESS in 8m 40s
✔️ fi-tox-python310 SUCCESS in 7m 58s
✔️ fi-tox-python311 SUCCESS in 7m 56s
✔️ fi-tox-docs SUCCESS in 7m 36s
✔️ fi-tox-bandit SUCCESS in 5m 42s
✔️ fi-tox-diff-cover SUCCESS in 9m 48s

@LenkaSeg LenkaSeg marked this pull request as ready for review October 20, 2023 14:12
@LenkaSeg LenkaSeg marked this pull request as draft October 20, 2023 14:13
@softwarefactory-project-zuul
Copy link

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/80977394eea84400a2ec396a0e812c25

✔️ fi-tox-mypy SUCCESS in 12m 51s
✔️ fi-tox-lint SUCCESS in 13m 12s
fi-tox-format FAILURE in 12m 42s
fi-tox-python38 FAILURE in 13m 49s
fi-tox-python39 FAILURE in 13m 50s
✔️ fi-tox-python310 SUCCESS in 13m 42s
✔️ fi-tox-python311 SUCCESS in 13m 35s
✔️ fi-tox-docs SUCCESS in 13m 08s
✔️ fi-tox-bandit SUCCESS in 13m 21s
fi-tox-diff-cover FAILURE in 14m 43s

@LenkaSeg
Copy link
Contributor Author

Formatting fails on black failure to reformat a file with match.
Here related issue in black repo: psf/black#2242
It has been fixed but black command need to be changed to black --target-version py310

@LenkaSeg
Copy link
Contributor Author

LenkaSeg commented Oct 20, 2023

Mmm...python 38 and 39 are also not happy about case matching...
Let's do it the old way with if .. else then :)

@LenkaSeg LenkaSeg assigned LenkaSeg and unassigned LenkaSeg Oct 20, 2023
@LenkaSeg LenkaSeg marked this pull request as ready for review October 20, 2023 14:56
@softwarefactory-project-zuul
Copy link

Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/2b91a76f604f40f9972dd7ca36e16be2

✔️ fi-tox-mypy SUCCESS in 11m 21s
✔️ fi-tox-lint SUCCESS in 11m 11s
✔️ fi-tox-format SUCCESS in 11m 06s
✔️ fi-tox-python38 SUCCESS in 11m 31s
✔️ fi-tox-python39 SUCCESS in 11m 56s
✔️ fi-tox-python310 SUCCESS in 11m 36s
✔️ fi-tox-python311 SUCCESS in 11m 38s
✔️ fi-tox-docs SUCCESS in 11m 31s
✔️ fi-tox-bandit SUCCESS in 11m 04s
✔️ fi-tox-diff-cover SUCCESS in 12m 26s

@softwarefactory-project-zuul
Copy link

Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/59012536379a4b72b2f91bbdc8380659

✔️ fi-tox-mypy SUCCESS in 10m 53s
✔️ fi-tox-lint SUCCESS in 10m 42s
✔️ fi-tox-format SUCCESS in 10m 44s
✔️ fi-tox-python38 SUCCESS in 11m 33s
✔️ fi-tox-python39 SUCCESS in 11m 31s
✔️ fi-tox-python310 SUCCESS in 11m 30s
✔️ fi-tox-python311 SUCCESS in 11m 12s
✔️ fi-tox-docs SUCCESS in 10m 53s
✔️ fi-tox-bandit SUCCESS in 11m 02s
✔️ fi-tox-diff-cover SUCCESS in 12m 18s

Signed-off-by: Lenka Segura <[email protected]>
@softwarefactory-project-zuul
Copy link

Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/a3758c0359af413181ce6903acba0c4f

✔️ fi-tox-mypy SUCCESS in 11m 05s
✔️ fi-tox-lint SUCCESS in 10m 59s
✔️ fi-tox-format SUCCESS in 10m 41s
✔️ fi-tox-python38 SUCCESS in 11m 26s
✔️ fi-tox-python39 SUCCESS in 11m 26s
✔️ fi-tox-python310 SUCCESS in 11m 31s
✔️ fi-tox-python311 SUCCESS in 11m 13s
✔️ fi-tox-docs SUCCESS in 10m 50s
✔️ fi-tox-bandit SUCCESS in 11m 01s
✔️ fi-tox-diff-cover SUCCESS in 12m 29s

Copy link
Contributor

@Zlopez Zlopez left a comment

Choose a reason for hiding this comment

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

Only one minor thing

@softwarefactory-project-zuul
Copy link

Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/98a2c45083da468c9681773a3ae0197f

✔️ fi-tox-mypy SUCCESS in 11m 11s
✔️ fi-tox-lint SUCCESS in 11m 06s
✔️ fi-tox-format SUCCESS in 11m 21s
✔️ fi-tox-python38 SUCCESS in 11m 43s
✔️ fi-tox-python39 SUCCESS in 11m 29s
✔️ fi-tox-python310 SUCCESS in 11m 35s
✔️ fi-tox-python311 SUCCESS in 11m 36s
✔️ fi-tox-docs SUCCESS in 11m 22s
✔️ fi-tox-bandit SUCCESS in 11m 12s
✔️ fi-tox-diff-cover SUCCESS in 12m 37s

@mergify mergify bot merged commit e5f4083 into fedora-infra:master Oct 24, 2023
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.

Drop query to PDC
2 participants