-
Notifications
You must be signed in to change notification settings - Fork 29
Enable ymir todo trigger #540
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
Open
majamassarini
wants to merge
29
commits into
packit:main
Choose a base branch
from
majamassarini:enable-ymir-todo-trigger
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
15e9bac
Enable user-triggered e2e CVE processing via ymir_todo label
majamassarini 44e4c27
Always write dedup-anchor labels regardless of SILENT_RUN
majamassarini bbf701f
Add critical mode to set_jira_labels; abort triage on dedup-write fai…
majamassarini eea504e
Atomically flip ymir_retry_needed → ymir_triage_in_progress in fetcher
majamassarini 16547b4
Remove SILENT_RUN env var; bake always-silent into the code
majamassarini 40f2e9b
Propagate user_triggered to downstream rebase/backport/rebuild agents
majamassarini 740e695
Sleep before retrying a critical-label-write failure to avoid tight loop
majamassarini 46ac936
Cap fetcher activeDeadlineSeconds below the cron interval
majamassarini d64f113
Verify ymir_todo author is a Red Hat Employee via changelog
majamassarini f63dd6f
Address Gemini review
majamassarini ce98c49
Don't drop ymir_retry_needed on issues with a prior _errored label
majamassarini f9c6564
URL-encode accountId in the changelog-author lookup
majamassarini d24db03
Narrow except in _label_added_by_rh_employee; surface auth failures l…
majamassarini 482bdc9
Remove non-RH ymir_todo label so verification doesn't repeat each sweep
majamassarini 4736e59
Paginate changelog walk + delay ack comment until in-progress write l…
majamassarini 737da58
Add retry helper for changelog/user GETs in _label_added_by_rh_employee
majamassarini 94f66d6
Regenerate triage skill after SILENT_RUN removal
majamassarini 3227036
Set status_code on fake response mocks in fetcher tests
majamassarini 45df996
Remove leftover SILENT_RUN references from the Makefile
majamassarini 477637a
Inject GITLAB_TOKEN auth header for pushes to the bot's fork namespace
majamassarini bda2386
Split fetcher CronJob into a fast ymir_todo sweep and a slow filter s…
majamassarini edf3bd6
Separate transient network errors from parse errors in TODO author check
majamassarini c6c51d5
Don't write terminal label for ERROR resolution so retry can re-run
majamassarini c3212c1
Normalize FORK_NAMESPACE by stripping surrounding slashes
majamassarini 0ef4a26
Bound retries on TRIAGE_IN_PROGRESS write failures via retry() helper
majamassarini 43708e5
Track user-ack delivery via task.metadata['ack_posted']
majamassarini edac826
Post Jira comment for open-ended analysis and clarification-needed runs
majamassarini 94362c9
Gate Jira status changes behind JIRA_ALLOW_STATUS_CHANGES env var
majamassarini e2e20db
Gate Preliminary Testing = Pass on JIRA_ALLOW_STATUS_CHANGES
majamassarini File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| apiVersion: v1 | ||
| data: | ||
| QUERY: 'filter = "Ymir early adopters CVEs"' | ||
| immutable: false | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: jira-issue-fetcher-filter-env |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| apiVersion: v1 | ||
| data: | ||
| QUERY: 'labels = "ymir_todo"' | ||
| immutable: false | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: jira-issue-fetcher-todo-env |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| apiVersion: batch/v1 | ||
| kind: CronJob | ||
| metadata: | ||
| name: jira-issue-fetcher-todo | ||
| labels: | ||
| app: jira-issue-fetcher-todo | ||
| component: scheduler | ||
| spec: | ||
| schedule: "*/5 * * * *" # Every 5 minutes — picks up ymir_todo maintainer requests promptly | ||
| concurrencyPolicy: Forbid # Prevent overlapping runs | ||
| successfulJobsHistoryLimit: 3 | ||
| failedJobsHistoryLimit: 5 | ||
| suspend: true | ||
| jobTemplate: | ||
| metadata: | ||
| labels: | ||
| app: jira-issue-fetcher-todo | ||
| component: job | ||
| spec: | ||
| backoffLimit: 2 | ||
| activeDeadlineSeconds: 240 # 4 minutes max runtime (cron is */5, must not overlap) | ||
| template: | ||
| metadata: | ||
| labels: | ||
| app: jira-issue-fetcher-todo | ||
| component: pod | ||
| spec: | ||
| restartPolicy: Never | ||
| containers: | ||
| - name: jira-issue-fetcher-env | ||
| image: 'jira-issue-fetcher:prod' | ||
| imagePullPolicy: Always | ||
| envFrom: | ||
| - configMapRef: | ||
| name: endpoints-env | ||
| - configMapRef: | ||
| name: jira-env | ||
| - secretRef: | ||
| name: jira-env | ||
| - configMapRef: | ||
| name: jira-issue-fetcher-env | ||
| - configMapRef: | ||
| name: jira-issue-fetcher-todo-env | ||
| resources: | ||
| limits: | ||
| cpu: "200m" | ||
| memory: "128Mi" | ||
| securityContext: | ||
| allowPrivilegeEscalation: false | ||
| runAsNonRoot: true | ||
| seccompProfile: | ||
| type: RuntimeDefault | ||
| capabilities: | ||
| drop: | ||
| - ALL | ||
| securityContext: | ||
| runAsNonRoot: true | ||
| seccompProfile: | ||
| type: RuntimeDefault | ||
| dnsPolicy: ClusterFirst | ||
| schedulerName: default-scheduler | ||
| terminationGracePeriodSeconds: 30 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.