Scheduler: human-readable messages for placement rejections

Open Beginner friendly
#142 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
85/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
backend, testing

Research direction

Read packages/domain/src/lib/scheduler.ts to see how placeReplica produces rejection codes, then check the existing test patterns in scheduler.spec.ts. Add a unit test for each listed code and run pnpm nx test domain. Done means each code produces a short operator-facing English sentence, with no framework import in the domain package.

Written by the indexing model from the issue text.

Description

enhancement good first issue priority:P3 track:control-plane

placeReplica in packages/domain/src/lib/scheduler.ts returns one code per rejected node (not_ready, architecture, labels, not_allowed, volume, cpu, memory, ports).

Task

  • Add a pure describeRejection(code, nodeName) that returns a short English sentence for operators, for example "edge-1 does not have enough free memory".
  • Add a unit test per code in scheduler.spec.ts.

Acceptance

pnpm nx test domain passes. No framework import in the domain package.

Dominant language
TypeScript
Stars
2
Forks
1
Avg merge
7h 17m
Merged PRs (30d)
197

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from shipkeepdev/shipkeep

All issues in shipkeepdev/shipkeep

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.