Skip to content

Conversation

@Lorygold
Copy link
Contributor

@Lorygold Lorygold commented Jan 24, 2026

Introduces a diff command to compare container checkpoints and highlight changes in tasks and runtime state. Supports tree and JSON views, helping security engineers investigate incidents by comparing two checkpoints, making changes more visible and easier to analyze.

Resolves #173

@github-actions

This comment was marked as outdated.

@github-actions
Copy link

github-actions bot commented Jan 24, 2026

Test Results

61 tests  ±0   61 ✅ ±0   2s ⏱️ ±0s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit 7120e7a. ± Comparison against base commit 50f94b4.

♻️ This comment has been updated with latest results.

@adrianreber
Copy link
Member

Did you forget to commit some changes? You reference the function DiffTasks() is not defined anywhere from what I can see.

@codecov-commenter
Copy link

codecov-commenter commented Jan 26, 2026

Codecov Report

❌ Patch coverage is 28.26087% with 99 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.90%. Comparing base (50f94b4) to head (7120e7a).

Files with missing lines Patch % Lines
internal/diff_types.go 0.00% 66 Missing ⚠️
cmd/diff.go 53.52% 33 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #192      +/-   ##
==========================================
- Coverage   74.37%   69.90%   -4.48%     
==========================================
  Files          13       15       +2     
  Lines        1284     1422     +138     
==========================================
+ Hits          955      994      +39     
- Misses        253      352      +99     
  Partials       76       76              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@adrianreber
Copy link
Member

The current error is because the test will try to compile each commit. The best thing to do here, because it is all connected, just squash the commits.

@rst0git rst0git force-pushed the add_diff_command branch 2 times, most recently from 342d665 to 6bdd765 Compare January 26, 2026 18:12
@Lorygold Lorygold changed the title Added the diff command Enable forensic analysis of checkpoint differences in Kubernetes (added the diff command) Jan 26, 2026
@Lorygold Lorygold changed the title Enable forensic analysis of checkpoint differences in Kubernetes (added the diff command) Added the diff command - for enabling forensic analysis of checkpoint differences in Kubernetes Jan 26, 2026
…ting changes in tasks and runtime state. This helps security engineers investigate incidents and understand how containers evolve over time, making state changes more visible and easier to analyze.

Signed-off-by: Lorygold <lory.goldoni@gmail.com>
@adrianreber
Copy link
Member

Looks good so far. Please add tests. The goal is to have pretty good code coverage with our tests.

You could also add the diff feature to the README.md file.

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.

Feature: Checkpoint Diffing (Compare Two Checkpoints)

4 participants