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

(feat): Update Functions core/scripts oracle.toml template #10409

Merged
merged 3 commits into from
Sep 6, 2023

Conversation

justinkaseman
Copy link
Contributor

No description provided.

@github-actions
Copy link
Contributor

I see that you haven't updated any README files. Would it make sense to do so?

Copy link
Contributor

@bolekk bolekk left a comment

Choose a reason for hiding this comment

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

Thanks!

@@ -31,6 +31,8 @@ func (g *generateJobSpecs) Run(args []string) {
donID := fs.String("donid", "", "don id string")
routerAddress := fs.String("contract", "", "router contract address")
truncateHostname := fs.Bool("truncateboothostname", false, "truncate host name to first segment (needed for staging DONs)")
gatewayID := fs.String("gatewayid", "", "gateway id string")
gatewayURL := fs.String("gatewayurl", "", "gateway url string")
err := fs.Parse(args)
if err != nil || nodesFile == nil || *nodesFile == "" || routerAddress == nil || *routerAddress == "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

check for nil here too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is it actually a required field?
I was going off of since we aren't checking things like donID.. but looks like that might just be out of date and we should require that.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah I think everything that is in latest oracle.toml should be required.

@@ -31,6 +31,8 @@ func (g *generateJobSpecs) Run(args []string) {
donID := fs.String("donid", "", "don id string")
routerAddress := fs.String("contract", "", "router contract address")
truncateHostname := fs.Bool("truncateboothostname", false, "truncate host name to first segment (needed for staging DONs)")
gatewayID := fs.String("gatewayid", "", "gateway id string")
gatewayURL := fs.String("gatewayurl", "", "gateway url string")
Copy link
Contributor

Choose a reason for hiding this comment

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

soon we will be moving to a config file... due to lots of variables.

@cl-sonarqube-production
Copy link

SonarQube Quality Gate

Quality Gate failed

Failed condition B Maintainability Rating on New Code (is worse than A)
Failed condition 6.35% Technical Debt Ratio on New Code (is greater than 4%)

See analysis details on SonarQube

Fix issues before they fail your Quality Gate with SonarLint SonarLint in your IDE.

@justinkaseman justinkaseman added this pull request to the merge queue Sep 6, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 6, 2023
@justinkaseman justinkaseman added this pull request to the merge queue Sep 6, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 6, 2023
@justinkaseman justinkaseman added this pull request to the merge queue Sep 6, 2023
Merged via the queue into develop with commit 55be162 Sep 6, 2023
94 checks passed
@justinkaseman justinkaseman deleted the jk/functions-scripts-oracle-gateway branch September 6, 2023 22:41
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.

4 participants