Skip to content

fix: skip address-blocked jobs before context resolution#455

Merged
silent-cipher merged 1 commit into
FilOzone:feat/enable-disable-spfrom
SgtPooki:codex/pr452-blocklist-runtime-guard
Apr 17, 2026
Merged

fix: skip address-blocked jobs before context resolution#455
silent-cipher merged 1 commit into
FilOzone:feat/enable-disable-spfrom
SgtPooki:codex/pr452-blocklist-runtime-guard

Conversation

@SgtPooki
Copy link
Copy Markdown
Collaborator

@SgtPooki SgtPooki commented Apr 16, 2026

Summary

  • centralize runtime SP blocklist handling in JobsService
  • skip address-blocked jobs before resolving provider metadata
  • keep ID-based blocking after provider context resolution
  • add regression coverage for address-blocked queued jobs with missing provider context

Verification

  • pnpm -C apps/backend test src/jobs/jobs.service.spec.ts src/common/sp-blocklist.spec.ts
  • pnpm -C apps/backend typecheck
  • pnpm -C apps/backend check:ci

PR is on top of #452

@FilOzzy FilOzzy added this to FOC Apr 16, 2026
@github-project-automation github-project-automation Bot moved this to 📌 Triage in FOC Apr 16, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Centralizes runtime SP blocklist handling in JobsService so address-blocked providers are skipped before resolving provider metadata (wallet/DB), and adds regression coverage to prevent reintroducing provider-context lookups for address-blocked queued jobs.

Changes:

  • Added a shared resolveRunnableProviderJobContext helper to apply address-based blocking pre-context and ID-based blocking post-context.
  • Updated deal/retrieval/data-set-creation job handlers to use the shared helper instead of inline blocklist checks.
  • Added a regression test ensuring address-blocked jobs don’t attempt provider context resolution (wallet/DB).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
apps/backend/src/jobs/jobs.service.ts Introduces centralized runtime blocklist/context gating and wires it into SP job handlers.
apps/backend/src/jobs/jobs.service.spec.ts Adds regression coverage for address-blocked jobs with missing provider context.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread apps/backend/src/jobs/jobs.service.ts
Comment thread apps/backend/src/jobs/jobs.service.ts
Comment thread apps/backend/src/jobs/jobs.service.ts
@github-project-automation github-project-automation Bot moved this from 📌 Triage to ✔️ Approved by reviewer in FOC Apr 16, 2026
@silent-cipher silent-cipher merged commit 0faee7e into FilOzone:feat/enable-disable-sp Apr 17, 2026
12 checks passed
@github-project-automation github-project-automation Bot moved this from ✔️ Approved by reviewer to 🎉 Done in FOC Apr 17, 2026
silent-cipher added a commit that referenced this pull request Apr 17, 2026
* feat: add sp blocklist to skip checks for providers

* chore: address pr comments

* fix: skip address-blocked jobs before context resolution (#455)

* chore: address copilot review comments

---------

Co-authored-by: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🎉 Done

Development

Successfully merging this pull request may close these issues.

4 participants