feat: bundled Go service example and real Go toolchain vertical slice - #14
Merged
Merged
Conversation
- Add runnable Go HTTP service in projects/go_service/ with /health and /info endpoints, structured JSON logging, tests, and multi-stage Dockerfile - Implement RealGoTool and SimulatedGoTool with safe subprocess execution (fmt, vet, test, build, mod verify) - Generalize ProjectAnalyzer to detect Go projects and frameworks without path special-casing - Extend local_flow, deploy_flow, and planning_service for multi-stack Go workflow execution and learning moments - Add comprehensive unit, integration, and falsification test suites - Update CI workflow with Go toolchain and container build checks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the roadmap item BUNDLED GO EXAMPLE PROJECT + REAL GO TOOLCHAIN VERTICAL SLICE for
DevOps-Learn-by-Doing.Key Deliverables
projects/go_service/):/healthand/infoendpoints using Go standard library (net/http,log/slog).Dockerfile(golang:1.22-alpinebuilder +alpine:3.20runtime).health_test.go,info_test.go) asserting status codes, payload shapes, environment overrides, and secret-safety guarantees.src/devops_learn/tools/go_tool.py):RealGoToolandSimulatedGoToolextendingToolwith allow-listed operations:run_tests,run_vet,run_build,run_fmt_check,verify_modules,version._subprocess_safety.run_safely(argument arrays, timeouts, output sanitization, non-zero return code detection,shell=False).src/devops_learn/analysis/project_analyzer.py):_detect_languageto detectLanguageKind.GOviago.modand*.gosources without folder/path special-casing.os.Getenv,os.LookupEnv).slog,log,zap,logrus).src/devops_learn/workflows/local_flow.py):gofmtformat check ->go vetstatic analysis ->go testunit tests ->go buildbinary build ->docker buildmulti-stage container ->docker run-> endpoint health check ->docker logs->docker stop.planning/service.py,workflows/deploy_flow.py,bootstrap.py,cli/main.py):assessment.language.tests/tools/test_go_tool.py,tests/troubleshooting/test_go_falsification.py, andtests/workflows/test_local_flow.py.go vetfailures, compilation errors, malformed modules, and healthcheck failures fail closed.Evidence of Verification
ai verify: PASSED (flake8 exit 0, pytest exit 0: 199 passed, 1 skipped)flake8: Clean (exit 0)mypy+ demo appmypy app --strict: Clean (exit 0, 147 + 4 source files)gofmt,go mod verify,go vet,go test,go build): All passed onprojects/go_service/