-
Notifications
You must be signed in to change notification settings - Fork 27
ci: remove test-connect jobs #727
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -89,11 +89,6 @@ jobs: | |
| id: create_dist | ||
| env: | ||
| PACKAGE_NAME: ${{ matrix.package_name }} | ||
| - uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: distributions | ||
| path: dist/ | ||
| if: matrix.package_name == 'rsconnect_python' | ||
| - run: pip install -vvv ${{ steps.create_dist.outputs.whl }} | ||
| - run: rsconnect version | ||
| - run: rsconnect --help | ||
|
|
@@ -172,83 +167,3 @@ jobs: | |
| run: | | ||
| pytest tests/test_main_system_caches.py | ||
| pytest -m 'vetiver' | ||
|
|
||
| test-connect: | ||
| needs: distributions | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| PY_VERSION: | ||
| - 3.11.13 | ||
| - 3.12.11 | ||
| steps: | ||
| - uses: extractions/setup-just@v2 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| # Checkout the rsconnect-python tests from Connect | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| repository: rstudio/connect | ||
| path: 'test/connect-rsconnect-python' | ||
| sparse-checkout: | | ||
| test/rsconnect-python | ||
| tools/dev | ||
| examples | ||
| sparse-checkout-cone-mode: false | ||
| token: ${{ secrets.CONNECT_PAT }} | ||
joshyam-k marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - name: Delete dotnet to save space | ||
| run: sudo rm -rf /usr/share/dotnet | ||
|
|
||
| - name: Build docker container-image | ||
| run: | | ||
| cd test/connect-rsconnect-python/test/rsconnect-python/ | ||
| docker compose --profile rsconnect build | ||
|
|
||
| - name: Restore dist | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| name: distributions | ||
| path: dist/ | ||
|
|
||
| - name: Run rsconnect-python Tests | ||
| env: | ||
| CONNECT_LICENSE: "${{ secrets.RSC_LICENSE }}" | ||
| PY_VERSION: ${{ matrix.PY_VERSION }} | ||
| TEST_SUBSET: "CI" | ||
| RSC_AUTOMATION_PAT: "${{ secrets.CONNECT_PAT }}" | ||
| ADMIN_API_KEY: "${{ secrets.ADMIN_API_KEY }}" | ||
| QUARTO_VERSION: "1.4.546" | ||
|
|
||
| # This allows us to start Connect separately in our own docker container | ||
| CONNECT_SERVER: "http://localhost:3939" | ||
| remote: "yes" | ||
| run: | | ||
| cd integration-testing | ||
| docker compose pull connect | ||
| docker compose up -d connect | ||
| just ../test/connect-rsconnect-python/test/rsconnect-python/test-rsconnect-python-repo | ||
|
Contributor
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. Once this merges, we can tidy up this justfile in connect and at least remove this target, which nothing else calls. Probably worth doing an audit there of any other stuff, like in the
Contributor
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.
Contributor
Author
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. Connect ticket for this follow up work: https://github.com/posit-dev/connect/issues/34626 |
||
|
|
||
| # Videos are captured whether the suite fails or passes | ||
| - name: Save videos | ||
| uses: actions/upload-artifact@v4 | ||
| if: failure() | ||
| with: | ||
| name: cypress-videos_${{ matrix.PY_VERSION }}_native | ||
| path: test/connect-rsconnect-python/cypress/videos | ||
| if-no-files-found: ignore | ||
|
|
||
| # Screenshots are only captured on failure | ||
| - name: Save screenshots | ||
| uses: actions/upload-artifact@v4 | ||
| if: failure() | ||
| with: | ||
| name: cypress-screenshots_${{ matrix.PY_VERSION }}_native | ||
| path: test/connect-rsconnect-python/cypress/screenshots | ||
| if-no-files-found: ignore | ||
Uh oh!
There was an error while loading. Please reload this page.