Skip to content

feat(ingester): add pending_retry folder#1678

Merged
MarceloRobert merged 2 commits intokernelci:mainfrom
MarceloRobert:feat/ingester-pending-retry
Dec 16, 2025
Merged

feat(ingester): add pending_retry folder#1678
MarceloRobert merged 2 commits intokernelci:mainfrom
MarceloRobert:feat/ingester-pending-retry

Conversation

@MarceloRobert
Copy link
Copy Markdown
Collaborator

Fixes issues with file counter since the files were moved directly to archive before their data was processed, since their data was moved to the queue directly.

How to test

You can test the move to pending directory by disabling the database connection, and you can test the archival when many files are queued for insertion, only a portion will be inserted at a time.

Part of #1376

@MarceloRobert MarceloRobert self-assigned this Dec 15, 2025
@MarceloRobert MarceloRobert added the Ingester The issue relates to the ingester tool, including the command itself and related functions. label Dec 15, 2025
Comment on lines +94 to +96
archive_dir = os.path.join(spool_dir, "archive")
failed_dir = os.path.join(spool_dir, "failed")
pending_retry_dir = os.path.join(spool_dir, "pending_retry")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We could probably create a little helper struct to pass these around as a single "context object" argument instead of passing all 3 of them

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I just changed in ingest_submissions_parallel since after that they are used separately, I don't think we need to group just the archive and pending_retry dirs

@MarceloRobert MarceloRobert force-pushed the feat/ingester-pending-retry branch from 7953b87 to f321ab4 Compare December 15, 2025 17:29
@MarceloRobert MarceloRobert marked this pull request as ready for review December 15, 2025 17:29
@MarceloRobert MarceloRobert changed the title wip: add pending_retry folder feat(ingester): add pending_retry folder Dec 15, 2025
Fixes issues with file counter since the files were moved directly to archive before their data was processed, since their data was moved to the queue directly.

Part of kernelci#1376
@MarceloRobert MarceloRobert force-pushed the feat/ingester-pending-retry branch from f321ab4 to d090443 Compare December 15, 2025 17:39
Also adjusts performance tests docs
Copy link
Copy Markdown
Contributor

@gustavobtflores gustavobtflores left a comment

Choose a reason for hiding this comment

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

LGTM

@MarceloRobert MarceloRobert added this pull request to the merge queue Dec 16, 2025
Merged via the queue into kernelci:main with commit 99e57f2 Dec 16, 2025
7 checks passed
@MarceloRobert MarceloRobert mentioned this pull request Dec 19, 2025
11 tasks
@MarceloRobert MarceloRobert deleted the feat/ingester-pending-retry branch January 23, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ingester The issue relates to the ingester tool, including the command itself and related functions.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants