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

helpers: Hack around MEDs/oe-builtin issue #325

Merged
merged 1 commit into from
Feb 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,13 @@ def fio_dnsbase():
'''Find the dns base hosting jobserv. For example when running under
api.foundries.io, this would return foundries.io
'''
parts = urlparse(os.environ["H_RUN_URL"])
_, base = parts.netloc.split(".", 1)
return base
run_url = os.environ.get("H_RUN_URL")
Copy link
Contributor

Choose a reason for hiding this comment

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

Could be os.environ.get("H_RUN_URL", "https://api.foundries.io") too. Or, os.environ.get("H_RUN_URL",os.environ.get("GIT_URL"))

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 giturl but I don't think it gets passed into bitbake does it?

Copy link
Member

Choose a reason for hiding this comment

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

Probably not the case.

Copy link
Contributor

Choose a reason for hiding this comment

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

I see it in the bitbake runs.

GIT_URL=https://source.foundries.io/factories/msul-dev01/lmp-manifest.git

if run_url:
parts = urlparse(run_url)
_, base = parts.netloc.split(".", 1)
return base
status("WARNING: H_RUN_URL not defined, defaulting fio_dnsbase to be foundries.io")
return "foundries.io"


def jobserv_get(url):
Expand Down