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

Report manifestworks first applied timestamp #215

Merged

Conversation

zhujian7
Copy link
Contributor

@zhujian7 zhujian7 commented Dec 26, 2024

depends on: stolostron/backplane-operator#1175
issue reference: https://issues.redhat.com/browse/ACM-16796

This PR will start a manifestwork controller to watch manifestworks with any of 3 labels, and record the lastTranstionTime of the Applied condition as an annotation.
In the other side the manifestwork metric collector will report the recorded time as the manifestwork observed first applied time metric.

@zhujian7 zhujian7 changed the title WIP: Report work applied timestamp per generation WIP: Report work first applied timestamp Jan 6, 2025
@zhujian7
Copy link
Contributor Author

zhujian7 commented Jan 6, 2025

/test unit

@zhujian7
Copy link
Contributor Author

zhujian7 commented Jan 6, 2025

depends on stolostron/backplane-operator#1175
/hold

@zhujian7 zhujian7 changed the title WIP: Report work first applied timestamp Report manifestworks first applied timestamp Jan 6, 2025
@zhujian7
Copy link
Contributor Author

zhujian7 commented Jan 6, 2025

/assign @qiujian16 @elgnay

@zhujian7
Copy link
Contributor Author

zhujian7 commented Jan 6, 2025

/hold

@zhujian7
Copy link
Contributor Author

zhujian7 commented Jan 6, 2025

/test unit

1 similar comment
@zhujian7
Copy link
Contributor Author

zhujian7 commented Jan 7, 2025

/test unit

Copy link
Contributor

@qiujian16 qiujian16 left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Jan 7, 2025
@zhujian7 zhujian7 force-pushed the generation-applied-time branch from 48d2dd3 to e074263 Compare January 7, 2025 05:01
@openshift-ci openshift-ci bot removed the lgtm label Jan 7, 2025
@zhujian7 zhujian7 force-pushed the generation-applied-time branch 2 times, most recently from 449d424 to 91f6ad2 Compare January 7, 2025 06:43
@zhujian7 zhujian7 force-pushed the generation-applied-time branch from 91f6ad2 to dea74c8 Compare January 7, 2025 07:13
@zhujian7
Copy link
Contributor Author

zhujian7 commented Jan 7, 2025

/cc @haoqing0110

@openshift-ci openshift-ci bot requested a review from haoqing0110 January 7, 2025 07:15
@zhujian7
Copy link
Contributor Author

zhujian7 commented Jan 7, 2025

/hold cancel

flag.BoolVar(&o.EnableLeaderElection, "leader-elect", true,
"Enable leader election for controller manager. "+
"Enabling this will ensure there is only one active controller manager.")
// set default "0" to disable the controller metrics, otherwise the the default 8080 port will conflict.
Copy link
Member

@haoqing0110 haoqing0110 Jan 7, 2025

Choose a reason for hiding this comment

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

When I first read the comments, I was not sure the 8080 port would conflict with what? Can we clarity that there are 2 ports, the new controller's metrics default port 8080 and the clusterlifecycle-state-metrics server's port 8080, and they will have a conflict? when the comments said "metrics endpoint" it's a little confusing.

@haoqing0110
Copy link
Member

/approve

@openshift-ci openshift-ci bot added the approved label Jan 7, 2025
@zhujian7 zhujian7 force-pushed the generation-applied-time branch from cf78cd9 to ee01ec3 Compare January 8, 2025 13:48
@zhujian7
Copy link
Contributor Author

zhujian7 commented Jan 9, 2025

/retest

@elgnay
Copy link
Contributor

elgnay commented Jan 9, 2025

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Jan 9, 2025
Copy link

openshift-ci bot commented Jan 9, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: elgnay, haoqing0110, qiujian16, zhujian7

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

@zhujian7
Copy link
Contributor Author

zhujian7 commented Jan 9, 2025

/override "Red Hat Konflux / Red Hat Konflux / mce-28-enterprise-contract-registry-standard / clusterlifecycle-state-metrics-mce-28"

Copy link

openshift-ci bot commented Jan 9, 2025

@zhujian7: /override requires failed status contexts, check run or a prowjob name to operate on.
The following unknown contexts/checkruns were given:

  • Red Hat Konflux / Red Hat Konflux / mce-28-enterprise-contract-registry-standard / clusterlifecycle-state-metrics-mce-28

Only the following failed contexts/checkruns were expected:

  • Red Hat Konflux / mce-28-enterprise-contract-registry-standard / clusterlifecycle-state-metrics-mce-28
  • ci/prow/check
  • ci/prow/images
  • ci/prow/pr-image-mirror
  • ci/prow/sonar-pre-submit
  • ci/prow/unit
  • pull-ci-stolostron-clusterlifecycle-state-metrics-backplane-2.2-check
  • pull-ci-stolostron-clusterlifecycle-state-metrics-backplane-2.2-images
  • pull-ci-stolostron-clusterlifecycle-state-metrics-backplane-2.2-pr-image-mirror
  • pull-ci-stolostron-clusterlifecycle-state-metrics-backplane-2.2-unit
  • pull-ci-stolostron-clusterlifecycle-state-metrics-main-sonar-pre-submit
  • tide

If you are trying to override a checkrun that has a space in it, you must put a double quote on the context.

In response to this:

/override "Red Hat Konflux / Red Hat Konflux / mce-28-enterprise-contract-registry-standard / clusterlifecycle-state-metrics-mce-28"

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.

@zhujian7
Copy link
Contributor Author

zhujian7 commented Jan 9, 2025

/override "Red Hat Konflux / mce-28-enterprise-contract-registry-standard / clusterlifecycle-state-metrics-mce-28"

Copy link

openshift-ci bot commented Jan 9, 2025

@zhujian7: Overrode contexts on behalf of zhujian7: Red Hat Konflux / mce-28-enterprise-contract-registry-standard / clusterlifecycle-state-metrics-mce-28

In response to this:

/override "Red Hat Konflux / mce-28-enterprise-contract-registry-standard / clusterlifecycle-state-metrics-mce-28"

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.

@openshift-merge-bot openshift-merge-bot bot merged commit 4192e97 into stolostron:main Jan 9, 2025
12 of 13 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.

4 participants