-
Notifications
You must be signed in to change notification settings - Fork 38
Phase 1# of postponed issues reprocessing #746
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
jpodivin
wants to merge
5
commits into
packit:main
Choose a base branch
from
jpodivin:postponed
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
5 commits
Select commit
Hold shift + click to select a range
4644008
Parametrize url in gitlab_api_get
jpodivin a925caf
Whitelist acceptable gitlab hosts
jpodivin da78fbe
Split postponed issues by reason removing original, general label
jpodivin fc5a8e7
Set up sweep cron jobs for each of the postponement categories
jpodivin 052aab9
Validate that blockers are set if the issue is waiting on a PR
jpodivin 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| FROM quay.io/centos/centos:stream10 | ||
|
|
||
| RUN dnf -y install epel-release \ | ||
| && dnf config-manager --set-enabled crb \ | ||
| && dnf -y update | ||
|
|
||
| RUN dnf -y install --allowerasing \ | ||
| # Build dependencies (removed after pip install) | ||
| gcc \ | ||
| gcc-c++ \ | ||
| python3-devel \ | ||
| # Runtime system packages | ||
| python3 \ | ||
| python3-backoff \ | ||
| python3-koji \ | ||
| python3-pip \ | ||
| python3-requests | ||
| RUN pip3 install -v --no-cache-dir \ | ||
| "litellm!=1.82.7,!=1.82.8" \ | ||
| "beeai-framework==0.1.82" \ | ||
| "mcp<1.29.0" \ | ||
| pydantic \ | ||
| aiofiles \ | ||
| aiohttp \ | ||
| httpx \ | ||
| jinja2 \ | ||
| redis \ | ||
| specfile \ | ||
| && dnf -y remove gcc gcc-c++ python3-devel \ | ||
| && dnf clean all | ||
|
|
||
| # Create unprivileged user | ||
| RUN useradd -m -G wheel sweepbot | ||
|
|
||
| WORKDIR /home/sweepbot | ||
|
|
||
| # Copy only the modules required by the sweep. | ||
| # ymir.sweep — the sweep module itself | ||
| # ymir.common — shared utilities, models, constants, config | ||
| # ymir.supervisor — jira_utils, gitlab_utils, http_utils, supervisor_types | ||
| # ymir.tools — tools constants (YMIR_USER_AGENT, imported by http_utils) and | ||
| # ymir.tools.privileged.jira (CheckCveTriageEligibilityTool, which | ||
| # the y_stream sweep re-runs to decide unblocking) | ||
| COPY ymir/sweep/ /home/sweepbot/ymir/sweep/ | ||
| COPY ymir/common/ /home/sweepbot/ymir/common/ | ||
| COPY ymir/supervisor/ /home/sweepbot/ymir/supervisor/ | ||
| COPY ymir/tools/ /home/sweepbot/ymir/tools/ | ||
|
|
||
| RUN chgrp -R root /home/sweepbot && chmod -R g+rwX /home/sweepbot | ||
|
|
||
| USER sweepbot | ||
| ENV HOME=/home/sweepbot | ||
| WORKDIR $HOME | ||
|
|
||
| ENV PYTHONPATH=$HOME:$PYTHONPATH | ||
|
|
||
| CMD ["python3", "-m", "ymir.sweep", "--all"] | ||
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,59 @@ | ||
| apiVersion: batch/v1 | ||
| kind: CronJob | ||
| metadata: | ||
| name: sweep-dependency | ||
| labels: | ||
| app: sweep-dependency | ||
| component: scheduler | ||
| spec: | ||
| schedule: "0 */6 * * *" # Every 6 hours | ||
| concurrencyPolicy: Forbid | ||
| successfulJobsHistoryLimit: 3 | ||
| failedJobsHistoryLimit: 5 | ||
| suspend: false | ||
| jobTemplate: | ||
| metadata: | ||
| labels: | ||
| app: sweep-dependency | ||
| component: job | ||
| spec: | ||
| backoffLimit: 2 | ||
| activeDeadlineSeconds: 600 # 10 minutes max runtime | ||
| template: | ||
| metadata: | ||
| labels: | ||
| app: sweep-dependency | ||
| component: pod | ||
| spec: | ||
| restartPolicy: Never | ||
| containers: | ||
| - name: sweep-dependency | ||
| image: 'sweep:prod' | ||
| imagePullPolicy: IfNotPresent | ||
| args: ["python3", "-m", "ymir.sweep", "--strategy", "dependency"] | ||
| envFrom: | ||
| - configMapRef: | ||
| name: endpoints-env | ||
| - configMapRef: | ||
| name: jira-env | ||
| - secretRef: | ||
| name: jira-env | ||
| resources: | ||
| limits: | ||
| cpu: "200m" | ||
| memory: "256Mi" | ||
| securityContext: | ||
| allowPrivilegeEscalation: false | ||
| runAsNonRoot: true | ||
| seccompProfile: | ||
| type: RuntimeDefault | ||
| capabilities: | ||
| drop: | ||
| - ALL | ||
| securityContext: | ||
| runAsNonRoot: true | ||
| seccompProfile: | ||
| type: RuntimeDefault | ||
| dnsPolicy: ClusterFirst | ||
| schedulerName: default-scheduler | ||
| terminationGracePeriodSeconds: 30 |
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,64 @@ | ||
| apiVersion: batch/v1 | ||
| kind: CronJob | ||
| metadata: | ||
| name: sweep-no-patch | ||
| labels: | ||
| app: sweep-no-patch | ||
| component: scheduler | ||
| spec: | ||
| schedule: "0 4 * * *" # Daily at 4am UTC | ||
| concurrencyPolicy: Forbid | ||
| successfulJobsHistoryLimit: 3 | ||
| failedJobsHistoryLimit: 5 | ||
| suspend: false | ||
| jobTemplate: | ||
| metadata: | ||
| labels: | ||
| app: sweep-no-patch | ||
| component: job | ||
| spec: | ||
| backoffLimit: 2 | ||
| # Shorter deadline: this sweep only pushes to Redis, the expensive | ||
| # LLM work happens in the triage agent pods. | ||
| activeDeadlineSeconds: 300 # 5 minutes max runtime | ||
| template: | ||
| metadata: | ||
| labels: | ||
| app: sweep-no-patch | ||
| component: pod | ||
| spec: | ||
| restartPolicy: Never | ||
| containers: | ||
| - name: sweep-no-patch | ||
| image: 'sweep:prod' | ||
| imagePullPolicy: IfNotPresent | ||
| args: ["python3", "-m", "ymir.sweep", "--strategy", "no_patch"] | ||
| env: | ||
| - name: MAX_ISSUES_PER_RUN | ||
| value: "20" | ||
| envFrom: | ||
| - configMapRef: | ||
| name: endpoints-env | ||
| - configMapRef: | ||
| name: jira-env | ||
| - secretRef: | ||
| name: jira-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.