Skip to content

Conversation

@julio-lopez
Copy link
Collaborator

No description provided.

@codecov
Copy link

codecov bot commented May 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.34%. Comparing base (cb455c6) to head (dad84f4).
Report is 501 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4546      +/-   ##
==========================================
+ Coverage   75.86%   76.34%   +0.47%     
==========================================
  Files         470      527      +57     
  Lines       37301    40047    +2746     
==========================================
+ Hits        28299    30573    +2274     
- Misses       7071     7455     +384     
- Partials     1931     2019      +88     

☔ 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 May 1, 2025 06:33
@julio-lopez julio-lopez enabled auto-merge (squash) May 1, 2025 06:33
@julio-lopez julio-lopez changed the title fix(providers): human-friendly persistence of role durantion fix(providers): human-friendly persistence of role duration May 1, 2025
Copy link
Contributor

@redgoat650 redgoat650 left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@julio-lopez julio-lopez added provider ux User eXperience labels May 1, 2025
import (
"time"

"github.com/kopia/kopia/internal/jsonencoding"
Copy link
Collaborator

Choose a reason for hiding this comment

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

will this cause problems for callers? The type is technically in a package under internal, so I'm not sure if callers will be able to name the type to cast to it when making the config. In other words, I don't know if the below will compile

opts := Options{
  // I don't think external callers can import jsonencoding
  RoleDuration: jsonencoding.Duration(5 * time.Second),
}

Copy link
Collaborator Author

@julio-lopez julio-lopez May 2, 2025

Choose a reason for hiding this comment

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

@ashmrtn I see what you mean.
It's not an issue if the caller is inside kopia, however it is a type in the "exposed" interface for the blob/s3 package.

The package could be moved to repo/jsonencoding, does that work?

Copy link
Collaborator

Choose a reason for hiding this comment

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

yea, that would work. Do you want me to spin up a PR moving the package? We could merge it after this one if that makes it easier

import (
"time"

"github.com/kopia/kopia/internal/jsonencoding"
Copy link
Collaborator

Choose a reason for hiding this comment

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

yea, that would work. Do you want me to spin up a PR moving the package? We could merge it after this one if that makes it easier

@julio-lopez julio-lopez merged commit c7d5071 into kopia:master May 2, 2025
28 of 29 checks passed
@julio-lopez julio-lopez deleted the fix/s3-opt-role-duration-unmarshaling branch May 2, 2025 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

provider ux User eXperience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants