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

create_environment_repos: allow running command on prod (bug 1944072) #204

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

zzzeid
Copy link
Collaborator

@zzzeid zzzeid commented Jan 27, 2025

  • also add newest ESR repo
  • improve logging

- also add newest ESR repo
- improve logging
@zzzeid zzzeid force-pushed the zeid/bug-1944072-add-prod-repos branch from 2dd1485 to 57ba098 Compare January 27, 2025 18:49
@zzzeid zzzeid marked this pull request as ready for review January 27, 2025 18:55
@zzzeid zzzeid requested review from shtrom and cgsheeh January 28, 2025 13:30
@@ -252,6 +252,15 @@
"milestone_tracking_flag_template": "cf_status_firefox_esr{milestone}",
"commit_flags": [DONTBUILD],
},
{
Copy link
Member

Choose a reason for hiding this comment

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

We define these repos as dicts, then when using them we do Repo.objects.create(**definition). Perhaps it would make more sense to define these as Repo and then create them with repo.save() instead.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

On production this is basically a single use script. On other environments, it will be reused so it is worth improving it some more if we feel the need. I think this is pretty good as is for the time being, but we can consider these improvements for the future.

@zzzeid zzzeid merged commit 208e6c8 into main Jan 28, 2025
1 check passed
@zzzeid zzzeid deleted the zeid/bug-1944072-add-prod-repos branch January 28, 2025 18:28
cgsheeh added a commit that referenced this pull request Feb 24, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
…(Bug 1897044) (#204)

The `error` and `exception` level logging calls cause Sentry to treat
expected states as new issues. Lower the level to `info` to quiet down
Sentry. Issues experienced by the Treestatus API will still show up in
the LandoAPI logs, and at the `info` level we can still debug which
code paths are taken by various requests.
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.

None yet

2 participants