+
Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

Conversation

MichaReiser
Copy link
Contributor

@MichaReiser MichaReiser commented Nov 1, 2022

Summary

Fixes #3541

This PR fixes an issue with our CI pipeline where it didn't set the ROME_VERSION env variable correctly.

It took me a while to figure out the issue but the problem is that "var=value" >> $GITHUB_ENV doesn't work on windows builds where you must use $Env::GITHUB_ENV instead.

I fixed it by:

  • Moving the part where we write the version number to the Check Version job that always runs on linux builds
  • Later only rely on env that works on all runners.

This PR also removes the node_moduels folder from the published VS Code extension. It isn't necessary to publish node_modules because we pre-built the javascript file with esbuild.

Test Plan

Downloaded the artefacts from nightly builds and installed them locally.

  • Installed the VS Code extension and verified that formatting is working
  • Ran rome --version and verified that it prints the version number

@MichaReiser MichaReiser added this to the 10.0.0 milestone Nov 1, 2022
@netlify
Copy link

netlify bot commented Nov 1, 2022

Deploy Preview for rometools canceled.

Name Link
🔨 Latest commit 3c33e20
🔍 Latest deploy log https://app.netlify.com/sites/rometools/deploys/636101a18f1c8f000a21e379

@MichaReiser MichaReiser marked this pull request as ready for review November 1, 2022 09:57
@MichaReiser MichaReiser requested a review from a team November 1, 2022 09:57
@calibre-analytics
Copy link

Comparing ci: Fix version on windows build Snapshot #1 to median since last deploy of rome.tools.

LCP? CLS? TBT?
Overall
Median across all pages and test profiles
2.32s
from 235ms
0.0
no change
136ms
from 18ms
Chrome Desktop
Chrome Desktop • Cable
2.32s
from 235ms
0.0
no change
408ms
from 104ms
iPhone, 4G LTE
iPhone 12 • 4G LTE
987ms
from 147ms
0.0
no change
5ms
no change
Motorola Moto G Power, 3G connection
Motorola Moto G Power • Regular 3G
15.1s
from 567ms
0.0
no change
136ms
from 18ms

1 page tested

 Home

Browser previews

Chrome Desktop iPhone, 4G LTE Motorola Moto G Power, 3G connection
Chrome Desktop iPhone, 4G LTE Motorola Moto G Power, 3G connection

Most significant changes

Value Budget
JS Parse & Compile
iPhone, 4G LTE
460ms
from 7ms
JS Parse & Compile
Motorola Moto G Power, 3G connection
1.6s
from 28ms
Total JavaScript Size in Bytes
Chrome Desktop
4.84 MB
from 86.8 KB
Total JavaScript Size in Bytes
iPhone, 4G LTE
4.84 MB
from 86.8 KB
Total JavaScript Size in Bytes
Motorola Moto G Power, 3G connection
4.84 MB
from 86.8 KB

29 other significant changes: JS Parse & Compile on Chrome Desktop, First Contentful Paint on Motorola Moto G Power, 3G connection, Largest Contentful Paint on Motorola Moto G Power, 3G connection, Speed Index on Motorola Moto G Power, 3G connection, Total Page Size in Bytes on Chrome Desktop, Total Page Size in Bytes on iPhone, 4G LTE, Total Page Size in Bytes on Motorola Moto G Power, 3G connection, First Contentful Paint on Chrome Desktop, Number of Requests on Chrome Desktop, Number of Requests on iPhone, 4G LTE, Number of Requests on Motorola Moto G Power, 3G connection, Time to Interactive on Motorola Moto G Power, 3G connection, Time to Interactive on Chrome Desktop, Largest Contentful Paint on Chrome Desktop, Speed Index on Chrome Desktop, First Contentful Paint on iPhone, 4G LTE, Total Blocking Time on Motorola Moto G Power, 3G connection, Largest Contentful Paint on iPhone, 4G LTE, Speed Index on iPhone, 4G LTE, Time to Interactive on iPhone, 4G LTE, Total Blocking Time on Chrome Desktop, Total Image Size in Bytes on Chrome Desktop, Total Image Size in Bytes on iPhone, 4G LTE, Total Image Size in Bytes on Motorola Moto G Power, 3G connection, Total HTML Size in Bytes on Chrome Desktop, Total HTML Size in Bytes on iPhone, 4G LTE, Total HTML Size in Bytes on Motorola Moto G Power, 3G connection, Lighthouse Performance Score on Motorola Moto G Power, 3G connection, Lighthouse Performance Score on Chrome Desktop

Calibre: Site dashboard | View this PR | Edit settings | View documentation

@MichaReiser MichaReiser requested a review from ematipico November 1, 2022 11:33
@MichaReiser MichaReiser merged commit 86f85e9 into main Nov 1, 2022
@MichaReiser MichaReiser deleted the ci/fix-windows-version branch November 1, 2022 15:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

🐛Pre-release does not print version number

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载