Skip to content

chore: improve engineering excellence - #59

Merged
KevinTCoughlin merged 4 commits into
mainfrom
copilot/engineering-excellence-audit
Aug 17, 2026
Merged

chore: improve engineering excellence#59
KevinTCoughlin merged 4 commits into
mainfrom
copilot/engineering-excellence-audit

Conversation

@KevinTCoughlin

Copy link
Copy Markdown
Owner

Summary

  • address high-confidence correctness, security, reliability, and maintainability gaps found during an engineering-excellence audit
  • strengthen automated validation, CI/CD safety, documentation, and developer experience where applicable
  • incorporate fixes from an independent regression review of the complete patch

Validation

  • repository-specific tests, linters, builds, and static checks passed where supported by the local platform
  • final git diff --check passed

Hardware-, platform-, or live-infrastructure-dependent checks are documented in the changed project guidance where applicable.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: baa33468-0d83-443b-8f47-de96eb9c46e7
Copilot AI lite review requested due to automatic review settings August 16, 2026 22:16

Copilot AI left a comment

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.

Pull request overview

This PR tightens correctness and reliability around server JAR installation and container entrypoint configuration, and backs it up with targeted tests and CI enforcement consistent with an engineering-excellence hardening pass.

Changes:

  • Make server JAR installs safer by downloading to a temp file, verifying checksums before replacing server.jar, and backing up/restoring on failures.
  • Harden entrypoint.sh configuration substitution (escaping + newline rejection) and require an explicit RCON_PASSWORD, with a shell test added to CI.
  • Improve reliability/strictness in CI and backup logic (tighter tidy check; ensure tar input files are closed with error propagation).

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/entrypoint_test.sh Adds a shell test validating entrypoint.sh escaping for RCON password and MOTD.
README.md Updates Java version messaging and makes RCON_PASSWORD explicitly required with guidance.
internal/server/fabric.go Avoids silent rename failure by returning an error; factors out installer versions URL.
internal/server/fabric_test.go Adds regression coverage to ensure existing server.jar is restored on Fabric rename failure.
internal/server/download.go Makes JAR downloads atomic and introduces structured backup/restore behavior.
internal/server/download_test.go Adds tests for atomic replacement and preservation of existing JAR on checksum failure.
internal/management/backup.go Ensures file handles are closed and close errors are surfaced after tar copy.
entrypoint.sh Requires RCON_PASSWORD, adds escaping/newline validation, and refactors server.properties templating into a function.
.github/workflows/dependency-check.yml Makes go mod tidy drift a hard failure via git diff --exit-code.
.github/workflows/ci.yml Expands path filters and runs ShellCheck + entrypoint configuration test in CI.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread internal/server/download.go Outdated
@KevinTCoughlin

Copy link
Copy Markdown
Owner Author

@copilot resolve the merge conflicts on this branch.

Copilot AI and others added 2 commits August 17, 2026 03:13
…xcellence-audit

# Conflicts:
#	internal/server/download.go
#	internal/server/download_test.go

Co-authored-by: KevinTCoughlin <706967+KevinTCoughlin@users.noreply.github.com>
Co-authored-by: KevinTCoughlin <706967+KevinTCoughlin@users.noreply.github.com>

Copilot AI commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts on this branch.

Resolved in 968ea40. Merged main and reconciled internal/server/download.go/download_test.go — kept main's retry logic, temp-file permission fix, and cross-platform renameOverwrite, plus this branch's backup/restore-on-failure for the Fabric install path. Build, vet, and tests all pass.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@KevinTCoughlin
KevinTCoughlin merged commit 93042e5 into main Aug 17, 2026
3 checks passed
@KevinTCoughlin
KevinTCoughlin deleted the copilot/engineering-excellence-audit branch August 17, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants