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

rate limits, make it faster #7

Merged
merged 6 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
157 changes: 19 additions & 138 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Nix Flake Checker
uses: DeterminateSystems/flake-checker-action@v9
- uses: cachix/install-nix-action@v24
with:
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.10.0pre20220629_b7eb4ac/install
nix_path: nixpkgs=channel:nixos-24.11
extra_nix_config: |
experimental-features = nix-command flakes
connect-timeout = 60
stalled-download-timeout = 300

- uses: cachix/cachix-action@v13
with:
name: fashionunited
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main

- name: Run unit tests with coverage
run: |
Expand Down Expand Up @@ -75,19 +64,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v24
with:
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.10.0pre20220629_b7eb4ac/install
nix_path: nixpkgs=channel:nixos-24.11
extra_nix_config: |
experimental-features = nix-command flakes
connect-timeout = 60
stalled-download-timeout = 300

- uses: cachix/cachix-action@v13
with:
name: fashionunited
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main

- name: Run cargo check
run: |
Expand Down Expand Up @@ -195,19 +175,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v24
with:
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.10.0pre20220629_b7eb4ac/install
nix_path: nixpkgs=channel:nixos-24.11
extra_nix_config: |
experimental-features = nix-command flakes
connect-timeout = 60
stalled-download-timeout = 300

- uses: cachix/cachix-action@v13
with:
name: fashionunited
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main

- name: Check files license compliance with REUSE
run: |
Expand Down Expand Up @@ -267,19 +238,9 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v24
with:
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.10.0pre20220629_b7eb4ac/install
nix_path: nixpkgs=channel:nixos-24.11
extra_nix_config: |
experimental-features = nix-command flakes
connect-timeout = 60
stalled-download-timeout = 300

- uses: cachix/cachix-action@v13
with:
name: fashionunited
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main

# not running this command in https://github.com/nektos/act
# why? because it doesn't work for some reason
Expand Down Expand Up @@ -307,90 +268,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v24
with:
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.10.0pre20220629_b7eb4ac/install
nix_path: nixpkgs=channel:nixos-24.11
extra_nix_config: |
experimental-features = nix-command flakes
connect-timeout = 60
stalled-download-timeout = 300

- uses: cachix/cachix-action@v13
with:
name: fashionunited
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main

- name: Build the flake
run: nix --extra-experimental-features "nix-command flakes" build -L

# browserstack_test:
# name: Browserstack tests
# strategy:
# matrix:
# os: [ubuntu-latest]
# runs-on: ${{ matrix.os }}
# steps:
# - uses: actions/checkout@v4
# - uses: cachix/install-nix-action@v24
# with:
# install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.10.0pre20220629_b7eb4ac/install
# nix_path: nixpkgs=channel:nixos-24.11
# extra_nix_config: |
# experimental-features = nix-command flakes

# - uses: cachix/cachix-action@v13
# with:
# name: fashionunited
# authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

# - name: Build the flake
# run: nix --extra-experimental-features "nix-command flakes" build -L

# - name: Extract wasm files
# run: |
# tar -xf result/*-*.tgz
# mv package pkg

# - name: Set up Python 3.8
# uses: actions/setup-python@v5
# with:
# python-version: 3.8

# - uses: actions/setup-node@v4
# with:
# node-version: 18

# - name: 'Building web application to be tested'
# run: cd browserstack && npm ci

# # https://www.browserstack.com/docs/automate/selenium/github-actions#sample-github-workflow-showing-a-browserstack-test
# - name: 'BrowserStack Env Setup' # Invokes the setup-env action
# uses: browserstack/github-actions/setup-env@master
# with:
# username: ${{ secrets.BROWSERSTACK_USERNAME }}
# access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}

# - name: 'BrowserStack Local Tunnel Setup' # Invokes the setup-local action
# uses: browserstack/github-actions/setup-local@master
# with:
# local-testing: start
# local-identifier: random

# - name: 'Run local server to serve browserstack tests'
# run: python3 src/wasm/test/serve.py &

# - name: 'Running test on BrowserStack' # Invokes the actual test script that would run on BrowserStack browsers
# env:
# GIT_COMMIT_SHA: ${{ github.sha }}
# run: |
# cd browserstack && \
# GIT_COMMIT_SHA=$GIT_COMMIT_SHA \
# BROWSERSTACK_USERNAME=$BROWSERSTACK_USERNAME \
# BROWSERSTACK_ACCESS_KEY=$BROWSERSTACK_ACCESS_KEY \
# npm run local

# - name: 'BrowserStackLocal Stop' # Terminating the BrowserStackLocal tunnel connection
# uses: browserstack/github-actions/setup-local@master
# with:
# local-testing: stop
25 changes: 2 additions & 23 deletions .github/workflows/daily-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Nix Flake Checker
uses: DeterminateSystems/flake-checker-action@v9

- uses: cachix/install-nix-action@v24
with:
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.10.0pre20220629_b7eb4ac/install
nix_path: nixpkgs=channel:nixos-24.11
extra_nix_config: |
experimental-features = nix-command flakes

- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main

- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@main
with:
pr-title: "Update flake.lock" # Title of PR to be created
pr-labels: | # Labels to be set on the PR
dependencies
automated

- uses: cachix/cachix-action@v13
with:
name: fashionunited
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- uses: DeterminateSystems/flake-checker-action@main

- name: Build and run data collection
run: |
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/update-flake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# SPDX-FileCopyrightText: 2025 Joost van der Laan <[email protected]>
#
# SPDX-License-Identifier: AGPL-3.0-only

name: Update flake.lock
on:
schedule:
# Run at 00:00 UTC every day
- cron: '0 0 * * *'
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@main
with:
pr-title: "Update flake.lock" # Title of PR to be created
pr-labels: | # Labels to be set on the PR
dependencies
automated
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
Empty file.
Empty file.
Empty file.
Loading
Loading