Skip to content

Extract code owner-required changes for workflow files #807

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

Merged
merged 11 commits into from
Mar 7, 2025

Conversation

evandrosaturnino
Copy link
Collaborator

This PR extracts the changes for the github workflow files that require code owner approval from the larger PR (#785):

Why this change?
The original PR touched 200 files, and to streamline the review process and ensure that code owner reviews are conducted efficiently, these files have been isolated into a separate PR.

What’s included?

  • Only the final state changes for the listed files.
  • No changes from other parts of the big PR.

Next Steps:

  • Code owners: Please review the changes in these files.
  • Once approved, coordinate with the original PR author to remove these changes from the larger PR.

Please let me know if you have any questions or require additional context.

Copy link

github-actions bot commented Mar 4, 2025

Copy link

github-actions bot commented Mar 4, 2025

@@ -152,14 +152,14 @@ jobs:
gcpBucketName: dashboard.test.threshold.network
preview: false
secrets:
ethUrlHttp: ${{ secrets.SEPOLIA_ETH_HOSTNAME_HTTP }}
ethUrlWS: ${{ secrets.SEPOLIA_ETH_HOSTNAME_WS }}
alchemyApi: ${{ secrets.ALCHEMY_API }}
Copy link
Member

Choose a reason for hiding this comment

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

Is this an HTTP or WS URL or maybe an API key? The previous version was more specific, and it was clear what value should be provided. I would rename it to ALCHEMY_API_KEY or something more specific, depending on what this value should represent.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agreed. This is being addressed in the following commit: update alchemy api key env variable name
And also reflected in the app in the PR #809

Comment on lines 57 to 59
TESTNET_ELECTRUM_PROTOCOL: ${{ secrets.TESTNET_ELECTRUMX_PROTOCOL }}
TESTNET_ELECTRUM_HOST: ${{ secrets.TESTNET_ELECTRUMX_HOST }}
TESTNET_ELECTRUM_PORT: ${{ secrets.TESTNET_ELECTRUMX_PORT }}
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to specify those for the mainnet workflow? Is it because they are used from reusable-build-and-publish.yml? Would be good to have this decision captured in the commit message.

Copy link
Collaborator Author

@evandrosaturnino evandrosaturnino Mar 6, 2025

Choose a reason for hiding this comment

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

Although the multiple networks app accepts both mainnet and testnet chains at the same time, and we initially planned to launch the production app with both, in the last days we've decided to move forward with launching the mainnet dashboard with only mainnet L1 and L2. Therefore, it makes sense to remove these env variables from the dashboard-mainnet.yml, as you pointed out.

This is being addressed in: consolidate mainnet and testnet electrum variables and remove testnet electrum variable in reusable workflow
And also reflected in the app in the PR #809

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Following this same approach I also updated the subgraph variable updating the name with the key suffix: update subgraph api key variable

@lrsaturnino lrsaturnino requested a review from pdyraga March 6, 2025 16:20
Copy link

github-actions bot commented Mar 6, 2025

Copy link

github-actions bot commented Mar 6, 2025

Comment on lines 59 to 65
description: Protocol used by the Testnet Electrum server.
required: true
electrumHost:
description: Host pointing to the Electrum server.
description: Host pointing to the Testnet Electrum server.
required: true
electrumPort:
description: Port the Electrum server listens on.
description: Port the Testnet Electrum server listens on.
Copy link
Member

Choose a reason for hiding this comment

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

It is not necessarily testnet, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In the context of reusable-build-and-publish.yml, the workflow is expected to receive only testnet values for these secret variables. However, in a broader context, electrum variables can be passed in different ways (e.g., through other workflow files).

To avoid any potential confusion, I have removed this term in: remove testnet term of descriptions in reusable workflow

Copy link

github-actions bot commented Mar 7, 2025

@lrsaturnino lrsaturnino requested a review from pdyraga March 7, 2025 02:15
Copy link

github-actions bot commented Mar 7, 2025

@pdyraga pdyraga merged commit 199401e into main Mar 7, 2025
5 checks passed
@pdyraga pdyraga deleted the update-code-owner-files branch March 7, 2025 14:15
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