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

[DEVHAS-611] Update Component create metrics for better data #441

Merged
merged 2 commits into from
Feb 7, 2024

Conversation

maysunfaisal
Copy link
Member

@maysunfaisal maysunfaisal commented Feb 5, 2024

What does this PR do?:

  • Updates the component metrics only if the current state is different than the prev state, this helps avoid spamming metrics due to HAS controller retry logic
  • Wrapper function for Component create metrics (other metrics left untouched, outside the scope of PR), whose job is to compare previous error and current error and update metrics accordingly
  • Remove metrics tracking from Gitops logic due to future commitments
  • Rearrange metrics dir to individual files (cut-paste)

Which issue(s)/story(ies) does this PR fixes:

https://issues.redhat.com/browse/DEVHAS-611

PR acceptance criteria:

  • Unit/Functional tests

  • Documentation

  • Client Impact

How to test changes / Special notes to the reviewer:

tests should pass

@openshift-ci openshift-ci bot requested review from elsony and kim-tsao February 5, 2024 21:47
@openshift-ci openshift-ci bot added the approved label Feb 5, 2024
@michael-valdron
Copy link
Contributor

/retest

Copy link
Contributor

@michael-valdron michael-valdron left a comment

Choose a reason for hiding this comment

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

Changes looks good to me.

I saw e2e tests did not fail under a recent PR, #442, seeing if retest does not reproduce error: the path "deploy/member-operator/appstudio-dev/" does not exist.

@michael-valdron
Copy link
Contributor

@maysunfaisal Rebasing on your recent changes might fix https://github.com/redhat-appstudio/application-service/actions/runs/7791255552/job/21327116796?pr=441, but I also noticed your comment about the linter fix: #442 (comment)

@michael-valdron
Copy link
Contributor

/retest

Failures this time look like flaky ones, retrying.

Signed-off-by: Maysun J Faisal <maysunaneek@gmail.com>
Signed-off-by: Maysun J Faisal <maysunaneek@gmail.com>
Copy link

sonarqubecloud bot commented Feb 7, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
1.9% Duplication on New Code

See analysis details on SonarCloud

@maysunfaisal

This comment was marked as outdated.

@maysunfaisal
Copy link
Member Author

@michael-valdron This PR can be lgtm'd.

I confirmed that the tekton pipeline we are looking for a success is application-service-on-pull-request which is passing, the pipeline has-on-pull-request is outdated and there is a PR to remove it #438.

The outdated tekton builds are now replaced by konflux builds and the application-service-on-pull-request pipeline runs on Konflux:

Screenshot 2024-02-07 at 3 36 15 PM

(Confirmed on older PRs and my direct conversation with John)

Copy link
Contributor

@michael-valdron michael-valdron left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link

openshift-ci bot commented Feb 7, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: maysunfaisal, michael-valdron

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:
  • OWNERS [maysunfaisal,michael-valdron]

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

@maysunfaisal maysunfaisal merged commit da050c7 into redhat-appstudio:main Feb 7, 2024
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants