Skip to content

feat: add ProjectMetadata schema and internal cli metadata hook - #663

Open
ElijahAhianyo wants to merge 1 commit into
masterfrom
elijah/cot-cli-proxy/stack-1-metadata
Open

feat: add ProjectMetadata schema and internal cli metadata hook#663
ElijahAhianyo wants to merge 1 commit into
masterfrom
elijah/cot-cli-proxy/stack-1-metadata

Conversation

@ElijahAhianyo

@ElijahAhianyo ElijahAhianyo commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Description

Add a feature to extract metadata from every cot-compiled binary. We obtain information about the cli commands shipped with the binary and the name of the binary. This will be used by the cot-cli crate to identify what CLI commands are present in the binary.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Refactor / cleanup
  • Performance improvement
  • Other (describe above)

@github-actions github-actions Bot added the C-lib Crate: cot (main library crate) label Sep 3, 2026
@ElijahAhianyo
ElijahAhianyo marked this pull request as ready for review September 3, 2026 05:03
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

🐰 Bencher Report

Projectcot
Branchelijah/cot-cli-proxy/stack-1-metadata
Testbedgithub-ubuntu-latest
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
microseconds (µs)
(Result Δ%)
Upper Boundary
microseconds (µs)
(Limit %)
empty_router/empty_router📈 view plot
🚷 view threshold
14,375.00 µs
(+52.01%)Baseline: 9,456.60 µs
17,946.95 µs
(80.10%)
json_api/json_api📈 view plot
🚷 view threshold
1,117.70 µs
(+8.71%)Baseline: 1,028.16 µs
1,359.84 µs
(82.19%)
nested_routers/nested_routers📈 view plot
🚷 view threshold
1,041.40 µs
(+8.01%)Baseline: 964.18 µs
1,253.59 µs
(83.07%)
single_root_route/single_root_route📈 view plot
🚷 view threshold
997.14 µs
(+7.44%)Baseline: 928.10 µs
1,216.83 µs
(81.95%)
single_root_route_burst/single_root_route_burst📈 view plot
🚷 view threshold
16,309.00 µs
(-3.04%)Baseline: 16,819.62 µs
21,433.25 µs
(76.09%)
🐰 View full continuous benchmarking report in Bencher

@ElijahAhianyo ElijahAhianyo changed the title elijah/cot cli proxy/stack 1 metadata feat: add ProjectMetadata schema and internal cli metadata hook Sep 3, 2026
@ElijahAhianyo
ElijahAhianyo force-pushed the elijah/cot-cli-proxy/stack-1-metadata branch from 5d1d637 to ae21526 Compare September 3, 2026 18:05
@ElijahAhianyo
ElijahAhianyo requested a review from a team September 3, 2026 18:31
@codecov

codecov Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.30769% with 13 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cot/src/project.rs 0.00% 10 Missing ⚠️
cot/src/cli.rs 0.00% 3 Missing ⚠️
Flag Coverage Δ
rust 90.14% <92.30%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
cot/src/metadata.rs 100.00% <100.00%> (ø)
cot/src/cli.rs 86.49% <0.00%> (-0.85%) ⬇️
cot/src/project.rs 87.66% <0.00%> (-1.10%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-lib Crate: cot (main library crate)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant