Skip to content

Conversation

alexgg
Copy link
Contributor

@alexgg alexgg commented Mar 10, 2025

Use the suite's API URL instead.

Change-type: patch

Use the suite's API URL instead.

Change-type: patch
Signed-off-by: Alex Gonzalez <alexg@balena.io>
@alexgg alexgg marked this pull request as draft March 10, 2025 18:51
@alexgg alexgg had a problem deploying to balena-cloud.com March 10, 2025 18:54 — with GitHub Actions Failure
@alexgg alexgg had a problem deploying to balena-cloud.com March 10, 2025 18:54 — with GitHub Actions Failure
@alexgg alexgg had a problem deploying to bm.balena-dev.com March 10, 2025 18:54 — with GitHub Actions Failure
@alexgg alexgg had a problem deploying to bm.balena-dev.com March 10, 2025 18:54 — with GitHub Actions Failure
// normalize the version string/range, supports 'latest', 'recommended', etc
const balenaSdkProd = getSdk({
apiUrl: "https://api.balena-cloud.com",
apiUrl: this.suite.options.balena.apiUrl,
Copy link
Member

Choose a reason for hiding this comment

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

@alexgg In the first iteration of fetchOS, the SDK could pull the image from whichever API the balenaSDK class was initialized with. AFAIK, during the Balena Machine migration, we realized that BM doesn't offer the same bandwidth or speed as BalenaCloud API to download images.

Hence, in https://github.com/balena-os/leviathan/pull/1011/files, @rcooke-warwick added the balenaSdkProd variable to hardcode the fetchOS's target to always be balenaCloud. If not longer need this then we can go back using the already initialized SDK in this file that can be accessed from this.balena.sdk

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@vipulgupta2048 when you are developing a new device type the only way to run the HUP suite is to do it against staging so that you can release non-production ready releases there to test with.

So in my view it's not so much a BM vs BC - probably it would be better to use the configured apiURL but in the case it's the BM replace it with BC.

Copy link
Member

Choose a reason for hiding this comment

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

That sounds good, previous intention was that for new device types on balenaCloud. HUP test would get skipped since the releases won't be available as you mentioned. It seems we are now uploading those releases to staging and running HUP tests for new devices from there. In that case, the if condition you recommended to replace the URL to BC if the environment is BM.

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