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

[BUG] - Infracost CI and DO tests failing #1817

Closed
pavithraes opened this issue May 22, 2023 · 12 comments
Closed

[BUG] - Infracost CI and DO tests failing #1817

pavithraes opened this issue May 22, 2023 · 12 comments
Labels
area: CI/CD 👷🏽‍♀️ impact: high 🟥 This issue affects most of the nebari users or is a critical issue needs: investigation 🔍 Someone in the team needs to find the root cause and replicate this bug type: bug 🐛 Something isn't working

Comments

@pavithraes
Copy link
Member

Originally reported by @pmeier on Quansight Slack

@Adam-D-Lewis triggered some tests on @pmeier's PR through the comment and the infracost jobs on AWS and Azure both fail because no credentials can be retrieved. Since Adam should have all the permissions, we need to figure out why this fails?

Refs:

The DO provider tests failing as well: https://github.com/nebari-dev/nebari/actions/runs/5016789600/jobs/8994092014#step:11:424

@pavithraes pavithraes added type: bug 🐛 Something isn't working area: CI/CD 👷🏽‍♀️ impact: high 🟥 This issue affects most of the nebari users or is a critical issue needs: investigation 🔍 Someone in the team needs to find the root cause and replicate this bug labels May 22, 2023
@kcpevey
Copy link
Contributor

kcpevey commented May 22, 2023

I'm seeing the same thing on my PR #1665

@pmeier
Copy link
Member

pmeier commented May 22, 2023

I need functioning CI for PRs like #1773 or #1778 since they are large scale refactorings.

@kcpevey
Copy link
Contributor

kcpevey commented May 22, 2023

I'm guessing its related to our recent changes to our credentials infra. @iameskild or @costrouc might know more?

@dharhas
Copy link
Member

dharhas commented May 22, 2023

Is infracost useful?/is it worth keeping that integration? It was build in a hurry and I don't know how good it is.

@iameskild
Copy link
Member

iameskild commented May 22, 2023

I believe DO is failing because the API token recently expired. I opened a PR last week that will enable me to make this update but I'm waiting for Chris to return from PTO.

As for Infracost, I personally don't think it's worth the maintenance burden of keeping integrated. As Dharhas said, it was hastily added so its utility at this moment is relatively limited. I propose we rip it out (along with Prefect and ClearML).

@pmeier
Copy link
Member

pmeier commented May 22, 2023

As for Infracost, I personally don't think it's worth the maintenance burden of keeping integrated. As Dharhas said, it was hastily added so its utility at this moment is relatively limited.

Let me send a PR for that.

@pavithraes pavithraes added needs: PR 📬 This item has been scoped and needs to be worked on and removed needs: investigation 🔍 Someone in the team needs to find the root cause and replicate this bug labels May 22, 2023
@pmeier
Copy link
Member

pmeier commented May 22, 2023

@dharhas I talked to @iameskild offline and we interpreted your #1817 (comment) differently. Do you mean we should just kill the CI jobs or rip it out completely? Currently it is part of our CLI

def cost(

However, it is marked "experimental"

[italic]This is still only experimental using Infracost under the hood.

and thus we can likely purge it without BC concerns.

@dharhas
Copy link
Member

dharhas commented May 22, 2023

I'm questioning whether the infracost integration is useful. It was integrated by an intern and I don't think we have ever used it. Before we spend time fixing the tests we should decide whether we want to keep the integration.

So I'm asking if we should rip it out completely from Nebari.

This was referenced May 22, 2023
@pmeier pmeier added needs: investigation 🔍 Someone in the team needs to find the root cause and replicate this bug and removed needs: PR 📬 This item has been scoped and needs to be worked on labels May 22, 2023
@pmeier
Copy link
Member

pmeier commented May 22, 2023

There is #1820 to remove the infracost capabilities. Re-labeling as needs: investigation, since the DO issue is not resolved yet.

@pmeier pmeier removed their assignment May 23, 2023
@pmeier
Copy link
Member

pmeier commented May 24, 2023

@iameskild Did you fix the DO token as discussed in yesterday's community meeting? If so, I'm still seeing the same failures on my PR: https://github.com/nebari-dev/nebari/actions/runs/5067342709/jobs/9098287246?pr=1778 Maybe we should open an RFD regarding dropping DO from our supported provider list as @trallard suggested.

@iameskild
Copy link
Member

@pmeier the DO API token has been updated and the CI is passing 🎉

@pmeier
Copy link
Member

pmeier commented May 24, 2023

In that case #1820 actually closed this issue.

@pmeier pmeier closed this as completed May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: CI/CD 👷🏽‍♀️ impact: high 🟥 This issue affects most of the nebari users or is a critical issue needs: investigation 🔍 Someone in the team needs to find the root cause and replicate this bug type: bug 🐛 Something isn't working
Projects
Development

No branches or pull requests

5 participants