Skip to content

Commit

Permalink
Update shared (#709)
Browse files Browse the repository at this point in the history
Co-authored-by: Gguidini <[email protected]>
  • Loading branch information
Swatinem and giovanni-guidini authored Sep 18, 2024
1 parent 86fb359 commit 80952af
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 13 deletions.
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
https://github.com/codecov/opentelem-python/archive/refs/tags/v0.0.4a1.tar.gz#egg=codecovopentelem
https://github.com/codecov/shared/archive/d26f24176ae8761ee6fce9cd557198047759bcff.tar.gz#egg=shared
https://github.com/codecov/shared/archive/545fd0466f9bcbff3f839096cc0c498716bec8d8.tar.gz#egg=shared
https://github.com/codecov/test-results-parser/archive/1507de2241601d678e514c08b38426e48bb6d47d.tar.gz#egg=test-results-parser
https://github.com/codecov/timestring/archive/d37ceacc5954dff3b5bd2f887936a98a668dda42.tar.gz#egg=timestring
asgiref>=3.7.2
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ sentry-sdk[celery]==2.13.0
# via
# -r requirements.in
# shared
shared @ https://github.com/codecov/shared/archive/d26f24176ae8761ee6fce9cd557198047759bcff.tar.gz
shared @ https://github.com/codecov/shared/archive/545fd0466f9bcbff3f839096cc0c498716bec8d8.tar.gz
# via -r requirements.in
six==1.16.0
# via
Expand Down
55 changes: 44 additions & 11 deletions services/bundle_analysis/tests/test_bundle_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,22 @@ def hook_mock_pull(mocker, mock_pull):
pytest.param(
[
BundleChange(
"added-bundle", BundleChange.ChangeType.ADDED, size_delta=12345
"added-bundle",
BundleChange.ChangeType.ADDED,
size_delta=12345,
percentage_delta=2.56,
),
BundleChange(
"changed-bundle", BundleChange.ChangeType.CHANGED, size_delta=3456
"changed-bundle",
BundleChange.ChangeType.CHANGED,
size_delta=3456,
percentage_delta=0.35,
),
BundleChange(
"removed-bundle", BundleChange.ChangeType.REMOVED, size_delta=-1234
"removed-bundle",
BundleChange.ChangeType.REMOVED,
size_delta=-1234,
percentage_delta=-1.23,
),
],
5.56,
Expand All @@ -93,13 +102,22 @@ def hook_mock_pull(mocker, mock_pull):
pytest.param(
[
BundleChange(
"added-bundle", BundleChange.ChangeType.ADDED, size_delta=12345
"added-bundle",
BundleChange.ChangeType.ADDED,
size_delta=12345,
percentage_delta=2.56,
),
BundleChange(
"changed-bundle", BundleChange.ChangeType.CHANGED, size_delta=3456
"changed-bundle",
BundleChange.ChangeType.CHANGED,
size_delta=3456,
percentage_delta=2.56,
),
BundleChange(
"removed-bundle", BundleChange.ChangeType.REMOVED, size_delta=-1234
"removed-bundle",
BundleChange.ChangeType.REMOVED,
size_delta=-1234,
percentage_delta=2.56,
),
],
5.56,
Expand All @@ -124,13 +142,22 @@ def hook_mock_pull(mocker, mock_pull):
pytest.param(
[
BundleChange(
"added-bundle", BundleChange.ChangeType.ADDED, size_delta=12345
"added-bundle",
BundleChange.ChangeType.ADDED,
size_delta=12345,
percentage_delta=2.56,
),
BundleChange(
"cached-bundle", BundleChange.ChangeType.CHANGED, size_delta=3456
"cached-bundle",
BundleChange.ChangeType.CHANGED,
size_delta=3456,
percentage_delta=2.56,
),
BundleChange(
"removed-bundle", BundleChange.ChangeType.REMOVED, size_delta=-1234
"removed-bundle",
BundleChange.ChangeType.REMOVED,
size_delta=-1234,
percentage_delta=2.56,
),
],
3.46,
Expand Down Expand Up @@ -162,7 +189,10 @@ def hook_mock_pull(mocker, mock_pull):
pytest.param(
[
BundleChange(
"test-bundle", BundleChange.ChangeType.CHANGED, size_delta=-3456
"test-bundle",
BundleChange.ChangeType.CHANGED,
size_delta=-3456,
percentage_delta=-2.56,
),
],
-0.52,
Expand All @@ -189,7 +219,10 @@ def hook_mock_pull(mocker, mock_pull):
pytest.param(
[
BundleChange(
"test-bundle", BundleChange.ChangeType.CHANGED, size_delta=0
"test-bundle",
BundleChange.ChangeType.CHANGED,
size_delta=0,
percentage_delta=0.0,
),
],
0,
Expand Down

0 comments on commit 80952af

Please sign in to comment.