From b41284c30fc411f9b50f4e9637bf56c0ec4bbd3b Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Thu, 8 Aug 2024 21:34:00 +0200 Subject: [PATCH 1/8] Fixed windows pipeline --- .github/workflows/windows.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 0d7127fbd83..b1e0e226dea 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -80,8 +80,6 @@ jobs: if: ${{startsWith(github.ref, 'refs/tags/v') }} working-directory: bin run: pnpm run generateChangelog ${{ github.ref }} > ${{ github.workspace }}-CHANGELOG.txt - with: - tag: ${{ github.ref }} - name: Release uses: softprops/action-gh-release@v2 if: ${{startsWith(github.ref, 'refs/tags/v') }} From e17aa9af96611bc8013ed6bea2c7eecefb98cab0 Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Thu, 8 Aug 2024 21:41:18 +0200 Subject: [PATCH 2/8] Remove unwanted strings in hash --- src/node/hooks/express/specialpages.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node/hooks/express/specialpages.ts b/src/node/hooks/express/specialpages.ts index 5f575d94212..f0d1a7fa0fb 100644 --- a/src/node/hooks/express/specialpages.ts +++ b/src/node/hooks/express/specialpages.ts @@ -107,7 +107,7 @@ const convertTypescript = (content: string) => { return { output, - hash: outputRaw.outputFiles[0].hash.replaceAll('/','2') + hash: outputRaw.outputFiles[0].hash.replaceAll('/','2').replaceAll("+",'5').replaceAll("^","7") } } @@ -238,7 +238,7 @@ const convertTypescriptWatched = (content: string, cb: (output:string, hash: str }).then((outputRaw) => { cb( outputRaw.outputFiles[0].text, - outputRaw.outputFiles[0].hash.replaceAll('/','2') + outputRaw.outputFiles[0].hash.replaceAll('/','2').replaceAll("+",'5').replaceAll("^","7") ) }) } From 9f2a48e944342f8111fa6565d04c7b41e1b581c3 Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Thu, 8 Aug 2024 21:44:25 +0200 Subject: [PATCH 3/8] Fixed windows pipeline --- .github/workflows/windows.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index b1e0e226dea..9d121bf2c3b 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -60,10 +60,11 @@ jobs: - name: Run the backend tests shell: msys2 {0} - run: cd src && pnpm test + working-directory: src + run: pnpm test - name: Run Etherpad - working-directory: etherpad/src + working-directory: src run: | pnpm i pnpm exec playwright install --with-deps @@ -72,14 +73,12 @@ jobs: pnpm exec playwright install chromium --with-deps pnpm run test-ui --project=chromium # On release, create release - - - name: Rename to etherpad-lite-win.zip - shell: powershell - run: mv etherpad-win.zip etherpad-lite-win.zip - name: Generate Changelog if: ${{startsWith(github.ref, 'refs/tags/v') }} working-directory: bin run: pnpm run generateChangelog ${{ github.ref }} > ${{ github.workspace }}-CHANGELOG.txt + - name: Output changelog + run: cat ${{ github.workspace }}-CHANGELOG.txt - name: Release uses: softprops/action-gh-release@v2 if: ${{startsWith(github.ref, 'refs/tags/v') }} From 5b089211d46b9477680de2bb095956ce57e3c920 Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Thu, 8 Aug 2024 22:39:39 +0200 Subject: [PATCH 4/8] Cache playwright --- .github/workflows/frontend-admin-tests.yml | 7 +++++++ .github/workflows/frontend-tests.yml | 21 +++++++++++++++++++++ .github/workflows/windows.yml | 2 +- 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/workflows/frontend-admin-tests.yml b/.github/workflows/frontend-admin-tests.yml index f6fc8c9c286..a306d561d95 100644 --- a/.github/workflows/frontend-admin-tests.yml +++ b/.github/workflows/frontend-admin-tests.yml @@ -49,6 +49,13 @@ jobs: key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pnpm-store- + - name: Cache playwright binaries + uses: actions/cache@v3 + id: playwright-cache + with: + path: | + ~/.cache/ms-playwright + key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }} - name: Only install direct dependencies run: pnpm config set auto-install-peers false #- diff --git a/.github/workflows/frontend-tests.yml b/.github/workflows/frontend-tests.yml index 12df40fb543..0b15bf3a973 100644 --- a/.github/workflows/frontend-tests.yml +++ b/.github/workflows/frontend-tests.yml @@ -56,6 +56,13 @@ jobs: - name: Create settings.json run: cp ./src/tests/settings.json settings.json + - name: Cache playwright binaries + uses: actions/cache@v3 + id: playwright-cache + with: + path: | + ~/.cache/ms-playwright + key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }} - name: Run the frontend tests shell: bash run: | @@ -119,6 +126,13 @@ jobs: run: echo "::set-output name=sha_short::$(git rev-parse --short ${{ github.sha }})" - name: Create settings.json run: cp ./src/tests/settings.json settings.json + - name: Cache playwright binaries + uses: actions/cache@v3 + id: playwright-cache + with: + path: | + ~/.cache/ms-playwright + key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }} - name: Run the frontend tests shell: bash run: | @@ -160,6 +174,13 @@ jobs: uses: actions/setup-node@v4 with: node-version: 22 + - name: Cache playwright binaries + uses: actions/cache@v3 + id: playwright-cache + with: + path: | + ~/.cache/ms-playwright + key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }} - uses: pnpm/action-setup@v4 name: Install pnpm with: diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 9d121bf2c3b..46916ac6b34 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -74,7 +74,7 @@ jobs: pnpm run test-ui --project=chromium # On release, create release - name: Generate Changelog - if: ${{startsWith(github.ref, 'refs/tags/v') }} + #if: ${{startsWith(github.ref, 'refs/tags/v') }} working-directory: bin run: pnpm run generateChangelog ${{ github.ref }} > ${{ github.workspace }}-CHANGELOG.txt - name: Output changelog From e1feaa0e9ebcc50b12cf5177cb47a445253e2077 Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Thu, 8 Aug 2024 22:48:57 +0200 Subject: [PATCH 5/8] Fixed log. --- bin/generateReleaseNotes.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/generateReleaseNotes.ts b/bin/generateReleaseNotes.ts index 132853cd6f1..0e4604b7c18 100644 --- a/bin/generateReleaseNotes.ts +++ b/bin/generateReleaseNotes.ts @@ -14,8 +14,6 @@ if (!tagVar) { process.exit(1) } -console.log("Tag",tagVar) - tagVar = tagVar.replace("refs/tags/v", "") let startNum = -1 @@ -38,4 +36,4 @@ for (const line of changelogLines) { } let currentReleaseNotes = changelogLines.slice(startNum, endline).join('\n') -console.log("Generated changelog",currentReleaseNotes) +console.log(currentReleaseNotes) From d86efe449e47d67dbbb673e1dbaf3b67403038e7 Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Thu, 8 Aug 2024 22:49:45 +0200 Subject: [PATCH 6/8] Remove test step. --- .github/workflows/windows.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 46916ac6b34..f79bac18ec9 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -74,11 +74,9 @@ jobs: pnpm run test-ui --project=chromium # On release, create release - name: Generate Changelog - #if: ${{startsWith(github.ref, 'refs/tags/v') }} + if: ${{startsWith(github.ref, 'refs/tags/v') }} working-directory: bin run: pnpm run generateChangelog ${{ github.ref }} > ${{ github.workspace }}-CHANGELOG.txt - - name: Output changelog - run: cat ${{ github.workspace }}-CHANGELOG.txt - name: Release uses: softprops/action-gh-release@v2 if: ${{startsWith(github.ref, 'refs/tags/v') }} From 8627b7e5c762e6396f853d85fdeb7074bed4e992 Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Thu, 8 Aug 2024 22:51:45 +0200 Subject: [PATCH 7/8] Added changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b7fe61ffad..ed7b3e2de98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# 2.2.0 +# 2.2.1 ### Notable enhancements and fixes From 133c94046e009d250a007fbe2c4a504d49a8f2cc Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Thu, 8 Aug 2024 22:52:13 +0200 Subject: [PATCH 8/8] bump version --- admin/package.json | 2 +- bin/package.json | 2 +- package.json | 2 +- src/package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/package.json b/admin/package.json index 7549654b380..e0e6d44f8f9 100644 --- a/admin/package.json +++ b/admin/package.json @@ -1,7 +1,7 @@ { "name": "admin", "private": true, - "version": "2.2.0", + "version": "2.2.1", "type": "module", "scripts": { "dev": "vite", diff --git a/bin/package.json b/bin/package.json index c6585bb8065..767e4065abe 100644 --- a/bin/package.json +++ b/bin/package.json @@ -1,6 +1,6 @@ { "name": "bin", - "version": "2.2.0", + "version": "2.2.1", "description": "", "main": "checkAllPads.js", "directories": { diff --git a/package.json b/package.json index 5f946f0abe1..7db48f4e93e 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,6 @@ "type": "git", "url": "https://github.com/ether/etherpad-lite.git" }, - "version": "2.2.0", + "version": "2.2.1", "license": "Apache-2.0" } diff --git a/src/package.json b/src/package.json index 92833cbc966..e98c92d7a07 100644 --- a/src/package.json +++ b/src/package.json @@ -134,6 +134,6 @@ "test-admin:ui": "cross-env NODE_ENV=production npx playwright test tests/frontend-new/admin-spec --ui --workers 1", "debug:socketio": "cross-env DEBUG=socket.io* node --require tsx/cjs node/server.ts" }, - "version": "2.2.0", + "version": "2.2.1", "license": "Apache-2.0" }