Skip to content

Commit

Permalink
silent builds
Browse files Browse the repository at this point in the history
  • Loading branch information
liady committed Jun 2, 2024
1 parent c3c1c9a commit cd01c4e
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 33 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cache-pnpm-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ jobs:
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/6120ac5cd201f6cb593d1b80e861be0342495be9.tar.gz
- name: Capture pnpm store path
id: capture-pnpm-store-path
run: nix-shell --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run 'echo "pnpm-store-path=$(pnpm store path)" >> "$GITHUB_OUTPUT"'
run: nix-shell --quiet --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run 'echo "pnpm-store-path=$(pnpm store path)" >> "$GITHUB_OUTPUT"'
- name: Cache pnpm store
uses: actions/cache@v2
with:
path: ${{ steps.capture-pnpm-store-path.outputs.pnpm-store-path }}
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-captured-location
- name: Run the install steps
run: nix-shell --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run install-website-editor-ci
run: nix-shell --quiet --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run install-website-editor-ci
6 changes: 3 additions & 3 deletions .github/workflows/check-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
AWS_REGION: ${{ secrets.STAGING_BUNDLE_REGION }}
HEADLESS: 'true'
run: |
nix-shell --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run "cd puppeteer-tests; pnpm install --unsafe-perm; pnpm run screenshot-test"
nix-shell --quiet --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run "cd puppeteer-tests; pnpm install --unsafe-perm; pnpm run screenshot-test"
- name: Build Discord Message
env:
TEMPLATE: >-
Expand Down Expand Up @@ -93,13 +93,13 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-captured-location
- name: Build Comments Tests
run: |
nix-shell --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run "build-puppeteer-tests"
nix-shell --quiet --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run "build-puppeteer-tests"
- name: Run Comments Test
id: run-comments-test
env:
BASE_URL: 'https://utopia.pizza'
run: |
nix-shell --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run "xvfb-run --server-args='-screen 0 1920x1080x24 -ac -nolisten tcp -dpi 96 +extension RANDR' run-collaboration-test"
nix-shell --quiet --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run "xvfb-run --server-args='-screen 0 1920x1080x24 -ac -nolisten tcp -dpi 96 +extension RANDR' run-collaboration-test"
post-failure-to-discord:
name: Post Failure Message To Discord
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/editor-sharded-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ jobs:
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/6120ac5cd201f6cb593d1b80e861be0342495be9.tar.gz
- name: Run the Karma tests
if: steps.cache-editor-tests.outputs.cache-hit != 'true'
run: nix-shell --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run check-editor-karma-ci-shard-${{ inputs.shard_number }}
run: nix-shell --quiet --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run check-editor-karma-ci-shard-${{ inputs.shard_number }}
8 changes: 4 additions & 4 deletions .github/workflows/master-pushes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/6120ac5cd201f6cb593d1b80e861be0342495be9.tar.gz
- name: Run tsc, eslint, depdendency-cruiser and the website tests
if: steps.cache-editor-tests.outputs.cache-hit != 'true'
run: nix-shell --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run check-editor-code-ci
run: nix-shell --quiet --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run check-editor-code-ci

test-editor-jest:
name: Test Editor - Jest tests
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/6120ac5cd201f6cb593d1b80e861be0342495be9.tar.gz
- name: Run the Jest tests
if: steps.cache-editor-tests.outputs.cache-hit != 'true'
run: nix-shell --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run check-editor-jest-ci
run: nix-shell --quiet --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run check-editor-jest-ci

call-test-editor-karma-shard-1:
name: Test Editor Shard 1
Expand Down Expand Up @@ -133,10 +133,10 @@ jobs:
with:
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/6120ac5cd201f6cb593d1b80e861be0342495be9.tar.gz
- name: Start PostgreSQL
run: nix-shell --arg includeEditorBuildSupport false --arg includeRunLocallySupport false --arg includeDatabaseSupport true --run start-postgres-background
run: nix-shell --quiet --arg includeEditorBuildSupport false --arg includeRunLocallySupport false --arg includeDatabaseSupport true --run start-postgres-background
- name: Run the tests
if: steps.cache-server-tests.outputs.cache-hit != 'true'
run: nix-shell --arg includeEditorBuildSupport false --arg includeRunLocallySupport false --run test-server-ci
run: nix-shell --quiet --arg includeEditorBuildSupport false --arg includeRunLocallySupport false --run test-server-ci

trigger-deploy:
name: Trigger Deploy
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ jobs:
with:
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/6120ac5cd201f6cb593d1b80e861be0342495be9.tar.gz
- name: Capture pnpm store location
run: nix-shell --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run 'echo "pnpm-store-path=$(pnpm store path)" >> "$GITHUB_ENV"'
run: nix-shell --quiet --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run 'echo "pnpm-store-path=$(pnpm store path)" >> "$GITHUB_ENV"'
- name: Run tsc, eslint, depdendency-cruiser and the website tests
if: steps.cache-editor-tests.outputs.cache-hit != 'true'
run: nix-shell --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run check-editor-code-ci
run: nix-shell --quiet --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run check-editor-code-ci

test-editor-jest:
name: Test Editor PR – Jest tests
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/6120ac5cd201f6cb593d1b80e861be0342495be9.tar.gz
- name: Run the Jest tests
if: steps.cache-editor-tests.outputs.cache-hit != 'true'
run: nix-shell --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run check-editor-jest-ci
run: nix-shell --quiet --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run check-editor-jest-ci

call-test-editor-karma-shard-1:
name: Test Editor Shard 1
Expand Down Expand Up @@ -134,10 +134,10 @@ jobs:
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/6120ac5cd201f6cb593d1b80e861be0342495be9.tar.gz
- name: Start PostgreSQL
if: steps.cache-server-tests.outputs.cache-hit != 'true'
run: nix-shell --arg includeEditorBuildSupport false --arg includeRunLocallySupport false --arg includeDatabaseSupport true --run start-postgres-background
run: nix-shell --quiet --arg includeEditorBuildSupport false --arg includeRunLocallySupport false --arg includeDatabaseSupport true --run start-postgres-background
- name: Run the tests
if: steps.cache-server-tests.outputs.cache-hit != 'true'
run: nix-shell --arg includeEditorBuildSupport false --arg includeRunLocallySupport false --run test-server-ci
run: nix-shell --quiet --arg includeEditorBuildSupport false --arg includeRunLocallySupport false --run test-server-ci

