From 0a69ed655a92732622b9424b9bc086071e5ddaf9 Mon Sep 17 00:00:00 2001 From: Marrony Neris Date: Mon, 11 Mar 2024 12:05:32 -0700 Subject: [PATCH] config github actions to enable stream --- .github/workflows/build_and_test.yml | 60 ++++++++++++++++++++++++++-- .github/workflows/feature-flags.json | 27 +++++++++++++ 2 files changed, 84 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/feature-flags.json diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 3495ee2..8f5430c 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -15,9 +15,9 @@ jobs: # Run in all these versions of Python # current and last three python versions python-version: - - "3.12" - - "3.11" - - "3.10" + # - "3.12" + # - "3.11" + # - "3.10" - "3.9" fauna-docker-service: - name: "fauna/faunadb:latest" @@ -37,10 +37,64 @@ jobs: services: core: image: ${{ matrix.fauna-docker-service.name }} + volumes: + - /__w/fauna-python/fauna-python/.github/workflows/feature-flags.json:/etc/feature-flag-periodic.d/feature-flags.json + options: --name core steps: - uses: actions/checkout@v3 + - name: test + run: echo $GITHUB_WORKSPACE + - name: test + run: ls -la ${{ github.action_path }}/ + - name: test + run: ls -la ${{ github.action_path }}/github/ + - name: test + run: ls -la ${{ github.action_path }}/github/home/ + - name: test + run: ls -la ${{ github.action_path }}/github/workflow/ + - name: test + run: ls -la $GITHUB_WORKSPACE/.github/ + - name: test + run: ls -la $GITHUB_WORKSPACE/.github/workflows/ + - name: test + run: cat $GITHUB_WORKSPACE/.github/workflows/feature-flags.json + - name: test + run: | + echo < $GITHUB_WORKSPACE/.github/workflows/feature-flags.json + + - name: test + run: cat /__w/fauna-python/fauna-python/.github/workflows/feature-flags.json + - name: Show file descriptor limit run: ulimit -a diff --git a/.github/workflows/feature-flags.json b/.github/workflows/feature-flags.json new file mode 100644 index 0000000..2fc48a0 --- /dev/null +++ b/.github/workflows/feature-flags.json @@ -0,0 +1,27 @@ +{ + "version": 1, + "properties": [ + { + "property_name": "cluster_name", + "property_value": "fauna", + "flags": { + "fql2_schema": true, + "fqlx_typecheck_default": true, + "persisted_fields": true, + "changes_by_collection_index": true, + "fql2_streams": true + } + }, + { + "property_name": "account_id", + "property_value": 0, + "flags": { + "fql2_schema": true, + "fqlx_typecheck_default": true, + "persisted_fields": true, + "changes_by_collection_index": true, + "fql2_streams": true + } + } + ] +}