perf(sync-service): Use ETS tables instead of maps in Filter to reduce GC pressure #5390
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lux Integration Tests | |
| on: | |
| push: | |
| branches: ['main'] | |
| paths-ignore: | |
| - 'website/**' | |
| - '**/README.md' | |
| pull_request: | |
| paths-ignore: | |
| - 'website/**' | |
| - '**/README.md' | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Run Lux integration tests | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: integration-tests | |
| env: | |
| MIX_ENV: dev | |
| MIX_OS_DEPS_COMPILE_PARTITION_COUNT: 4 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: erlef/setup-beam@v1 | |
| with: | |
| version-type: strict | |
| version-file: '.tool-versions' | |
| - name: Cache dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: packages/sync-service/deps | |
| key: "${{ runner.os }}-sync-service-deps-${{ env.MIX_ENV }}-${{ hashFiles('packages/sync-service/mix.lock') }}" | |
| restore-keys: | | |
| ${{ runner.os }}-sync-service-deps-${{ env.MIX_ENV }}-${{ hashFiles('packages/sync-service/mix.lock') }} | |
| ${{ runner.os }}-sync-service-deps-${{ env.MIX_ENV }}- | |
| ${{ runner.os }}-sync-service-deps- | |
| - name: Cache compiled code | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| packages/sync-service/_build/*/lib | |
| !packages/sync-service/_build/*/lib/electric | |
| key: "${{ runner.os }}-sync-service-build-${{ env.MIX_ENV }}-${{ hashFiles('packages/sync-service/mix.lock') }}" | |
| restore-keys: | | |
| ${{ runner.os }}-sync-service-build-${{ env.MIX_ENV }}-${{ hashFiles('packages/sync-service/mix.lock') }} | |
| ${{ runner.os }}-sync-service-build-${{ env.MIX_ENV }}- | |
| ${{ runner.os }}-sync-service-build- | |
| - name: Install dependencies | |
| run: mix do deps.get + deps.compile | |
| working-directory: packages/sync-service | |
| - name: Compile | |
| run: mix compile | |
| working-directory: packages/sync-service | |
| - name: Setup lux | |
| run: make | |
| - name: Run integration tests | |
| id: tests | |
| run: ./run.sh | |
| - name: Upload lux logs | |
| uses: actions/upload-artifact@v4 | |
| if: ${{ failure() && steps.tests.outcome == 'failure' }} | |
| with: | |
| name: lux_logs | |
| path: integration-tests/**/lux_logs/run_* |