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

Update GitHub Actions #899

Merged
merged 67 commits into from
Dec 4, 2023
Merged

Update GitHub Actions #899

merged 67 commits into from
Dec 4, 2023

Conversation

davidkircos
Copy link
Collaborator

@davidkircos davidkircos commented Nov 28, 2023

  • Moves all GH actions to a single easy to maintain file
  • Speed up CI!
  • Verify new tests do everything the previous ones do
  • report coverage
  • backup in case self-hosted is down
  • Verify optimization happens when it should

With our self-hosted runners all online tests run fast:
CleanShot 2023-12-03 at 21 43 34@2x

All our self-hosted runners are tagged ubuntu-latest-8-cores if our self-hosted runners are not available or if more jobs are run than the eight available. GitHub will spin up hosted runners with the same tag ubuntu-latest-8-cores.

With our self-hosted runners all offline. Tests still pass but take longer:
CleanShot 2023-12-03 at 17 17 20@2x

This is the current speed of actions on main
CleanShot 2023-12-04 at 10 07 06@2x

Copy link

vercel bot commented Nov 28, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
quadratic ✅ Ready (Inspect) Visit Preview Dec 4, 2023 7:00pm

@davidkircos davidkircos temporarily deployed to quadratic-api-dev-pr-899 November 28, 2023 23:58 Inactive
Copy link

codecov bot commented Nov 29, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e4dbfea) 88.52% compared to head (10c6400) 88.52%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #899   +/-   ##
=======================================
  Coverage   88.52%   88.52%           
=======================================
  Files          99       99           
  Lines       17765    17765           
=======================================
  Hits        15726    15726           
  Misses       2039     2039           

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

@davidkircos davidkircos temporarily deployed to quadratic-api-dev-pr-899 November 29, 2023 00:56 Inactive
@davidkircos davidkircos temporarily deployed to quadratic-api-dev-pr-899 November 29, 2023 01:00 Inactive
@davidkircos davidkircos temporarily deployed to quadratic-api-dev-pr-899 December 4, 2023 04:42 Inactive
@davidkircos davidkircos changed the title Gh actions speed test Update GitHub Actions Dec 4, 2023
@davidkircos davidkircos temporarily deployed to quadratic-api-dev-pr-899 December 4, 2023 16:50 Inactive
@davidkircos davidkircos marked this pull request as ready for review December 4, 2023 16:52
{
"buildCommand": "cd quadratic-client && npm run build:ci",
"installCommand": "cd quadratic-client && npm install"
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Pretty sure this is unused as it is defined in the vercel ui

@@ -83,6 +83,8 @@ harness = false
# Tell `rustc` to optimize for small code size.
opt-level = "s"

[package.metadata.wasm-pack.profile.release]
wasm-opt = ['-Os', '-g'] # TODO: -g seems to fix the name mangling problem
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@davidkircos davidkircos temporarily deployed to quadratic-api-dev-pr-899 December 4, 2023 18:55 Inactive
@@ -13,7 +13,7 @@
"lint:prettier:write": "prettier --write \"src/**/*.ts\"",
"prisma:migrate": "npx prisma migrate dev",
"prisma:migrate:create": "npx prisma migrate dev --create-only",
"docker:up": "docker-compose up -d && sleep 1",
"docker:up": "docker-compose up -d && sleep 3",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Curious, what's the need for this sleep?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It takes a sec for Postgres to be available. Commands that actually wait for Postgres to be up are really complicated. This works 🤷‍♂️

@@ -11,7 +11,8 @@ frontend:

build:
commands:
- npm run build:wasm
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this already built in GHA?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Amplify is a separate pipeline

Copy link
Collaborator

@ddimaria ddimaria left a comment

Choose a reason for hiding this comment

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

Looks great! I just had a couple of questions, but nothing blocking.

@davidkircos davidkircos merged commit 5853d3d into main Dec 4, 2023
9 checks passed
@davidkircos davidkircos deleted the gh-actions-speed-test branch December 4, 2023 19:42
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.

2 participants