diff --git a/.github/workflows/boardCardReleaseTest.yaml b/.github/workflows/boardCardReleaseTest.yaml index 20b7431f03..1e3dffb1a2 100644 --- a/.github/workflows/boardCardReleaseTest.yaml +++ b/.github/workflows/boardCardReleaseTest.yaml @@ -104,10 +104,13 @@ jobs: ES_PASSWORD: ${{ secrets.ES_PASSWORD }} ES_INDEX_TEST: ${{ secrets.ES_INDEX_TEST }} ES_INDEX_LIVE: ${{ secrets.ES_INDEX_LIVE }} + ES_INDEX_EXPERIMENTAL: ${{ secrets.ES_INDEX_EXPERIMENTAL }} MIKROE_NECTO_AWS: ${{ secrets.MIKROE_NECTO_AWS }} run: | echo "Indexing to Test." python -u scripts/index.py ${{ github.repository }} ${{ secrets.GITHUB_TOKEN }} ${{ steps.changelog_update.outputs.sdk_tag_name }} ${{ secrets.ES_INDEX_TEST }} "False" + echo "Indexing to Experimental." + python -u scripts/index.py ${{ github.repository }} ${{ secrets.GITHUB_TOKEN }} ${{ steps.changelog_update.outputs.sdk_tag_name }} ${{ secrets.ES_INDEX_EXPERIMENTAL }} "False" - name: Trigger database and schemas update in Core repo run: | diff --git a/.github/workflows/checkIndexes.yaml b/.github/workflows/checkIndexes.yaml index 741c16cf03..1cf1d0c2ed 100644 --- a/.github/workflows/checkIndexes.yaml +++ b/.github/workflows/checkIndexes.yaml @@ -63,6 +63,15 @@ jobs: python -u scripts/check_indexes.py ${{ github.repository }} ${{ secrets.GITHUB_TOKEN }} ${{ secrets.ES_HOST }} ${{ secrets.ES_USER }} ${{ secrets.ES_PASSWORD }} ${{ secrets.ES_INDEX_LIVE }} "--es_regex" "${{ github.event.inputs.regex }}" "--log_only" "$LOG_ONLY" continue-on-error: true # Ensure the workflow continues + - name: Check Indexed Links - Experimental + if: ${{ github.event.inputs.select_index == 'Test' || github.event.inputs.select_index == 'Both' }} + run: | + FIX_ACTION=${{ github.event.inputs.fix }} # Capture the fix input + LOG_ONLY=$([[ "$FIX_ACTION" == "false" ]] && echo true || echo false) # Negate the fix input + echo "LOG_ONLY is set to $LOG_ONLY" + python -u scripts/check_indexes.py ${{ github.repository }} ${{ secrets.GITHUB_TOKEN }} ${{ secrets.ES_HOST }} ${{ secrets.ES_USER }} ${{ secrets.ES_PASSWORD }} ${{ secrets.ES_INDEX_EXPERIMENTAL }} "--es_regex" "${{ github.event.inputs.regex }}" "--log_only" "$LOG_ONLY" + continue-on-error: true # Ensure the workflow continues + - name: Check Indexed Links - Test if: ${{ github.event.inputs.select_index == 'Test' || github.event.inputs.select_index == 'Both' }} run: | @@ -97,6 +106,11 @@ jobs: python -u scripts/check_indexes.py ${{ github.repository }} ${{ secrets.GITHUB_TOKEN }} ${{ secrets.ES_HOST }} ${{ secrets.ES_USER }} ${{ secrets.ES_PASSWORD }} ${{ secrets.ES_INDEX_LIVE }} "--es_regex" "$GLOBAL_REGEX" continue-on-error: true # Ensure the workflow continues + - name: Check Indexed Links - Experimental + run: | + python -u scripts/check_indexes.py ${{ github.repository }} ${{ secrets.GITHUB_TOKEN }} ${{ secrets.ES_HOST }} ${{ secrets.ES_USER }} ${{ secrets.ES_PASSWORD }} ${{ secrets.ES_INDEX_EXPERIMENTAL }} "--es_regex" "$GLOBAL_REGEX" + continue-on-error: true # Ensure the workflow continues + - name: Check Indexed Links - Test run: | python -u scripts/check_indexes.py ${{ github.repository }} ${{ secrets.GITHUB_TOKEN }} ${{ secrets.ES_HOST }} ${{ secrets.ES_USER }} ${{ secrets.ES_PASSWORD }} ${{ secrets.ES_INDEX_TEST }} "--es_regex" "$GLOBAL_REGEX" @@ -127,6 +141,11 @@ jobs: python -u scripts/check_indexes.py ${{ github.repository }} ${{ secrets.GITHUB_TOKEN }} ${{ secrets.ES_HOST }} ${{ secrets.ES_USER }} ${{ secrets.ES_PASSWORD }} ${{ secrets.ES_INDEX_LIVE }} "--es_regex" "$GLOBAL_REGEX" continue-on-error: true # Ensure the workflow continues + - name: Check Indexed Links - Experimental + run: | + python -u scripts/check_indexes.py ${{ github.repository }} ${{ secrets.GITHUB_TOKEN }} ${{ secrets.ES_HOST }} ${{ secrets.ES_USER }} ${{ secrets.ES_PASSWORD }} ${{ secrets.ES_INDEX_EXPERIMENTAL }} "--es_regex" "$GLOBAL_REGEX" + continue-on-error: true # Ensure the workflow continues + - name: Check Indexed Links - Test run: | python -u scripts/check_indexes.py ${{ github.repository }} ${{ secrets.GITHUB_TOKEN }} ${{ secrets.ES_HOST }} ${{ secrets.ES_USER }} ${{ secrets.ES_PASSWORD }} ${{ secrets.ES_INDEX_TEST }} "--es_regex" "$GLOBAL_REGEX" diff --git a/.github/workflows/index.yaml b/.github/workflows/index.yaml index 5f2b035e5e..0b8a4d96c6 100644 --- a/.github/workflows/index.yaml +++ b/.github/workflows/index.yaml @@ -83,6 +83,8 @@ jobs: echo "Promote to latest requested, but ignored. Only available for LIVE updates." fi python -u scripts/index.py ${{ github.repository }} ${{ steps.app-token.outputs.token }} ${{ github.event.inputs.release_version }} ${{ secrets.ES_INDEX_TEST }} "False" "--keep_previous_dates" ${{ github.event.inputs.keep_dates }} + echo "Indexing to Experimental." + python -u scripts/index.py ${{ github.repository }} ${{ steps.app-token.outputs.token }} ${{ github.event.inputs.release_version }} ${{ secrets.ES_INDEX_EXPERIMENTAL }} "False" "--keep_previous_dates" ${{ github.event.inputs.keep_dates }} fi - name: Trigger database update in Core repo diff --git a/scripts/check_indexes.py b/scripts/check_indexes.py index 2a732a46b1..e821af0eb6 100644 --- a/scripts/check_indexes.py +++ b/scripts/check_indexes.py @@ -97,6 +97,8 @@ def str2bool(v): else: if 'test' in args.es_index: package_name = f'{indexed_item['source']['name']}_dev.7z' + elif 'experimental' in args.es_index: + package_name = f'{indexed_item['source']['name']}_experimental.7z' else: package_name = f'{indexed_item['source']['name']}_live.7z' if 'gh_package_name' not in indexed_item['source']: