Skip to content

Fix all test cases, add files for test cases in LFS#4

Merged
genedna merged 1 commit into
libra-tools:mainfrom
genedna:main
Sep 28, 2025
Merged

Fix all test cases, add files for test cases in LFS#4
genedna merged 1 commit into
libra-tools:mainfrom
genedna:main

Conversation

@genedna

@genedna genedna commented Sep 28, 2025

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Quanyi Ma <eli@patch.sh>
Copilot AI review requested due to automatic review settings September 28, 2025 10:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes test cases and adds large binary test files to Git LFS for proper handling. It removes a large test_utils module that was downloading files dynamically and instead stores the required pack files directly in LFS.

  • Moved zstdelta implementation from separate file to mod.rs for better organization
  • Replaced dynamic test file downloads with LFS-stored test files
  • Updated all test file paths to use proper manifest directory references
  • Fixed several test configurations and removed ignore attributes

Reviewed Changes

Copilot reviewed 24 out of 35 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/zstdelta/mod.rs Moved zstdelta implementation directly into mod.rs
src/lib.rs Removed test_utils module for dynamic file downloads
src/internal/pack/decode.rs Updated test file paths and fixed async test patterns
src/internal/pack/encode.rs Cleaned up file path handling and comments
tests/data/packs/*.pack Added LFS pointers for large pack files
.gitattributes Added LFS configuration for pack files

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines 425 to +426
// a should be ejected
let r = cache.get(&hash_a.to_string());
assert!(r.is_some());
assert!(r.is_none());

Copilot AI Sep 28, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test logic appears incorrect. After ejecting an item from the cache, the assertion expects the item to be None, but the comment states 'a should be ejected' suggesting it should be present. This contradicts the expected behavior.

Copilot uses AI. Check for mistakes.

#[test]
#[ignore] // Take too long time
#[test]// Take too long time

Copilot AI Sep 28, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing space after #[test] attribute. Should be #[test] // Take too long time

Suggested change
#[test]// Take too long time
#[test] // Take too long time

Copilot uses AI. Check for mistakes.
@genedna genedna merged commit aa8ebb3 into libra-tools:main Sep 28, 2025
@github-actions github-actions Bot mentioned this pull request Feb 10, 2026
genedna added a commit to genedna/git-internal that referenced this pull request Mar 15, 2026
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.

2 participants