Thanks for helping with gpu-descheduler. This guide covers how to get a change merged.
Follow the Code of Conduct. For anything beyond a small fix, open an issue first so the approach can be agreed before you write code.
If you used any AI assistance, say so in the pull request and say how much. Write your own commit messages.
You need the Go version from go.mod.
go build ./...
go vet ./...
go test ./... -race -count=1
golangci-lint run
go mod tidy && git diff --exit-code go.mod go.sum
helm lint chart
helm unittest chart # plugin: https://github.com/helm-unittest/helm-unittestTo fuzz a parser, for example the HAMi metrics parser:
go test ./pkg/schedulerclient -run '^$' -fuzz FuzzParseMetrics -fuzztime 30sTo build the image, run ./build-image.sh. See the README for deployment.
- Fork the repository and branch from
main. - Make small commits and sign each one off with
git commit -s. The DCO check fails without aSigned-off-byline. - Add a test that fails without your change.
- Open a pull request against
main. Say what changed and why in a sentence, add a/kindline such as/kind bug, and link the issue withFixes #<number>.
CI runs the checks from "Build and test", plus govulncheck, CodeQL, a short fuzz run, an image build with a vulnerability scan, and DCO. All must pass before merge.
If your change touches GPU allocation, test it on a real GPU. Say which GPU and driver you used.
A reviewer from OWNERS leaves /lgtm. An approver leaves /approve. The bot then merges.
main needs one approval, green checks and all review threads resolved. Answer review comments with code where you can.
Do not open a public issue. See SECURITY.md.