Skip to content

ci: add cargo fetch step to measure download vs build time#343

Merged
josecelano merged 1 commit intomainfrom
measure-ci-build-vs-download-time
Feb 13, 2026
Merged

ci: add cargo fetch step to measure download vs build time#343
josecelano merged 1 commit intomainfrom
measure-ci-build-vs-download-time

Conversation

@josecelano
Copy link
Copy Markdown
Member

📊 Purpose

This PR adds a separate cargo fetch step before the build step in the CI workflow to help measure:

  • How much time is spent downloading dependencies
  • How much time is spent on the actual build process

🔍 Context

We want to identify if dependency downloads are a bottleneck in our CI build process. By separating the download step (cargo fetch) from the build step (cargo build), we can measure each phase independently in the GitHub Actions logs.

📝 Changes

  • Added a new step "Download Dependencies" that runs cargo fetch --verbose before the build step
  • This allows us to see timing for each phase separately in the CI logs

🎯 Expected Outcome

After this PR is merged and the workflow runs, we'll be able to see:

  1. Duration of dependency downloads (fetch step)
  2. Duration of the actual compilation (build step)

This data will help determine if we need to optimize dependency caching or if the build time itself is the primary concern.

✅ Testing

  • The workflow syntax is valid
  • This change only adds observability without affecting functionality

@josecelano josecelano self-assigned this Feb 12, 2026
@josecelano
Copy link
Copy Markdown
Member Author

ACK 13b2dbf

@josecelano josecelano force-pushed the measure-ci-build-vs-download-time branch from 13b2dbf to e79aa2b Compare February 13, 2026 09:01
@josecelano
Copy link
Copy Markdown
Member Author

ACK e79aa2b

@josecelano josecelano merged commit 5968273 into main Feb 13, 2026
35 checks passed
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.

1 participant