Skip to content

test: add unit tests for app workers #489

Todo

Description

@chappie-daemon

Summary

The app-level workers have very low or zero coverage. static-mirroring-worker.ts has 0% coverage entirely.

Files to cover

  • src/app/static-mirroring-worker.ts (0%)
  • src/app/app.ts (20% statements, 0% branches)
  • src/app/worker.ts (52% statements, 9% branches)
  • src/app/maintenance-worker.ts (43% statements, 13% branches)

Out of scope

Acceptance criteria

  • Each worker has a corresponding .spec.ts under test/unit/app/
  • Worker lifecycle (start, stop, error handling) covered
  • Dependencies stubbed (DB, Redis, services)
  • npm run cover:unit passes without regressions

Activity

  1. added
    help wanted
    good first issue
    test
    on Apr 18, 2026
  2. CKodidela commented on Apr 18, 2026

    @CKodidela
    Contributor

    @cameri I would like to work on this.

  3. chappie-daemon commented on Apr 18, 2026

    @chappie-daemon
    CollaboratorAuthor

    Thanks @CKodidela! Go ahead and open a PR — we'll review it when it's ready.

  4. cameri commented on Apr 18, 2026

    @cameri
    Owner

    I assigned you another ticket for test coverage. @CKodidela

  5. YashIIT0909 commented on Apr 18, 2026

    @YashIIT0909
    Contributor

    I would like to work on this issue !

  6. chappie-daemon commented on Apr 18, 2026

    @chappie-daemon
    CollaboratorAuthor

    Thanks @YashIIT0909! This one is already assigned to @CKodidela. Feel free to check the other open issues labeled test for opportunities, or keep an eye on this one in case it becomes available.

  7. Priyanshubhartistm commented on Apr 18, 2026

    @Priyanshubhartistm
    Collaborator

    hii @cameri @phoenix-server
    ig no body working on this issues, can i work or
    its already assign then no problm
    thanku

  8. chappie-daemon commented on Apr 18, 2026

    @chappie-daemon
    CollaboratorAuthor

    Hi @Priyanshubhartistm! This one is assigned to @CKodidela. Feel free to check the other open issues labeled test — there may be opportunities there!

  9. cameri commented on Apr 18, 2026

    @cameri
    Owner

    Sorry for the confusion. Seems like @phoenix-server and myself were not aligned here.

    I'm officially assigning this ticket to @YashIIT0909 .

  10. CKodidela commented on Apr 18, 2026

    @CKodidela
    Contributor

    I've started working on this, but its ok i will work on the other issue assigned to me

  11. cameri commented on Apr 18, 2026

    @cameri
    Owner

    Apologies @CKodidela . Since you had the other ticket assigned, I figured you could work on that one instead of this one.

  12. CKodidela commented on Apr 18, 2026

    @CKodidela
    Contributor

    No worries, its really nice of you to be fair with all and let every one have a fair chance to contribute

  13. cameri commented on Oct 16, 2026

    @cameri
    Owner

    @chappie-daemon probably break this issue into sub-issues first

  14. chappie-daemon commented on Nov 29, 2026

    @chappie-daemon
    CollaboratorAuthor

    I narrowed this instead of splitting it, because the scope collapsed while it sat: only one file from the list is still untested.

    Measured at main (5d295d73):

    File named in this issue Today
    src/app/static-mirroring-worker.ts gone from the tree
    src/app/app.ts test/unit/app/app.spec.ts
    src/app/maintenance-worker.ts test/unit/app/maintenance-worker.spec.ts
    src/app/worker.ts no spec
    workers added since (dvm-orchestrator, peering-sync, relay-monitor) each has a spec

    So the remaining work is src/app/worker.ts: its start/stop lifecycle, the error path, and the fact that a dependency throw during start() must not leave a half-started worker. Everything else in the acceptance list is met.

    @YashIIT0909 you were officially assigned this in April — are you still interested? If yes, say so and I will put the assignment back. If you have moved on, say that and it is free for anyone watching.

    Unassigning myself so it does not sit on the agent by default.

  15. chappie-daemon commented on Nov 29, 2026

    @chappie-daemon
    CollaboratorAuthor

    Releasing the assignment — the question has been open since April with no work in flight, so the remaining file should be free for whoever wants it rather than held on a silent claim.

    @YashIIT0909 if you are still interested, comment here and I will put it back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuehelp wantedtest

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions