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

EDSC-4055: Add performance based testing to our code base to assist prevent regression #1748

Closed
wants to merge 48 commits into from

Conversation

Bccorb
Copy link
Contributor

@Bccorb Bccorb commented Jun 3, 2024

Overview

What is the feature?

Adding some basic metrics for tracking in Playwright tests. LCP tracking and Time to Last Byte of the Search pages load time.

What is the Solution?

Added two playwright tests to capture the LCP and the response end time of the search page loading. This correlates to the time it takes to receive all javascript code.

What areas of the application does this impact?

No impact to the actual application.

Testing

Reproduction steps

Running the playwright tests will show allow for inspection of the metrics.

Attachments

Search page metrics
Screenshot 2024-06-03 at 10 23 39 AM

LCP passing test.
Screenshot 2024-06-03 at 10 24 19 AM

Checklist

  • I have added automated tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

Copy link

codecov bot commented Jun 3, 2024

Codecov Report

Attention: Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.

Project coverage is 82.19%. Comparing base (8d1eecf) to head (43cb842).
Report is 2 commits behind head on main.

Files Patch % Lines
serverless/src/util/database/getDbCredentials.js 50.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1748       +/-   ##
===========================================
- Coverage   92.19%   82.19%   -10.01%     
===========================================
  Files         747      696       -51     
  Lines       19901    17434     -2467     
  Branches     4763     4575      -188     
===========================================
- Hits        18348    14330     -4018     
- Misses       1408     2890     +1482     
- Partials      145      214       +69     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Bccorb Bccorb marked this pull request as draft June 4, 2024 14:19
@Bccorb Bccorb marked this pull request as ready for review June 12, 2024 13:31
@rushgeo rushgeo self-requested a review June 12, 2024 13:54
Copy link
Contributor

@eudoroolivares2016 eudoroolivares2016 left a comment

Choose a reason for hiding this comment

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

Minor comments

daniel-zamora and others added 22 commits July 19, 2024 11:01
* EDSC-3937: Implement Vite

EDSC-3937 removes workflow dispatch

EDSC-3937: Updates portal configs to pre compile list of availablePortals

EDSC-3937: Fixes pg

EDSC-3937: Fixes serverless env

EDSC-3937: Fix deployment

EDSC-3937: Fixes more tests

EDSC-3937: Fixes some tests

EDSC-3937: Fixes datepicker test

EDSC-3937: Fixes build output

EDSC-3937: Updates Vite configs

EDSC-3937 post rebase fixes

EDSC-3937 ci test update

workflow_dispatch

EDSC-3937 playwright test configuration fixes

EDSC-3937 jest config fixes

EDSC-3937 leaflet fixes, package.json updates

EDSC-3937 rename static src files to jsx

EDSC-3937 package.json updates, import scss fixes

EDSC-3937 restore App.js and index.js

* EDSC-3937: Fixes leaflet issues, rename files

* EDSC-3937: Fixes map tests

* EDSC-3937 misc fixes

* EDSC-3937 removes empty lines in SCSS files

* EDSC-3937 removes uneeded code and files, addresses other pr comments

* EDSC-3937 removes more files

* EDSC-3937: Removes need for sass imports

* EDSC-3937: Add Playwright coverage report to artifact for debugging

* EDSC-3937: Fixes playwright code coverage

* EDSC-3937 reverts collection_details test

* EDSC-3937: Fixes playwright import to include coverage

* EDSC-3937: Remove unused libraries

* EDSC-3937: Fixes test

* EDSC-3937: Fixes build

* EDSC-3937: Fixes sharp in serverless

---------

Co-authored-by: Matthew Crouch <[email protected]>
@Bccorb Bccorb closed this Jul 23, 2024
@Bccorb Bccorb deleted the EDSC-4055 branch July 23, 2024 13:34
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.

5 participants