Skip to content

Conversation

@jcristau
Copy link
Contributor

If no root url is set in the environment but
PRODUCTION_TASKCLUSTER_ROOT_URL is set, we should use that.

See https://bugzilla.mozilla.org/show_bug.cgi?id=1996183

@jcristau jcristau requested a review from a team as a code owner October 24, 2025 09:17
@jcristau jcristau requested a review from hneiva October 24, 2025 09:17
Copy link
Contributor

@Eijebong Eijebong left a comment

Choose a reason for hiding this comment

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

LGTM. I personally don't mind either but in case you'd prefer it, looks like optionsFromEnvironment has a defaults parameter that you could set to that.

def optionsFromEnvironment(defaults=None):
    options = defaults or {}

@jcristau
Copy link
Contributor Author

Thanks, updated. I figure we should also have tests for get_taskcluster_client...

@jcristau jcristau force-pushed the tc-client-root-url branch 5 times, most recently from 91702f1 to 2d4d8eb Compare October 24, 2025 11:34
…T_URL

If no root url is set in the environment but
PRODUCTION_TASKCLUSTER_ROOT_URL is set, we should use that.

See https://bugzilla.mozilla.org/show_bug.cgi?id=1996183
@jcristau jcristau merged commit d8179b3 into taskcluster:main Oct 24, 2025
16 checks passed
@jcristau jcristau deleted the tc-client-root-url branch October 24, 2025 11:53
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