Skip to content

chore(deployment): gcp start bash script: avoid unnecessary warning#707

Merged
kevindeforth merged 1 commit intomainfrom
kd/gcp-start-slight-refactor
Jul 24, 2025
Merged

chore(deployment): gcp start bash script: avoid unnecessary warning#707
kevindeforth merged 1 commit intomainfrom
kd/gcp-start-slight-refactor

Conversation

@kevindeforth
Copy link
Copy Markdown
Contributor

When executing the bash script in devnet, we get this warning:

WARNING: $MPC_RESPONDER_ID is not set, falling back to $MPC_ACCOUNT_ID

The warning suggests that the node would set near_responder_account_id to $MPC_ACCOUNT_ID, but this only happens in case if the mpc config file does not already exist.

In our devnet test suite, terraform provides the mpc config file, thus, the fallback does not apply. In that context, this error message is slightly confusing, because it insinuates that the variable near_responder_account_id set by the devnet test suite would be ignored.

This PR moves the parsing of the variable inside the function where it is actually used, thus ensuring that the warning will only show in case no mpc config is found on disk.

@kevindeforth kevindeforth requested a review from andrei-near July 24, 2025 09:22
@kevindeforth kevindeforth marked this pull request as ready for review July 24, 2025 09:23
@kevindeforth kevindeforth added this pull request to the merge queue Jul 24, 2025
Copy link
Copy Markdown
Collaborator

@netrome netrome left a comment

Choose a reason for hiding this comment

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

Nice, thanks for fixing!

Merged via the queue into main with commit f038549 Jul 24, 2025
7 checks passed
@kevindeforth kevindeforth deleted the kd/gcp-start-slight-refactor branch July 24, 2025 11:01
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.

3 participants