Repository navigation
docs(readme): rewrite README as a user-first guide with verified quickstart - #21
Conversation
…kstart Reorients README.md so a fresh install succeeds without reading anything else, while keeping the contributor/maintainer content: - New order: what it is, install, commands, quickstart, generating a profile, command reference, language profilers, build from source, ecosystem map. - Quickstart is the verified validate path: rc profile validate rc-demos/artifacts/request-logger-http.profile.yaml -> "runtimeconditions: profile validated". - Generate section documents the three prerequisites with real error strings verified against the linked go-rc-profiler v0.8.0: Go toolchain on PATH, --dir must contain a go.mod, and published binding modules only (go.mod replace rejected by design with the exact message). - Example workload uses the published modules runtimeconditions.io/x/rc/common@v0.3.0 and .../env@v0.3.0; notes the verified current env v0.3.0 dependency-archive SHA-256 mismatch. - Install paths verified against the org: brew runtimeconditions/tools/rc-cli, https://runtimeconditions.io/packages/setup.sh + apt/dnf, npm @runtimeconditions/typescript-profiler, PyPI runtimeconditions-profiler. - All commands/flags checked against --help output of a binary built from this branch; existing command tables kept; build-from-source section preserves the schema-linker caveat and release-build notes. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
"Your first profile" implied the quickstart creates a profile; it only validates a committed demo one. Heading is now "validate an existing profile" with a one-line clarification. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
…/, add CONTRIBUTING.md - README.md (127 lines): what-it-is + example scenario, Install, Quickstart (validate an existing profile), Commands with full table, Documentation links, Ecosystem, Contributing, License - docs/: generating-profiles.md, language-profilers.md, bindings.md, build-from-source.md, command-reference.md - CONTRIBUTING.md: building, layout, testing (gofmt/vet/test -race/mod verify per ci.yml), PR expectations Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
… pages - command-reference.md duplicated the README command table; its --help block now lives inline in README Commands - build-from-source.md is word-identical to the original Build locally + CI coverage sections (restored dropped smoke-test PATH sentence) - restored dropped sentences in generating-profiles.md and bindings.md Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- Example scenario links the demo Todos API in rc-demos - Quickstart validate paragraph rewritten as short sentences - Install and Commands explanations converted to bullet lists Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Table now lists only the rc profile commands; version/plugins/completion are covered by the console examples and bullets above it. The --help block collapses to one line. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
The spec repo owns the profile schema (pinned + checksum-verified from its release assets at build time); state that once at the top link and drop the repeated spec bullet from the Ecosystem section. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Lead-in labels the console blocks as install-check demos; the table is now the full command list (version, plugins list, completion rows restored); bullets only interpret output. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Ecosystem list now states the relationship per repo (linked library, compiled-in module, PATH add-ons, demos, distribution channels) and labels ebpf-rc-profiler as legacy/experimental per its own README. Also: Commands lead-in simplified to "Verify the install:". Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
| 1. **A Go toolchain on `PATH`.** Without one, generation fails with | ||
| `exec: "go": executable file not found in $PATH`. `rc` does not download Go for you. |
There was a problem hiding this comment.
This shouldn't be true. I'd be all sorts of sad if it is. The CLI is built to a binary, which includes the Golang profiler. There shouldn't be anything in the distributed profiler (e.g. installed via Homebrew, apt, or yum) that requires the Golang toolchain.
There was a problem hiding this comment.
let me check it again
There was a problem hiding this comment.
Did a check (can post to an issue):
The installed rc binary itself needs no Go toolchain. --help, --version, plugins list, and profile validate all run without go on PATH.
But rc profile generate on a Go workload does: the linked profiler shells out to the toolchain to resolve the module graph (go-rc-profiler v0.8.0, extensioncheck/imported.go:96,103,169; go mod download all, go mod verify, go list -mod=readonly -deps -json ./...).
Proof with a binary built from this branch against a module requiring runtimeconditions.io/x/rc/common v0.3.0:
$ /tmp/rc-test profile generate --dir /tmp/myworkload # go on PATH
apiVersion: runtimeconditions.io/v1alpha1
kind: RuntimeConditionsProfile
... # exit 0
$ env -i PATH=/usr/bin:/bin /tmp/rc-test profile generate --dir /tmp/myworkload
rc: err: go command required, not found: exec: "go": executable file not found in $PATH # exit 1
There was a problem hiding this comment.
Ok, that does make sense. Thanks for confirming and investigating. We can leave this as is.
colinjlacy
left a comment
There was a problem hiding this comment.
Really good first pass. There are some things that I think should be opened issues instead of documented shortcomings. But the overall vibe and guidance to the user is really helpful!
|
Great contribution @lasomethingsomething . Thank you! |
Rewrites README.md so a fresh install can succeed without reading anything else, while keeping the maintainer/contributor content.
Adds
docs/: generating profiles, language profilers, bindings, build-from-source (moved verbatim from the old README)Adds
CONTRIBUTING.md: build/test/PR workflow matchingci.yml`Every command, flag, and error string was verified against a binary built from this branch plus live checks (brew tap,
setup.sh, npm/PyPI, Go proxy). The quickstart was run end to end:rc profile validate rc-demos/artifacts/request-logger-http.profile.yaml→runtimeconditions: profile validated.Known gap documented in the README:
runtimeconditions.io/x/rc/env@v0.3.0currently fails generate withdependency Go module archive SHA-256 mismatch.Helped by Mistral Vibe.