Skip to content

feat: Introduce the default gha version - #1550

Merged
sylvestre merged 11 commits into
mozilla:mainfrom
Xuanwo:gha-improve
Jan 12, 2023
Merged

sylvestre merged 11 commits into
mozilla:mainfrom
Xuanwo:gha-improve

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Jan 11, 2023 •

Copy link
Copy Markdown
Collaborator

Signed-off-by: Xuanwo [email protected]

This PR will introduce the default gha version.

This change has the following benefits:

  • User don't need think and pick version if they don't care or don't wanna purge cache
  • Give sccache a chance to purge users cache while needed (serious bug happened)

To support this change, I did following:

  • Add SCCACHE_GHA_ENABLED as a flag
  • make SCCACHE_GHA_VERSION an optional version.

Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
Signed-off-by: Xuanwo <[email protected]>
@codecov-commenter

codecov-commenter commented Jan 11, 2023 •

Copy link
Copy Markdown

Codecov Report

Base: 30.78% // Head: 30.75% // Decreases project coverage by -0.03% ⚠️

Coverage data is based on head (e773a2e) compared to base (e55ed88).
Patch coverage: 5.26% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1550      +/-   ##
==========================================
- Coverage   30.78%   30.75%   -0.04%     
==========================================
  Files          48       48              
  Lines       16598    16608      +10     
  Branches     7908     7916       +8     
==========================================
- Hits         5109     5107       -2     
- Misses       6104     6111       +7     
- Partials     5385     5390       +5     
Impacted Files Coverage Δ
src/cache/cache.rs 39.92% <0.00%> (ø)
src/cache/gha.rs 0.00% <0.00%> (ø)
src/lib.rs 10.73% <0.00%> (+0.02%) ⬆️
src/config.rs 36.13% <12.50%> (-0.46%) ⬇️
src/mock_command.rs 50.93% <0.00%> (-1.13%) ⬇️
src/compiler/c.rs 38.21% <0.00%> (-0.69%) ⬇️
src/util.rs 34.20% <0.00%> (-0.33%) ⬇️
src/compiler/gcc.rs 54.69% <0.00%> (ø)
... and 3 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Xuanwo Xuanwo changed the title feat: Introcude the default gha version feat: Introduce the default gha version Jan 11, 2023
@sylvestre

Copy link
Copy Markdown
Collaborator

@jakelee8 Do you have an opinion on this ? :)

@jakelee8

Copy link
Copy Markdown
Contributor

LGTM.

@jakelee8

Copy link
Copy Markdown
Contributor

The default version could include env!("CARGO_PKG_VERSION_MAJOR") and maybe minor to automatically change with breaking changes.

@Xuanwo

Xuanwo commented Jan 12, 2023

Copy link
Copy Markdown
Collaborator Author

The default version could include env!("CARGO_PKG_VERSION_MAJOR") and maybe minor to automatically change with breaking changes.

Nice idea, I will add it.

@Xuanwo

Xuanwo commented Jan 12, 2023

Copy link
Copy Markdown
Collaborator Author

cc @sylvestre @jakelee8 all comments have been addressed, PTAL.

@sylvestre
sylvestre merged commit 0485ba7 into mozilla:main Jan 12, 2023
@Xuanwo
Xuanwo deleted the gha-improve branch February 22, 2023 10:03
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.

4 participants