Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@FrostyX
Copy link
Member

@FrostyX FrostyX commented Oct 19, 2025

Fix #3502

@FrostyX
Copy link
Member Author

FrostyX commented Oct 19, 2025

Also, we will need to change our frontend config in ansible:

index b380d7930d..627598f241 100644
--- a/roles/copr/frontend/templates/copr.conf
+++ b/roles/copr/frontend/templates/copr.conf
@@ -282,7 +282,8 @@ USAGE_TREEMAP_TEAMS = {
     "Python-team": ["@python", "thrnciar", "torsava", "encukou", "cstratak", "churchyard"],
 }

-PULP_CONTENT_URL = "{{ pulp_content_url }}"
+PULP_CONTENT_URL = '{{ backend_base_url }}/results/'
+

 # OIDC config

@github-actions
Copy link

github-actions bot commented Oct 19, 2025

Pull Request validation

Failed

🔴 Review - Missing review from a member (2 required)

Success

🟢 CI - All checks have passed
🟢 Review - Reviewed by undefined

Copy link
Member

@nikromen nikromen left a comment

Choose a reason for hiding this comment

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

I see this change is already on stage? ... so I guess this fix was not about the Repo downloads but about the Artchitectures install count? This seems like it's still not working :/ the repo downloads is correct for both chroots, but the install count is still 0 (https://copr.stg.fedoraproject.org/coprs/nikromen/xx/)

image

repomd_url_regex = re.compile(base_regex + "repodata/repomd.xml", re.IGNORECASE)
rpm_url_regex = re.compile(
base_regex + r"(?P<build_dir>[^/]*)/(?P<rpm>[^/]*\.rpm)", re.IGNORECASE)
base_regex + r"(?:(?P<build_dir>[^/]*)/)?(?:Packages/(?P<subdir>[a-zA-Z])/)?(?P<rpm>[^/]*\.rpm)",
Copy link
Member

Choose a reason for hiding this comment

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

I have no idea what am I looking at :D

Copy link
Member

Choose a reason for hiding this comment

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

I don't get why we need the non-matching groups ((?:) 🤷

Copy link
Member

Choose a reason for hiding this comment

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

I think I would appreciate the "why?" question answered in the commit message, e.g. what URLs we were not matching before, and we do now ...
Otherwise, it's just a hit counter thing...

Copy link
Member Author

Choose a reason for hiding this comment

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

The regex looks cleaner now

@FrostyX
Copy link
Member Author

FrostyX commented Oct 22, 2025

Also, we will need to change our frontend config in ansible:

Deployed in production
https://pagure.io/fedora-infra/ansible/c/02b039a9a293b71f51cc0e06cbccf7d5b34dc6d9

Copy link
Member

@nikromen nikromen left a comment

Choose a reason for hiding this comment

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

OK the cronjob correctly updated the architectures downloads https://copr.stg.fedoraproject.org/coprs/nikromen/xx/

@nikromen nikromen merged commit 4c5dcf2 into fedora-copr:main Nov 3, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pulp - Count RPM downloads

3 participants