feat: turn off renku legacy project dataset creation #14658
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: Acceptance tests | |
permissions: | |
contents: read | |
pull-requests: read | |
on: | |
pull_request: | |
types: | |
- opened | |
- edited | |
- synchronize | |
- reopened | |
- closed | |
paths: | |
- client/** | |
- helm-chart/** | |
- tests/** | |
- server/** | |
- .github/workflows/** | |
- chartpress.yaml | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check-deploy: | |
name: Analyze deploy string | |
runs-on: ubuntu-24.04 | |
outputs: | |
pr-contains-string: ${{ steps.deploy-comment.outputs.pr-contains-string }} | |
renku: ${{ steps.deploy-comment.outputs.renku}} | |
renku-core: ${{ steps.deploy-comment.outputs.renku-core}} | |
renku-gateway: ${{ steps.deploy-comment.outputs.renku-gateway}} | |
renku-graph: ${{ steps.deploy-comment.outputs.renku-graph}} | |
renku-notebooks: ${{ steps.deploy-comment.outputs.renku-notebooks}} | |
renku-data-services: ${{ steps.deploy-comment.outputs.renku-data-services}} | |
amalthea: ${{ steps.deploy-comment.outputs.amalthea}} | |
amalthea-sessions: ${{ steps.deploy-comment.outputs.amalthea-sessions}} | |
test-enabled: ${{ steps.deploy-comment.outputs.test-enabled}} | |
test-legacy-enabled: ${{ steps.deploy-comment.outputs.test-legacy-enabled}} | |
extra-values: ${{ steps.deploy-comment.outputs.extra-values}} | |
steps: | |
- id: deploy-comment | |
uses: SwissDataScienceCenter/renku-actions/check-pr-description@v1.18.2 | |
with: | |
pr_ref: ${{ github.event.number }} | |
deploy-pr: | |
name: Deploy | |
runs-on: ubuntu-24.04 | |
needs: [check-deploy] | |
permissions: | |
pull-requests: write | |
if: github.event.action != 'closed' && needs.check-deploy.outputs.pr-contains-string == 'true' | |
environment: | |
name: renku-ci-ui-${{ github.event.number }} | |
url: https://renku-ci-ui-${{ github.event.number }}.dev.renku.ch | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: SwissDataScienceCenter/renku | |
sparse-checkout: | | |
minimal-deployment | |
- name: Find deplyoment url | |
uses: peter-evans/find-comment@v3 | |
id: deploymentUrlMessage | |
with: | |
issue-number: ${{ github.event.pull_request.number }} | |
comment-author: "RenkuBot" | |
body-includes: "You can access the deployment of this PR at" | |
- name: Create comment deployment url | |
if: steps.deploymentUrlMessage.outputs.comment-id == 0 | |
uses: peter-evans/create-or-update-comment@v4 | |
with: | |
token: ${{ secrets.RENKUBOT_GITHUB_TOKEN }} | |
issue-number: ${{ github.event.pull_request.number }} | |
body: | | |
You can access the deployment of this PR at https://renku-ci-ui-${{ github.event.number }}.dev.renku.ch | |
- name: Build and deploy | |
uses: SwissDataScienceCenter/renku-actions/deploy-renku@v1.18.2 | |
env: | |
DOCKER_PASSWORD: ${{ secrets.RENKU_DOCKER_PASSWORD }} | |
DOCKER_USERNAME: ${{ secrets.RENKU_DOCKER_USERNAME }} | |
GITLAB_TOKEN: ${{ secrets.DEV_GITLAB_TOKEN }} | |
KUBECONFIG: ${{ github.workspace }}/renkubot-kube.config | |
RENKU_RELEASE: renku-ci-ui-${{ github.event.number }} | |
RENKU_VALUES_FILE: ${{ github.workspace }}/values.yaml | |
RENKU_VALUES: minimal-deployment/minimal-deployment-values.yaml | |
RENKUBOT_KUBECONFIG: ${{ secrets.RENKUBOT_DEV_KUBECONFIG }} | |
RENKUBOT_RANCHER_BEARER_TOKEN: ${{ secrets.RENKUBOT_RANCHER_BEARER_TOKEN }} | |
TEST_ARTIFACTS_PATH: "tests-artifacts-${{ github.sha }}" | |
renku_ui: "@${{ github.head_ref }}" | |
renku: "${{ needs.check-deploy.outputs.renku }}" | |
renku_core: "${{ needs.check-deploy.outputs.renku-core }}" | |
renku_gateway: "${{ needs.check-deploy.outputs.renku-gateway }}" | |
renku_graph: "${{ needs.check-deploy.outputs.renku-graph }}" | |
renku_notebooks: "${{ needs.check-deploy.outputs.renku-notebooks }}" | |
renku_data_services: "${{ needs.check-deploy.outputs.renku-data-services }}" | |
amalthea: "${{ needs.check-deploy.outputs.amalthea }}" | |
amalthea_sessions: "${{ needs.check-deploy.outputs.amalthea-sessions }}" | |
extra_values: "${{ needs.check-deploy.outputs.extra-values }}" | |
legacy-cypress-acceptance-tests: | |
name: Legacy Cypress tests | |
runs-on: ubuntu-24.04 | |
needs: [check-deploy, deploy-pr] | |
if: github.event.action != 'closed' && needs.check-deploy.outputs.pr-contains-string == 'true' && needs.check-deploy.outputs.test-legacy-enabled == 'true' | |
strategy: | |
fail-fast: false | |
matrix: | |
tests: | |
- publicProject | |
- privateProject | |
- updateProjects | |
- testDatasets | |
- useSession | |
- checkWorkflows | |
- rstudioSession | |
steps: | |
- name: Extract Renku repository reference | |
run: echo "RENKU_REFERENCE=`echo '${{ needs.check-deploy.outputs.renku }}' | cut -d'@' -f2`" >> $GITHUB_ENV | |
- uses: SwissDataScienceCenter/renku-actions/test-renku-cypress@v1.18.2 | |
with: | |
e2e-target: ${{ matrix.tests }} | |
renku-reference: ${{ env.RENKU_REFERENCE }} | |
renku-release: renku-ci-ui-${{ github.event.number }} | |
test-user-password: ${{ secrets.RENKU_BOT_DEV_PASSWORD }} | |
cypress-acceptance-tests: | |
name: Cypress tests | |
runs-on: ubuntu-24.04 | |
needs: [check-deploy, deploy-pr] | |
if: github.event.action != 'closed' && needs.check-deploy.outputs.pr-contains-string == 'true' && needs.check-deploy.outputs.test-enabled == 'true' | |
strategy: | |
fail-fast: false | |
matrix: | |
tests: | |
- anonymousNavigation | |
- dashboardV2 | |
- groupBasics | |
- projectBasics | |
- projectResources | |
- searchEntities | |
- sessionBasics | |
steps: | |
- name: Extract Renku repository reference | |
run: echo "RENKU_REFERENCE=`echo '${{ needs.check-deploy.outputs.renku }}' | cut -d'@' -f2`" >> $GITHUB_ENV | |
- uses: SwissDataScienceCenter/renku-actions/test-renku-cypress@v1.18.2 | |
with: | |
e2e-folder: cypress/e2e/v2/ | |
e2e-target: ${{ matrix.tests }} | |
renku-reference: ${{ env.RENKU_REFERENCE }} | |
renku-release: renku-ci-ui-${{ github.event.number }} | |
test-user-password: ${{ secrets.RENKU_BOT_DEV_PASSWORD }} | |
cleanup: | |
name: Cleanup | |
runs-on: ubuntu-24.04 | |
needs: check-deploy | |
if: github.event.action == 'closed' && needs.check-deploy.outputs.pr-contains-string == 'true' | |
permissions: | |
pull-requests: write | |
steps: | |
- name: Find deplyoment url | |
uses: peter-evans/find-comment@v3 | |
id: deploymentUrlMessage | |
with: | |
issue-number: ${{ github.event.pull_request.number }} | |
comment-author: "RenkuBot" | |
body-includes: "Tearing down the temporary RenkuLab deplyoment" | |
- name: Create comment deployment url | |
if: steps.deploymentUrlMessage.outputs.comment-id == 0 | |
uses: peter-evans/create-or-update-comment@v4 | |
with: | |
token: ${{ secrets.RENKUBOT_GITHUB_TOKEN }} | |
issue-number: ${{ github.event.pull_request.number }} | |
body: | | |
Tearing down the temporary RenkuLab deplyoment for this PR. | |
- name: renku teardown | |
uses: SwissDataScienceCenter/renku-actions/cleanup-renku-ci-deployments@v1.18.2 | |
env: | |
HELM_RELEASE_REGEX: "^renku-ci-ui-${{ github.event.number }}$" | |
GITLAB_TOKEN: ${{ secrets.DEV_GITLAB_TOKEN }} | |
RENKUBOT_KUBECONFIG: ${{ secrets.RENKUBOT_DEV_KUBECONFIG }} | |
MAX_AGE_SECONDS: 0 | |
DELETE_NAMESPACE: "true" |