Skip to content

Conversation

@julio-lopez
Copy link
Collaborator

No description provided.

@julio-lopez julio-lopez requested a review from Copilot June 5, 2025 05:12
Copy link

Copilot AI left a comment

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 performs miscellaneous cleanups across test code, simplifying temporary directory creation, unifying skip helper names, and modernizing assertion patterns.

  • Replace manual os.MkdirTemp setup with t.TempDir and consolidate error checks using require
  • Rename and consolidate skip helpers from TestSkip* to SkipTest* and update their usage
  • Convert Windows path literals to raw string syntax and streamline CLI test logging

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/tools/kopiarunner/kopia_snapshotter_exe_test.go Switch to t.TempDir, use require helpers, and consolidate empty-slice check
tests/testenv/cli_test_env.go Cache getLogOutputPrefix result, simplify stdout/stderr logging conditions
tests/end_to_end_test/restore_test.go Rename TestSkipUnlessLinux to SkipTestUnlessLinux
tests/end_to_end_test/norace_test.go Use t.TempDir instead of testutil.TempDirectory, remove unused import
snapshot/upload/upload_test.go Add assertion messages, rename skip helper to SkipTestOnCIUnlessLinuxAMD64
repo/blob/sftp/sftp_storage_test.go Rename skip helper to SkipTestOnCIUnlessLinuxAMD64
repo/blob/s3/s3_storage_test.go Rename skip helper to SkipTestOnCIUnlessLinuxAMD64
internal/testutil/testutil.go Remove deprecated TestSkip* functions, add SkipTest* replacements
internal/testutil/dockertestutil.go Replace TestSkipUnlessCI with explicit tb.Skipf/tb.Fatalf logic
fs/localfs/local_fs_test.go Convert Windows path literals to raw string backticks for clarity

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Jun 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.39%. Comparing base (cb455c6) to head (d623a07).
Report is 565 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4652      +/-   ##
==========================================
+ Coverage   75.86%   76.39%   +0.53%     
==========================================
  Files         470      529      +59     
  Lines       37301    40160    +2859     
==========================================
+ Hits        28299    30682    +2383     
- Misses       7071     7460     +389     
- Partials     1931     2018      +87     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@julio-lopez julio-lopez marked this pull request as ready for review June 5, 2025 05:57
@julio-lopez julio-lopez merged commit e1d065a into kopia:master Jun 5, 2025
27 checks passed
@julio-lopez julio-lopez deleted the refactor/misc-nits branch June 5, 2025 05:58
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