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

feat(test): add bundle size limit #799

Merged
merged 45 commits into from May 17, 2024
Merged

feat(test): add bundle size limit #799

merged 45 commits into from May 17, 2024

Conversation

chohner
Copy link
Member

@chohner chohner commented May 7, 2024

Issue: We sometimes bundle large dependencies or data chunks into our bundle. this adds a size limit for the bundle that is checked after unit tests:

image

@chohner chohner changed the title feat(test): add size-limit feat(test): add bundle size limit May 7, 2024
package.json Outdated Show resolved Hide resolved
@aaschlote
Copy link
Contributor

Nice idea, but I don't think we should add it during the unit tests process, but in a separate test process, because this is not an unit test.

We can create a new job during the Github action for it and have some measures:

  • Under 400kb green
  • Until 600kb warning, do not stop deployment process
  • Above 600kb error, stop deployment process

chohner and others added 26 commits May 14, 2024 14:00
Bumps [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) from 0.19.0 to 0.20.0.
- [Release notes](https://github.com/aquasecurity/trivy-action/releases)
- [Commits](aquasecurity/trivy-action@d710430...b2933f5)

---
updated-dependencies:
- dependency-name: aquasecurity/trivy-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* refactor: add new placeholders variables

* refactor: get route description from strapi translations
this is a collapsible html tag
* refactor: remove SubflowState

* test: add unit tests for navItemsFromDoneStates() + stepStates()
@pgurusinga
Copy link
Member

pgurusinga commented May 16, 2024

what happens to the commit messages Chris? @chohner :O

@chohner
Copy link
Member Author

chohner commented May 16, 2024

what happens to the commit messages Chris? @chohner :O

Apparently I rebased instead of merge 😢 I'll fix this PR soon, we have way too many

Copy link

sonarcloud bot commented May 17, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@chohner chohner merged commit 9af357d into main May 17, 2024
17 checks passed
@chohner chohner deleted the add-size-limit branch May 17, 2024 07:43
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.

None yet

4 participants