From bb7fe95d9b2ecf9f86b6bc4ab9fd6cba5482edb3 Mon Sep 17 00:00:00 2001 From: Ashim Shrestha Date: Thu, 26 Nov 2026 15:06:33 +0545 Subject: [PATCH 1/4] ci: add debug log Signed-off-by: Ashim Shrestha --- .github/workflows/app-upgrade.yml | 7 +++ .github/workflows/nightly-ci-release-3.yml | 1 + .github/workflows/nightly-shared.yaml | 56 +++++++++++----------- 3 files changed, 36 insertions(+), 28 deletions(-) diff --git a/.github/workflows/app-upgrade.yml b/.github/workflows/app-upgrade.yml index 4fecf34f1..5e2c78e73 100644 --- a/.github/workflows/app-upgrade.yml +++ b/.github/workflows/app-upgrade.yml @@ -139,6 +139,9 @@ jobs: cd build-app/publish echo "NEXT_APP_VERSION=$(cat integration_openproject_new_version.txt)" >> $GITHUB_ENV + - name: show version + run: docker exec nextcloud php occ app:list | grep -E "integration_openproject|oidc|groupfolders|activity" + - name: Update integration_openproject app run: | # Start local appstore server @@ -185,3 +188,7 @@ jobs: BEHAT_FILTER_TAGS: '~@skip' run: | make api-test + + - name: log + if: always() + run: docker exec nextcloud tail -n 200 /var/www/html/data/nextcloud.log diff --git a/.github/workflows/nightly-ci-release-3.yml b/.github/workflows/nightly-ci-release-3.yml index 3b0fd2049..fb2e4c6bb 100644 --- a/.github/workflows/nightly-ci-release-3.yml +++ b/.github/workflows/nightly-ci-release-3.yml @@ -9,6 +9,7 @@ name: Nightly CI (Release 3.3) on: schedule: - cron: '0 23 * * *' # run at 11 PM UTC + pull_request: jobs: nightly-builds: diff --git a/.github/workflows/nightly-shared.yaml b/.github/workflows/nightly-shared.yaml index 4f7ce5f2c..4ae5a8bd3 100644 --- a/.github/workflows/nightly-shared.yaml +++ b/.github/workflows/nightly-shared.yaml @@ -22,19 +22,19 @@ concurrency: cancel-in-progress: true jobs: - js-unit-test: - uses: ./.github/workflows/js-unit.yml - secrets: inherit - with: - branch: ${{ inputs.branch }} + # js-unit-test: + # uses: ./.github/workflows/js-unit.yml + # secrets: inherit + # with: + # branch: ${{ inputs.branch }} - php-unit-api-test: - uses: ./.github/workflows/php-unit-api.yml - secrets: inherit - with: - branch: ${{ inputs.branch }} - nextcloud_versions: ${{ inputs.nextcloud_versions }} - php_versions: ${{ inputs.php_versions }} + # php-unit-api-test: + # uses: ./.github/workflows/php-unit-api.yml + # secrets: inherit + # with: + # branch: ${{ inputs.branch }} + # nextcloud_versions: ${{ inputs.nextcloud_versions }} + # php_versions: ${{ inputs.php_versions }} app-upgrade-test: uses: ./.github/workflows/app-upgrade.yml @@ -42,20 +42,20 @@ jobs: branch: ${{ inputs.branch }} nextcloud_versions: ${{ inputs.app_upgrade_nc_versions }} - notify-nightly-report: - needs: [js-unit-test, php-unit-api-test, app-upgrade-test] - if: ${{ always() }} - runs-on: ubuntu-22.04 - steps: - - name: checkout - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 + # notify-nightly-report: + # needs: [js-unit-test, php-unit-api-test, app-upgrade-test] + # if: ${{ always() }} + # runs-on: ubuntu-22.04 + # steps: + # - name: checkout + # uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 - - name: Notify Chat - env: - ELEMENT_CHAT_URL: ${{ secrets.ELEMENT_CHAT_URL }} - ELEMENT_ROOM_ID: ${{ secrets.ELEMENT_ROOM_ID }} - NIGHTLY_CI_USER_TOKEN: ${{ secrets.NIGHTLY_CI_USER_TOKEN }} - BRANCH_NAME: ${{ inputs.branch }} - NEEDS_JSON: ${{ toJson(needs) }} - run: | - ./.github/scripts/notify-to-element.sh + # - name: Notify Chat + # env: + # ELEMENT_CHAT_URL: ${{ secrets.ELEMENT_CHAT_URL }} + # ELEMENT_ROOM_ID: ${{ secrets.ELEMENT_ROOM_ID }} + # NIGHTLY_CI_USER_TOKEN: ${{ secrets.NIGHTLY_CI_USER_TOKEN }} + # BRANCH_NAME: ${{ inputs.branch }} + # NEEDS_JSON: ${{ toJson(needs) }} + # run: | + # ./.github/scripts/notify-to-element.sh From 9882f2ffcd70d115a195c4291f00a85abcbcef5d Mon Sep 17 00:00:00 2001 From: Ashim Shrestha Date: Thu, 26 Nov 2026 15:21:21 +0545 Subject: [PATCH 2/4] fix: failure Signed-off-by: Ashim Shrestha --- .github/workflows/app-upgrade.yml | 22 +++++++++++++++++++++- .github/workflows/js-unit.yml | 28 ++++++++++++++-------------- .github/workflows/php-unit-api.yml | 24 ++++++++++++------------ 3 files changed, 47 insertions(+), 27 deletions(-) diff --git a/.github/workflows/app-upgrade.yml b/.github/workflows/app-upgrade.yml index 5e2c78e73..6c357faaa 100644 --- a/.github/workflows/app-upgrade.yml +++ b/.github/workflows/app-upgrade.yml @@ -54,7 +54,7 @@ jobs: SQL: ${{ matrix.database }} SERVER_BRANCH: ${{ matrix.nextcloudVersion }} NEXTCLOUD_AUTOINSTALL: 'Yes' - NEXTCLOUD_AUTOINSTALL_APPS: oidc groupfolders user_oidc integration_openproject + NEXTCLOUD_AUTOINSTALL_APPS: oidc groupfolders user_oidc NEXTCLOUD_AUTOINSTALL_APPS_WAIT_TIME: 60 WITH_REDIS: 'YES' ports: @@ -97,6 +97,26 @@ jobs: cache: 'npm' cache-dependency-path: 'integration_openproject/package-lock.json' + - name: install integration_openproject + env: + GH_TOKEN: ${{ github.token }} + run: | + REPO=nextcloud/integration_openproject + VERSION=$(grep -oP '(?<=)[^<]+' integration_openproject/appinfo/info.xml | cut -d. -f1,2) + TAG=$(gh release list --repo "${REPO}" --json tagName -q '.[].tagName' \ + | grep "^v${VERSION}\." | grep -v nightly | head -n1) + echo "${TAG}" + if [ -z "$TAG" ]; then + docker exec nextcloud occ app:install integration_openproject + else + gh release download "${TAG}" --repo "${REPO}" --pattern '*.tar.gz' --dir /tmp/base + docker cp /tmp/base nextcloud:/tmp/base + docker exec nextcloud bash -c ' + tar -xzf /tmp/base/*.tar.gz -C /var/www/html/apps && + occ app:enable integration_openproject' + fi + docker exec nextcloud php occ app:list | grep integration_openproject + - name: Wait for Nextcloud server to be ready run: | if ! timeout 5m bash -c ' diff --git a/.github/workflows/js-unit.yml b/.github/workflows/js-unit.yml index abcd93447..6b13beb83 100644 --- a/.github/workflows/js-unit.yml +++ b/.github/workflows/js-unit.yml @@ -14,20 +14,20 @@ on: branches: - 'master' - 'release/**' - pull_request: - paths-ignore: - - 'tests/acceptance/**' - - 'tests/lib/**' - - 'tests/stub/**' - - 'dev/**' - - 'l10n/**' - - 'lib/**' - - '**.md' - - '**.txt' - - '**.sh' - - '**.php' - - 'composer.*' - - '**.xml' + # pull_request: + # paths-ignore: + # - 'tests/acceptance/**' + # - 'tests/lib/**' + # - 'tests/stub/**' + # - 'dev/**' + # - 'l10n/**' + # - 'lib/**' + # - '**.md' + # - '**.txt' + # - '**.sh' + # - '**.php' + # - 'composer.*' + # - '**.xml' concurrency: group: js-${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/php-unit-api.yml b/.github/workflows/php-unit-api.yml index 593cea0df..b16fcde82 100644 --- a/.github/workflows/php-unit-api.yml +++ b/.github/workflows/php-unit-api.yml @@ -20,18 +20,18 @@ on: branches: - 'master' - 'release/**' - pull_request: - paths-ignore: - - 'tests/js/**' - - '**.md' - - '**.txt' - - '**.sh' - - '**.js' - - 'dev/**' - - 'l10n/**' - - 'img/**' - - 'src/**' - - 'package*.json' + # pull_request: + # paths-ignore: + # - 'tests/js/**' + # - '**.md' + # - '**.txt' + # - '**.sh' + # - '**.js' + # - 'dev/**' + # - 'l10n/**' + # - 'img/**' + # - 'src/**' + # - 'package*.json' concurrency: group: php-${{ github.workflow }}-${{ github.ref }} From 3108d2cdcf7020395746c39ebe9986d2f5b3691f Mon Sep 17 00:00:00 2001 From: Ashim Shrestha Date: Fri, 27 Nov 2026 15:16:42 +0545 Subject: [PATCH 3/4] ci: take latest release Signed-off-by: Ashim Shrestha --- .github/workflows/app-upgrade.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/app-upgrade.yml b/.github/workflows/app-upgrade.yml index 6c357faaa..6b55c171d 100644 --- a/.github/workflows/app-upgrade.yml +++ b/.github/workflows/app-upgrade.yml @@ -107,14 +107,14 @@ jobs: | grep "^v${VERSION}\." | grep -v nightly | head -n1) echo "${TAG}" if [ -z "$TAG" ]; then - docker exec nextcloud occ app:install integration_openproject - else - gh release download "${TAG}" --repo "${REPO}" --pattern '*.tar.gz' --dir /tmp/base - docker cp /tmp/base nextcloud:/tmp/base - docker exec nextcloud bash -c ' - tar -xzf /tmp/base/*.tar.gz -C /var/www/html/apps && - occ app:enable integration_openproject' + TAG=$(gh release list --repo "${REPO}" --json tagName -q '.[].tagName' \ + | grep -v nightly | head -n1) fi + gh release download "${TAG}" --repo "${REPO}" --pattern '*.tar.gz' --dir /tmp/base + docker cp /tmp/base nextcloud:/tmp/base + docker exec nextcloud bash -c ' + tar -xzf /tmp/base/*.tar.gz -C /var/www/html/apps && + occ app:enable integration_openproject' docker exec nextcloud php occ app:list | grep integration_openproject - name: Wait for Nextcloud server to be ready From 6f919abe6557c342c415c616a79539c1bac33bff Mon Sep 17 00:00:00 2001 From: Ashim Shrestha Date: Fri, 27 Nov 2026 15:49:12 +0545 Subject: [PATCH 4/4] ci: refactor tag Signed-off-by: Ashim Shrestha --- .github/workflows/app-upgrade.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/app-upgrade.yml b/.github/workflows/app-upgrade.yml index 6b55c171d..b20b28936 100644 --- a/.github/workflows/app-upgrade.yml +++ b/.github/workflows/app-upgrade.yml @@ -97,18 +97,18 @@ jobs: cache: 'npm' cache-dependency-path: 'integration_openproject/package-lock.json' - - name: install integration_openproject + - name: Install integration_openproject env: GH_TOKEN: ${{ github.token }} run: | REPO=nextcloud/integration_openproject VERSION=$(grep -oP '(?<=)[^<]+' integration_openproject/appinfo/info.xml | cut -d. -f1,2) - TAG=$(gh release list --repo "${REPO}" --json tagName -q '.[].tagName' \ - | grep "^v${VERSION}\." | grep -v nightly | head -n1) + STABLE_RELEASE_TAGS=$(gh release list --repo "${REPO}" --json tagName -q '.[].tagName' \ + | grep -v nightly) + TAG=$(echo "${STABLE_RELEASE_TAGS}" | grep "^v${VERSION}\." | head -n1) echo "${TAG}" if [ -z "$TAG" ]; then - TAG=$(gh release list --repo "${REPO}" --json tagName -q '.[].tagName' \ - | grep -v nightly | head -n1) + TAG=$(echo "${STABLE_RELEASE_TAGS}" | head -n1) fi gh release download "${TAG}" --repo "${REPO}" --pattern '*.tar.gz' --dir /tmp/base docker cp /tmp/base nextcloud:/tmp/base