Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use debian base images instead of alpine #285

Merged
merged 3 commits into from
Apr 15, 2024

Conversation

matt-codecov
Copy link
Contributor

@matt-codecov matt-codecov commented Feb 24, 2024

fixes codecov/engineering-team#1242

with an alpine/musl image we have to build more packages from source. grpcio takes an eternity to build for example

also apparently alpine/musl images have DNS resolution problems

this uses an official "slim" python image based on debian stable. from a quick glance at uncompressed image sizes on my local machine, this is actually 300mb smaller:
Screenshot 2024-02-23 at 7 46 49 PM
Screenshot 2024-02-23 at 7 47 03 PM

i have not rigorously tested this but it seems okay

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

Copy link

codecov bot commented Feb 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.55%. Comparing base (f15348a) to head (f077576).

✅ All tests successful. No failed tests found ☺️

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #285   +/-   ##
=======================================
  Coverage   97.55%   97.55%           
=======================================
  Files         425      425           
  Lines       33597    33597           
=======================================
  Hits        32776    32776           
  Misses        821      821           
Flag Coverage Δ
integration 97.54% <ø> (ø)
latest-uploader-overall 97.54% <ø> (ø)
unit 97.54% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 94.88% <ø> (ø)
OutsideTasks 97.65% <ø> (ø)

This change has been scanned for critical changes. Learn more

Copy link

codecov-public-qa bot commented Feb 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.54%. Comparing base (f15348a) to head (f077576).

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #285   +/-   ##
=======================================
  Coverage   97.54%   97.54%           
=======================================
  Files         394      394           
  Lines       32897    32897           
=======================================
  Hits        32089    32089           
  Misses        808      808           
Flag Coverage Δ
integration 97.54% <ø> (ø)
latest-uploader-overall 97.54% <ø> (ø)
unit 97.54% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 94.89% <ø> (ø)
OutsideTasks 97.65% <ø> (ø)

@codecov-qa
Copy link

codecov-qa bot commented Feb 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.54%. Comparing base (f15348a) to head (f077576).

✅ All tests successful. No failed tests found ☺️

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #285   +/-   ##
=======================================
  Coverage   97.54%   97.54%           
=======================================
  Files         394      394           
  Lines       32897    32897           
=======================================
  Hits        32089    32089           
  Misses        808      808           
Flag Coverage Δ
integration 97.54% <ø> (ø)
latest-uploader-overall 97.54% <ø> (ø)
unit 97.54% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 94.89% <ø> (ø)
OutsideTasks 97.65% <ø> (ø)

@codecov-staging
Copy link

codecov-staging bot commented Feb 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #285   +/-   ##
=======================================
  Coverage   97.54%   97.54%           
=======================================
  Files         394      394           
  Lines       32897    32897           
=======================================
  Hits        32089    32089           
  Misses        808      808           
Flag Coverage Δ
integration 97.54% <ø> (ø)
latest-uploader-overall 97.54% <ø> (ø)
unit 97.54% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 94.89% <ø> (ø)
OutsideTasks 97.65% <ø> (ø)

giovanni-guidini added a commit that referenced this pull request Mar 29, 2024
I'm copying the changes because that PR is far behind `main`.
We will probably wait for the base image change to happen before merging
this update work though
@nora-codecov nora-codecov force-pushed the matt/debian-base-image branch 2 times, most recently from 57fb9f6 to a33403f Compare April 2, 2024 20:34
@nora-codecov nora-codecov force-pushed the matt/debian-base-image branch 2 times, most recently from afb79fc to c393808 Compare April 9, 2024 18:18
@nora-codecov nora-codecov merged commit b141050 into main Apr 15, 2024
30 checks passed
@nora-codecov nora-codecov deleted the matt/debian-base-image branch April 15, 2024 19:27
giovanni-guidini added a commit that referenced this pull request Apr 26, 2024
I'm copying the changes because that PR is far behind `main`.
We will probably wait for the base image change to happen before merging
this update work though
giovanni-guidini added a commit that referenced this pull request Apr 29, 2024
I'm copying the changes because that PR is far behind `main`.
We will probably wait for the base image change to happen before merging
this update work though
github-merge-queue bot pushed a commit that referenced this pull request Apr 29, 2024
* copy changes from #285

I'm copying the changes because that PR is far behind `main`.
We will probably wait for the base image change to happen before merging
this update work though

* upgrade packages until project builds and tests run

* fix tests

* disable mutation testing

* fix: Fix pytest-cov performance

Solution from nedbat/coveragepy#1665 (comment)
Thanks @trent-codecov for the suggestion.
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.

chore: move off of alpine base images for our docker containers
3 participants