deploy-branch:
name: Deploy Branch Editor
Expand Down Expand Up @@ -191,7 +191,7 @@ jobs:
env:
USE_BFF: 'true'
run: |
nix-shell --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run build-editor-branches-ci
nix-shell --quiet --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run build-editor-branches-ci
- name: Send webpack stats to RelativeCI
uses: relative-ci/[email protected]
with:
Expand Down Expand Up @@ -284,7 +284,7 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-captured-location
- name: Build Performance Tests
run: |
nix-shell --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run "build-puppeteer-tests"
nix-shell --quiet --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run "build-puppeteer-tests"
- name: Run Performance Test
id: run-performance-test
env:
Expand All @@ -296,7 +296,7 @@ jobs:
PERFORMANCE_GRAPHS_PLOTLY_USERNAME: ${{ secrets.PERFORMANCE_GRAPHS_PLOTLY_USERNAME}}
PERFORMANCE_GRAPHS_PLOTLY_API_KEY: ${{secrets.PERFORMANCE_GRAPHS_PLOTLY_API_KEY}}
run: |
nix-shell --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run "xvfb-run --server-args='-screen 0 1920x1080x24 -ac -nolisten tcp -dpi 96 +extension RANDR' run-puppeteer-test"
nix-shell --quiet --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run "xvfb-run --server-args='-screen 0 1920x1080x24 -ac -nolisten tcp -dpi 96 +extension RANDR' run-puppeteer-test"
- name: Find Comment
uses: peter-evans/find-comment@v1
id: fc
Expand Down Expand Up @@ -399,7 +399,7 @@ jobs:
BRANCH_NAME: ${{ steps.extract_branch.outputs.branch }}
HEADLESS: 'true'
run: |
nix-shell --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run "cd puppeteer-tests; pnpm install --unsafe-perm; pnpm run system-test"
nix-shell --quiet --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run "cd puppeteer-tests; pnpm install --unsafe-perm; pnpm run system-test"
collaboration-test:
name: Run Collaboration Tests
Expand Down Expand Up @@ -432,14 +432,14 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-captured-location
- name: Build Comments Tests
run: |
nix-shell --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run "build-puppeteer-tests"
nix-shell --quiet --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run "build-puppeteer-tests"
- name: Run Comments Test
id: run-comments-test
env:
BRANCH_NAME: ${{ steps.extract_branch.outputs.branch }}
BASE_URL: 'https://utopia.fish'
run: |
nix-shell --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run "xvfb-run --server-args='-screen 0 1920x1080x24 -ac -nolisten tcp -dpi 96 +extension RANDR' run-collaboration-test"
nix-shell --quiet --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run "xvfb-run --server-args='-screen 0 1920x1080x24 -ac -nolisten tcp -dpi 96 +extension RANDR' run-collaboration-test"
bff-test:
name: Run BFF Tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/screenshot-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
BASE_EDITOR_URL: 'https://utopia.app'
HEADLESS: 'true'
run: |
nix-shell --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run "cd puppeteer-tests; pnpm install --unsafe-perm; pnpm run screenshot-test"
nix-shell --quiet --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run "cd puppeteer-tests; pnpm install --unsafe-perm; pnpm run screenshot-test"
- name: Build Discord Message
env:
TEMPLATE: >-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag-release-automated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
EDITOR_URL: https://utopia.pizza/p/?fakeUser=alice
HEADLESS: 'true'
run: |
nix-shell --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run "cd puppeteer-tests; pnpm install --unsafe-perm; pnpm run system-test"
nix-shell --quiet --arg includeServerBuildSupport false --arg includeRunLocallySupport false --run "cd puppeteer-tests; pnpm install --unsafe-perm; pnpm run system-test"
call-release:
name: Trigger Tag and Release Workflow
Expand Down
20 changes: 10 additions & 10 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,20 @@ let
#!/usr/bin/env bash
set -e
cd $(${pkgs.git}/bin/git rev-parse --show-toplevel)/utopia-api
${pnpm}/bin/pnpm install
${pnpm}/bin/pnpm install --silent
${pnpm}/bin/pnpm run build
'')
(pkgs.writeScriptBin "install-eslint-config-utopia" ''
#!/usr/bin/env bash
set -e
cd $(${pkgs.git}/bin/git rev-parse --show-toplevel)/eslint-config-utopia
${pnpm}/bin/pnpm install
${pnpm}/bin/pnpm install --silent
'')
(pkgs.writeScriptBin "build-vscode-common" ''
#!/usr/bin/env bash
set -e
cd $(${pkgs.git}/bin/git rev-parse --show-toplevel)
${pnpm}/bin/pnpm install
${pnpm}/bin/pnpm install --silent
update-vscode-build-extension
'')
(pkgs.writeScriptBin "install-editor" ''
Expand All @@ -69,7 +69,7 @@ let
install-eslint-config-utopia
build-utopia-vscode-common
cd $(${pkgs.git}/bin/git rev-parse --show-toplevel)/editor
${pnpm}/bin/pnpm install
${pnpm}/bin/pnpm install --silent
'')
(pkgs.writeScriptBin "install-website" ''
#!/usr/bin/env bash
Expand Down Expand Up @@ -222,7 +222,7 @@ let
set -e
install-editor-ci
cd $(${pkgs.git}/bin/git rev-parse --show-toplevel)/website-next
${pnpm}/bin/pnpm install
${pnpm}/bin/pnpm install --silent
cd $(${pkgs.git}/bin/git rev-parse --show-toplevel)/editor
${pnpm}/bin/pnpm run staging-print-json
'')
Expand All @@ -231,7 +231,7 @@ let
set -e
install-editor-ci
cd $(${pkgs.git}/bin/git rev-parse --show-toplevel)/website-next
${pnpm}/bin/pnpm install
${pnpm}/bin/pnpm install --silent
cd $(${pkgs.git}/bin/git rev-parse --show-toplevel)/editor
${pnpm}/bin/pnpm run branches-print-json
'')
Expand All @@ -246,7 +246,7 @@ let
#!/usr/bin/env bash
set -e
cd $(${pkgs.git}/bin/git rev-parse --show-toplevel)/utopia-vscode-common
${pnpm}/bin/pnpm install
${pnpm}/bin/pnpm install --silent
${pnpm}/bin/pnpm run production
'')
(pkgs.writeScriptBin "build-utopia-vscode-extension" ''
Expand All @@ -262,7 +262,7 @@ let
set -e
build-utopia-vscode-common-production
cd $(${pkgs.git}/bin/git rev-parse --show-toplevel)/utopia-vscode-extension
${pnpm}/bin/pnpm install
${pnpm}/bin/pnpm install --silent
${pnpm}/bin/pnpm run production
'')
(pkgs.writeScriptBin "update-vscode-build-extension" ''
Expand Down Expand Up @@ -727,15 +727,15 @@ let
set -e
prepare-build-editor
cd $(${pkgs.git}/bin/git rev-parse --show-toplevel)/editor
${pnpm}/bin/pnpm install --unsafe-perm
${pnpm}/bin/pnpm install --unsafe-perm --silent
${pnpm}/bin/pnpm run production
'')
(pkgs.writeScriptBin "build-editor-staging" ''
#!/usr/bin/env bash
set -e
prepare-build-editor
cd $(${pkgs.git}/bin/git rev-parse --show-toplevel)/editor
${pnpm}/bin/pnpm install --unsafe-perm
${pnpm}/bin/pnpm install --unsafe-perm --silent
${pnpm}/bin/pnpm run staging
'')
# CRA for whatever reason will automatically fail on CI for any warnings, so we need to prefix with `CI=false`. Urgh. https://github.com/facebook/create-react-app/issues/3657
Expand Down

0 comments on commit cd01c4e

Please sign in to comment.