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

Let WorkflowLinter.refresh_report lint jobs from JobsCrawler #3732

Merged
merged 2 commits into from
Feb 25, 2025

Conversation

JCZuurmond
Copy link
Member

@JCZuurmond JCZuurmond commented Feb 21, 2025

Changes

Let WorkflowLinter.refresh_report lint jobs from JobsCrawler so that we only lint what is within scope

Linked issues

Resolves #3662
Progresses #3722

Functionality

  • modified workflow linting code
  • modified existing workflow: assessment

Tests

  • modified unit tests
  • modified integration tests

@JCZuurmond JCZuurmond added step/assessment go/uc/upgrade - Assessment Step migrate/code Abstract Syntax Trees and other dark magic labels Feb 21, 2025
@JCZuurmond JCZuurmond self-assigned this Feb 21, 2025
@JCZuurmond JCZuurmond requested a review from a team as a code owner February 21, 2025 10:06
Copy link

github-actions bot commented Feb 21, 2025

✅ 85/85 passed, 1 flaky, 7 skipped, 51m55s total

Flaky tests:

  • 🤪 test_running_real_assessment_job (15m4.839s)

Running from acceptance #8374


def refresh_report(self, sql_backend: SqlBackend, inventory_database: str) -> None:
tasks = []
items_listed = 0
for job in self._ws.jobs.list():
if self._include_job_ids is not None and job.job_id not in self._include_job_ids:
Copy link
Contributor

Choose a reason for hiding this comment

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

Where do we replicate the filtering capability with the Job Crawler?

Copy link
Member Author

Choose a reason for hiding this comment

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

@JCZuurmond JCZuurmond requested a review from FastLee February 24, 2025 14:10
Copy link
Contributor

@FastLee FastLee left a comment

Choose a reason for hiding this comment

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

LGTM

@JCZuurmond JCZuurmond added this pull request to the merge queue Feb 25, 2025
Merged via the queue into main with commit 05593cd Feb 25, 2025
7 checks passed
@JCZuurmond JCZuurmond deleted the refactor/let-workflow-linter-use-jobs-crawler branch February 25, 2025 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
migrate/code Abstract Syntax Trees and other dark magic step/assessment go/uc/upgrade - Assessment Step
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[TECH DEBT]: Refactor WorkflowLinter to use the JobsCrawler instead of crawling the jobs itself
2 participants