Skip to content

Fix disk space measurement workflow producing 0MB results#30

Merged
konard merged 3 commits intomainfrom
issue-29-63c4dfadb482
Jan 29, 2026
Merged

Fix disk space measurement workflow producing 0MB results#30
konard merged 3 commits intomainfrom
issue-29-63c4dfadb482

Conversation

@konard
Copy link
Member

@konard konard commented Jan 29, 2026

Summary

Fixes the measure-disk-space.yml workflow that was producing 0MB measurements for all components.

Root Cause: The workflow's "Free up disk space" step removed packages via apt-get remove/autoremove, which broke apt package installation for the measurement script. Additionally, the cleanup_for_measurement() function was deleting apt package lists.

Changes

  1. Workflow fix (.github/workflows/measure-disk-space.yml):

    • Remove apt-get remove and apt-get autoremove from disk cleanup
    • Only delete large directories that don't affect apt
    • Add apt-get update after cleanup to refresh package lists
    • Add validation step to prevent committing invalid measurements (<1000MB or <10 components)
  2. Script fix (scripts/measure-disk-space.sh):

    • Remove rm -rf /var/lib/apt/lists/* from cleanup function
    • Preserve apt package metadata during measurement
  3. Documentation (docs/case-studies/issue-29/):

    • Complete root cause analysis
    • Timeline of events
    • Solution options and recommendations

Test plan

  • Verify workflow runs successfully after merge
  • Confirm measurements show reasonable values (>1000MB total, >10 components)
  • Validate that invalid measurements are rejected by the new validation step

Fixes #29


Generated with Claude Code

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #29
@konard konard self-assigned this Jan 29, 2026
The measure-disk-space workflow was producing 0MB total because:
1. The "Free up disk space" step removed packages via apt-get remove/autoremove
2. This broke apt package installation for the measurement script
3. The cleanup_for_measurement() function deleted apt lists

Fix:
- Remove apt-get remove/autoremove from disk cleanup (only delete directories)
- Preserve apt package lists during measurement cleanup
- Add validation step to prevent committing invalid measurements
- Add case study documentation (docs/case-studies/issue-29)

Fixes #29

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@konard konard changed the title [WIP] Components size update failed Fix disk space measurement workflow producing 0MB results Jan 29, 2026
@konard konard marked this pull request as ready for review January 29, 2026 14:35
@konard
Copy link
Member Author

konard commented Jan 29, 2026

🤖 Solution Draft Log

This log file contains the complete execution trace of the AI solution draft process.

💰 Cost estimation:

  • Public pricing estimate: $4.419966 USD
  • Calculated by Anthropic: $2.597003 USD
  • Difference: $-1.822963 (-41.24%)
    📎 Log file uploaded as Gist (635KB)
    🔗 View complete solution draft log

Now working session is ended, feel free to review and add any feedback on the solution draft.

@konard konard merged commit a646fe6 into main Jan 29, 2026
10 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.

Components size update failed

1 participant