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: Removing CRACO #3393

Merged
merged 17 commits into from
Oct 16, 2024
Merged

Conversation

nicholas-codecov
Copy link
Contributor

Description

This PR removes the last bits of CRACO that we have in the codebase, and moves everything fully over to Vite.

Closes codecov/engineering-team#2125

Notable Changes

  • Update README
  • Add head sha to asset and chunk file names
  • Move to Vite icons fully
  • CI updates
  • Remove CRACO index.html
  • Move some files over from .cjs to .mjs
  • Remove deps

@nicholas-codecov
Copy link
Contributor Author

Forgot we need worker to be updated with latest shared for some fixes with BA.

@codecov-releaser
Copy link
Contributor

codecov-releaser commented Oct 15, 2024

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
c8e9622 Tue, 15 Oct 2024 10:48:29 GMT Expired Expired
cf2714a Tue, 15 Oct 2024 18:04:04 GMT Expired Expired
cf2714a Tue, 15 Oct 2024 18:05:28 GMT Expired Expired
15d4800 Wed, 16 Oct 2024 10:44:31 GMT Expired Expired
9b308b4 Wed, 16 Oct 2024 17:32:53 GMT Cloud Enterprise

@codecov-qa
Copy link

codecov-qa bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.17%. Comparing base (1b2bf9f) to head (9b308b4).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3393   +/-   ##
=======================================
  Coverage   99.17%   99.17%           
=======================================
  Files         809      809           
  Lines       14209    14209           
  Branches     3916     3921    +5     
=======================================
  Hits        14092    14092           
  Misses        108      108           
  Partials        9        9           
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.93% <ø> (ø)
Services 99.45% <ø> (ø)
Shared 99.80% <ø> (ø)
UI 99.06% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1b2bf9f...9b308b4. Read the comment docs.

Copy link

codecov-public-qa bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.17%. Comparing base (1b2bf9f) to head (9b308b4).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3393   +/-   ##
=======================================
  Coverage   99.17%   99.17%           
=======================================
  Files         809      809           
  Lines       14209    14209           
  Branches     3921     3916    -5     
=======================================
  Hits        14092    14092           
  Misses        108      108           
  Partials        9        9           
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.93% <ø> (ø)
Services 99.45% <ø> (ø)
Shared 99.80% <ø> (ø)
UI 99.06% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1b2bf9f...9b308b4. Read the comment docs.

Copy link

codecov bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.17%. Comparing base (1b2bf9f) to head (9b308b4).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3393   +/-   ##
=======================================
  Coverage   99.17%   99.17%           
=======================================
  Files         809      809           
  Lines       14209    14209           
  Branches     3916     3916           
=======================================
  Hits        14092    14092           
  Misses        108      108           
  Partials        9        9           
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.93% <ø> (ø)
Services 99.45% <ø> (ø)
Shared 99.80% <ø> (ø)
UI 99.06% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1b2bf9f...9b308b4. Read the comment docs.

@codecov-notifications
Copy link

codecov-notifications bot commented Oct 15, 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    #3393   +/-   ##
=======================================
  Coverage   99.17%   99.17%           
=======================================
  Files         809      809           
  Lines       14209    14209           
  Branches     3921     3921           
=======================================
  Hits        14092    14092           
  Misses        108      108           
  Partials        9        9           
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.93% <ø> (ø)
Services 99.45% <ø> (ø)
Shared 99.80% <ø> (ø)
UI 99.06% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1b2bf9f...9b308b4. Read the comment docs.

@codecov-staging
Copy link

codecov-staging bot commented Oct 16, 2024

Bundle Report

Changes will increase total bundle size by 5.26MB (85.75%) ⬆️⚠️, exceeding the configured threshold of 5%.

Bundle name Size Change
gazebo-staging-system-esm 5.26MB 5.26MB (100%) ⬆️⚠️

Copy link

codecov bot commented Oct 16, 2024

Bundle Report

Changes will increase total bundle size by 10.49MB (171.0%) ⬆️⚠️, exceeding the configured threshold of 5%.

Bundle name Size Change
gazebo-production-system 5.23MB 5.23MB (100%) ⬆️⚠️
gazebo-production-system-esm 5.26MB 5.26MB (100%) ⬆️⚠️

Copy link
Contributor

@suejung-sentry suejung-sentry left a comment

Choose a reason for hiding this comment

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

Nothing blocking that I see - a couple nits in the README. Approved it!

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
"test:vite": "yarn generate-icons:vite && vitest run --changed --config ./vitest.config.mjs",
"test:watch:vite": "yarn generate-icons:vite && vitest watch --changed --config ./vitest.config.mjs",
"test:ci:vite": "yarn generate-icons:vite && vitest run --config ./vitest.config.mjs --coverage",
"dev:vite": "yarn start",
Copy link
Contributor

Choose a reason for hiding this comment

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

Per our chat, the commands with suffix :vite ones with get removed in a separate phase after Infra does stuff

@@ -36,18 +32,6 @@
"eslint --fix --no-ignore --max-warnings=0 -c .eslintrc.cjs"
]
},
"browserslist": {
Copy link
Contributor

Choose a reason for hiding this comment

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

nice. thanks.
for any readers of this PR, this is removed for this

@@ -1,72 +0,0 @@
<!DOCTYPE html>
Copy link
Contributor

Choose a reason for hiding this comment

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

What purpose was this file serving before out of curiosity?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was the index.html that CRACO (Webapck) was using to bundle with. With Vite this has moved to the src directory as required by Vite.

@@ -23102,7 +22768,7 @@ __metadata:
languageName: node
linkType: hard

"webpack@npm:^5.64.4, webpack@npm:^5.94.0":
"webpack@npm:^5.64.4":
Copy link
Contributor

Choose a reason for hiding this comment

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

Per our discussion this (webpack) may still be here for storybook

@nicholas-codecov nicholas-codecov added this pull request to the merge queue Oct 16, 2024
Merged via the queue into main with commit 8a692ce Oct 16, 2024
62 checks passed
@nicholas-codecov nicholas-codecov deleted the gh-eng-2125-remove-craco-for-good branch October 16, 2024 18:01
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.

[UI] Migrate from CRACO over to Vite
3 participants