Skip to content

Hotfix dev env #372

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

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

RaphaelBut
Copy link
Contributor

@RaphaelBut RaphaelBut commented Mar 14, 2025

Improve dev environment setup and add utility to run backplane locally

Only require aws client for investigations that need it.
This comes out of a need to run backplane-api locally, but its unable to get aws access.
Its also part of the bigger picture of only initializing required integrations.

@openshift-ci openshift-ci bot requested review from ninabauer and sam-nguyen7 March 14, 2025 13:15
Copy link
Contributor

openshift-ci bot commented Mar 14, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: RaphaelBut

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 14, 2025
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 14, 2025
@tnierman
Copy link
Member

/retest

This comes out of a need to run backplane-api locally, but its unable to
get aws access.
Also, part of the bigger picture of only initializing required integrations.
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 14, 2025
@codecov-commenter
Copy link

codecov-commenter commented Mar 14, 2025

Codecov Report

Attention: Patch coverage is 3.70370% with 26 lines in your changes missing coverage. Please review.

Project coverage is 33.45%. Comparing base (c292fc2) to head (019cc60).

Files with missing lines Patch % Lines
cadctl/cmd/investigate/investigate.go 0.00% 12 Missing ⚠️
pkg/investigations/chgm/chgm.go 14.28% 6 Missing ⚠️
pkg/investigations/ccam/ccam.go 0.00% 2 Missing ⚠️
...rrorbudgetburn/clustermonitoringerrorbudgetburn.go 0.00% 2 Missing ⚠️
pkg/investigations/cpd/cpd.go 0.00% 2 Missing ⚠️
pkg/aws/aws.go 0.00% 1 Missing ⚠️
pkg/investigations/registry.go 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #372      +/-   ##
==========================================
- Coverage   33.69%   33.45%   -0.24%     
==========================================
  Files          25       25              
  Lines        1843     1856      +13     
==========================================
  Hits          621      621              
- Misses       1174     1187      +13     
  Partials       48       48              
Files with missing lines Coverage Δ
pkg/aws/aws.go 4.97% <0.00%> (ø)
pkg/investigations/registry.go 0.00% <0.00%> (ø)
pkg/investigations/ccam/ccam.go 36.58% <0.00%> (-1.88%) ⬇️
...rrorbudgetburn/clustermonitoringerrorbudgetburn.go 11.36% <0.00%> (-0.55%) ⬇️
pkg/investigations/cpd/cpd.go 0.00% <0.00%> (ø)
pkg/investigations/chgm/chgm.go 60.18% <14.28%> (-0.58%) ⬇️
cadctl/cmd/investigate/investigate.go 0.00% <0.00%> (ø)
🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

openshift-ci bot commented Mar 14, 2025

@RaphaelBut: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

updateMetrics(alertInvestigation.Name(), &result)
return err
var customerAwsClient *aws.SdkClient
if alertInvestigation.RequiresAwsClient() {
Copy link
Member

Choose a reason for hiding this comment

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

Question: how would we test aws access + kube-api access short term?
This is an interesting side effect of running the local backplane-api.

@RaphaelBut RaphaelBut marked this pull request as draft March 25, 2025 10:22
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 25, 2025
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 26, 2025
@openshift-merge-robot
Copy link
Contributor

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants