-
Notifications
You must be signed in to change notification settings - Fork 112
Revert "ci: skip build phases on re-enqueue if artifacts already exist" #5974
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
Closed
Closed
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
Revert "ci: skip build phases on re-enqueue if artifacts already exist"
This reverts commit 60b70a9.
- Loading branch information
commit f952441059068a4cea4ce2a788a4fb299694f8a5
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -230,3 +230,54 @@ jobs: | |
| OIDC_TEST_CLIENT_SECRET: ${{ secrets.OIDC_TEST_CLIENT_SECRET }} | ||
| OIDC_TEST_USERNAME: ${{ secrets.OIDC_TEST_USERNAME }} | ||
| OIDC_TEST_PASSWORD: ${{ secrets.OIDC_TEST_PASSWORD }} | ||
|
|
||
| - name: Download fda binary | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| name: fda-${{ matrix.target }} | ||
| path: build | ||
|
|
||
| # Remove if https://github.com/actions/upload-artifact/issues/38 ever gets fixed | ||
| - name: Make fda binary executable | ||
| run: chmod +x ./build/fda | ||
|
|
||
| - name: Create API key for CLI tests | ||
| if: ${{ vars.CI_DRY_RUN != 'true' }} | ||
| shell: bash | ||
| run: | | ||
| set -euo pipefail | ||
| API_KEY=$(uv run --locked python - <<'PY' | ||
| import os | ||
| import uuid | ||
| from feldera import FelderaClient | ||
| from feldera.testutils_oidc import setup_token_cache | ||
| import contextlib | ||
| import io | ||
|
|
||
| host = os.environ.get("FELDERA_HOST", "https://localhost:8080") | ||
| name = f"ci-fda-cli-{os.environ.get('GITHUB_RUN_ID', 'local')}-{uuid.uuid4().hex[:8]}" | ||
|
|
||
| token = None | ||
| if os.environ.get("OIDC_TEST_ISSUER") and os.environ.get("OIDC_TEST_CLIENT_ID"): | ||
| # Suppress auth helper output to keep GITHUB_ENV clean | ||
| with contextlib.redirect_stdout(io.StringIO()): | ||
| token_data = setup_token_cache() | ||
| if token_data is not None: | ||
| token = token_data.get("access_token") | ||
|
|
||
| client = FelderaClient(url=host, api_key=token) | ||
| resp = client.create_api_key(name) | ||
| print(resp["api_key"]) | ||
| PY | ||
| ) | ||
| echo "FELDERA_API_KEY=$API_KEY" >> "$GITHUB_ENV" | ||
| working-directory: python | ||
| env: | ||
| PYTHONPATH: ${{ github.workspace }}/python | ||
|
|
||
| - name: Run fda CLI tests | ||
| if: ${{ vars.CI_DRY_RUN != 'true' }} | ||
| run: bash test.bash | ||
| working-directory: crates/fda | ||
| env: | ||
| FDA_BINARY: ${{ github.workspace }}/build/fda | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These 51 lines (fda binary download + API key creation + CLI test step) are new additions, not part of reverting commit 60b70a9. That commit only added 8 lines to this file (related to artifact run-id inputs). This is new functionality inside a PR titled "Revert". |
||
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original commit 60b70a9 added
run-id/github-tokencommented-out lines to this file. Removing those comments and instead adding a separatepipeline-managerdownload step is not reverting those changes — it is restructuring them. If that's intentional, the PR description should say so.