Skip to content

Commit

Permalink
Merge branch 'main' into oct_15_comment
Browse files Browse the repository at this point in the history
  • Loading branch information
JerrySentry authored Oct 17, 2024
2 parents 1d85bc8 + 15f9614 commit 909233d
Show file tree
Hide file tree
Showing 8 changed files with 1,245 additions and 282 deletions.
1 change: 1 addition & 0 deletions docker/Dockerfile.requirements
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ RUN apt-get install -y \
libpq-dev \
make \
curl \
libexpat1 \
&& pip install --upgrade pip

WORKDIR /pip-packages/
Expand Down
1,046 changes: 783 additions & 263 deletions graphql_api/tests/test_bundle_analysis_measurements.py

Large diffs are not rendered by default.

274 changes: 274 additions & 0 deletions graphql_api/tests/test_bundle_analysis_measurements_legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,62 @@ def test_bundle_report_measurements(self, get_storage_service):
},
},
},
{
"assetType": "UNKNOWN_SIZE",
"change": {
"loadTime": {
"highSpeed": 0,
"threeG": 0,
},
"size": {
"gzip": 0,
"uncompress": 0,
},
},
"measurements": [
{
"avg": 0.0,
"max": 0.0,
"min": 0.0,
"timestamp": "2024-06-06T00:00:00+00:00",
},
{
"avg": None,
"max": None,
"min": None,
"timestamp": "2024-06-07T00:00:00+00:00",
},
{
"avg": None,
"max": None,
"min": None,
"timestamp": "2024-06-08T00:00:00+00:00",
},
{
"avg": None,
"max": None,
"min": None,
"timestamp": "2024-06-09T00:00:00+00:00",
},
{
"avg": 0.0,
"max": 0.0,
"min": 0.0,
"timestamp": "2024-06-10T00:00:00+00:00",
},
],
"name": None,
"size": {
"loadTime": {
"highSpeed": 0,
"threeG": 0,
},
"size": {
"gzip": 0,
"uncompress": 0,
},
},
},
],
"name": "super",
},
Expand Down Expand Up @@ -1294,6 +1350,56 @@ def test_bundle_report_measurements_carryovers(self, get_storage_service):
},
},
},
{
"assetType": "UNKNOWN_SIZE",
"change": {
"loadTime": {
"highSpeed": 0,
"threeG": 0,
},
"size": {
"gzip": 0,
"uncompress": 0,
},
},
"measurements": [
{
"avg": 0.0,
"max": 0.0,
"min": 0.0,
"timestamp": "2024-06-07T00:00:00+00:00",
},
{
"avg": None,
"max": None,
"min": None,
"timestamp": "2024-06-08T00:00:00+00:00",
},
{
"avg": None,
"max": None,
"min": None,
"timestamp": "2024-06-09T00:00:00+00:00",
},
{
"avg": 0.0,
"max": 0.0,
"min": 0.0,
"timestamp": "2024-06-10T00:00:00+00:00",
},
],
"name": None,
"size": {
"loadTime": {
"highSpeed": 0,
"threeG": 0,
},
"size": {
"gzip": 0,
"uncompress": 0,
},
},
},
],
"name": "super",
},
Expand Down Expand Up @@ -1909,6 +2015,68 @@ def test_bundle_report_no_carryovers(self, get_storage_service):
},
},
},
{
"assetType": "UNKNOWN_SIZE",
"change": {
"loadTime": {
"highSpeed": 0,
"threeG": 0,
},
"size": {
"gzip": 0,
"uncompress": 0,
},
},
"measurements": [
{
"avg": None,
"max": None,
"min": None,
"timestamp": "2024-06-05T00:00:00+00:00",
},
{
"avg": 0.0,
"max": 0.0,
"min": 0.0,
"timestamp": "2024-06-06T00:00:00+00:00",
},
{
"avg": None,
"max": None,
"min": None,
"timestamp": "2024-06-07T00:00:00+00:00",
},
{
"avg": None,
"max": None,
"min": None,
"timestamp": "2024-06-08T00:00:00+00:00",
},
{
"avg": None,
"max": None,
"min": None,
"timestamp": "2024-06-09T00:00:00+00:00",
},
{
"avg": 0.0,
"max": 0.0,
"min": 0.0,
"timestamp": "2024-06-10T00:00:00+00:00",
},
],
"name": None,
"size": {
"loadTime": {
"highSpeed": 0,
"threeG": 0,
},
"size": {
"gzip": 0,
"uncompress": 0,
},
},
},
],
"name": "super",
},
Expand Down Expand Up @@ -2204,6 +2372,56 @@ def test_bundle_report_branch(self, get_storage_service):
"change": None,
"measurements": [],
},
{
"assetType": "UNKNOWN_SIZE",
"change": {
"loadTime": {
"highSpeed": 0,
"threeG": -3,
},
"size": {
"gzip": 0,
"uncompress": -333,
},
},
"measurements": [
{
"avg": 456.0,
"max": 456.0,
"min": 456.0,
"timestamp": "2024-06-07T00:00:00+00:00",
},
{
"avg": None,
"max": None,
"min": None,
"timestamp": "2024-06-08T00:00:00+00:00",
},
{
"avg": None,
"max": None,
"min": None,
"timestamp": "2024-06-09T00:00:00+00:00",
},
{
"avg": 123.0,
"max": 123.0,
"min": 123.0,
"timestamp": "2024-06-10T00:00:00+00:00",
},
],
"name": None,
"size": {
"loadTime": {
"highSpeed": 0,
"threeG": 1,
},
"size": {
"gzip": 0,
"uncompress": 123,
},
},
},
],
},
}
Expand Down Expand Up @@ -2419,6 +2637,62 @@ def test_bundle_report_no_after(self, get_storage_service):
"change": None,
"measurements": [],
},
{
"assetType": "UNKNOWN_SIZE",
"change": {
"loadTime": {
"highSpeed": 0,
"threeG": -3,
},
"size": {
"gzip": 0,
"uncompress": -333,
},
},
"measurements": [
{
"avg": 456.0,
"max": 456.0,
"min": 456.0,
"timestamp": "2024-06-06T00:00:00+00:00",
},
{
"avg": None,
"max": None,
"min": None,
"timestamp": "2024-06-07T00:00:00+00:00",
},
{
"avg": None,
"max": None,
"min": None,
"timestamp": "2024-06-08T00:00:00+00:00",
},
{
"avg": None,
"max": None,
"min": None,
"timestamp": "2024-06-09T00:00:00+00:00",
},
{
"avg": 123.0,
"max": 123.0,
"min": 123.0,
"timestamp": "2024-06-10T00:00:00+00:00",
},
],
"name": None,
"size": {
"loadTime": {
"highSpeed": 0,
"threeG": 1,
},
"size": {
"gzip": 0,
"uncompress": 123,
},
},
},
],
},
}
1 change: 1 addition & 0 deletions graphql_api/types/bundle_analysis/base.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ enum BundleAnalysisMeasurementsAssetType {
FONT_SIZE
IMAGE_SIZE
ASSET_SIZE
UNKNOWN_SIZE
}

enum BundleReportGroups {
Expand Down
Loading

0 comments on commit 909233d

Please sign in to comment.