Repository navigation
Add profiling command - #11
Conversation
List recent profiling snapshots and inspect full snapshots by GitHub Actions job ID. Support table and JSON output for organisations and personal repository owners. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This comment has been minimized.
This comment has been minimized.
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
AI Pull Request OverviewDisclaimer: This review was generated by automated AI and may contain errors. Do not trust its outputs without human verification. Summary
Approval rating (1-10)7/10. The command is mostly cohesive, but the detailed memory field handling needs clarification or correction before merge. Summary per fileSummary per file
Overall AssessmentThe PR is narrowly scoped and follows the existing CLI/client patterns. The main risk is in the new detailed profile model: minimum available memory is named and tagged as a GB field but rendered as raw bytes, which can produce misleading detailed output if the API returns the field implied by the JSON name. The tests currently construct the struct directly, so they do not catch this wire-format mismatch. Detailed ReviewDetailed Reviewcmd/profile.goFinding: detailed minimum memory can be rendered with the wrong unit
The direct struct-construction test in If the detailed endpoint returns gigabytes, keep the field as GB and render it with a GB formatter. If it returns bytes, the JSON tag should match the actual wire field and the test should unmarshal a representative detailed response before rendering. Relevant lines: {"RAM minimum available", formatProfileBytes(snapshot.MinAvailableMemoryBytes)},
...
MinAvailableMemoryBytes *float64 `json:"min_memory_available_gb,omitempty"`AI agent details. |
|
Will follow-up on the finding. |
Summary
Testing