From 2b02d343b53d186ef113928d72871c87e5bde444 Mon Sep 17 00:00:00 2001 From: kadami <86646883+kadamidev@users.noreply.github.com> Date: Tue, 15 Oct 2024 11:19:32 +0000 Subject: [PATCH 1/3] fix bug causing futuristic prepub generations --- desci-server/src/services/PublishPackage.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desci-server/src/services/PublishPackage.ts b/desci-server/src/services/PublishPackage.ts index 05ccd693..0feb56a9 100644 --- a/desci-server/src/services/PublishPackage.ts +++ b/desci-server/src/services/PublishPackage.ts @@ -71,9 +71,10 @@ class PublishPackageService { let nodeUuid = ensureUuidEndsWithDot(node.uuid); nodeUuid = nodeUuid.slice(0, -1); // const paddedTimestamp = unixTimestamp.padEnd(13, '0'); + const publishTime = demoMode ? Date.now().toString().slice(0, 10) - : await publishServices.retrieveBlockTimeByManifestCid(nodeUuid, usedManifestCid); + : (await publishServices.retrieveBlockTimeByManifestCid(nodeUuid, usedManifestCid)).slice(0, 10); const publishDate = PublishPackageService.convertUnixTimestampToDate(publishTime); const authors = manifest.authors?.map((author) => author.name); From 9ef5354fb75afc1e89be25227ea630c1d06413bc Mon Sep 17 00:00:00 2001 From: Sina Iman Date: Tue, 15 Oct 2024 13:34:35 +0200 Subject: [PATCH 2/3] lock ubuntu version for gh action --- .github/workflows/build-repo-server.yaml | 2 +- .github/workflows/build-server.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-repo-server.yaml b/.github/workflows/build-repo-server.yaml index 04c3cd86..c35c420e 100644 --- a/.github/workflows/build-repo-server.yaml +++ b/.github/workflows/build-repo-server.yaml @@ -56,7 +56,7 @@ jobs: build-and-push: # needs: build-and-test name: Build and deploy - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: hashicorp/setup-terraform@v1 - name: Checkout diff --git a/.github/workflows/build-server.yaml b/.github/workflows/build-server.yaml index 8d2ea2a3..29afe40e 100644 --- a/.github/workflows/build-server.yaml +++ b/.github/workflows/build-server.yaml @@ -29,7 +29,7 @@ env: jobs: build-and-test: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 # container: # image: ubuntu:latest # options: --user 1001 @@ -77,7 +77,7 @@ jobs: build-and-push-images: # we build and push for every commit, even if tests pass, that way when tests pass deployment is short (run test + build in parallel) name: Build and push images - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: hashicorp/setup-terraform@v1 - name: Checkout @@ -186,7 +186,7 @@ jobs: needs: - build-and-test - build-and-push-images - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: hashicorp/setup-terraform@v1 - name: Checkout From d1aa22bd88781b74a36a4bf1288e3ade60143f99 Mon Sep 17 00:00:00 2001 From: Sina Iman Date: Tue, 15 Oct 2024 13:46:18 +0200 Subject: [PATCH 3/3] runs-on: ubuntu-22.04 --- .github/workflows/build-and-test.yaml | 2 +- .github/workflows/build-isolated-media-server.yaml | 2 +- .github/workflows/build-nodes-media.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 179b4ac8..f9047039 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -26,7 +26,7 @@ env: jobs: build-and-test: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 # container: # image: ubuntu:latest # options: --user 1001 diff --git a/.github/workflows/build-isolated-media-server.yaml b/.github/workflows/build-isolated-media-server.yaml index e963f5cf..73357e0e 100644 --- a/.github/workflows/build-isolated-media-server.yaml +++ b/.github/workflows/build-isolated-media-server.yaml @@ -27,7 +27,7 @@ env: jobs: build-and-push: name: Build and deploy - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: hashicorp/setup-terraform@v1 - name: Checkout diff --git a/.github/workflows/build-nodes-media.yaml b/.github/workflows/build-nodes-media.yaml index 87906af1..f251491e 100644 --- a/.github/workflows/build-nodes-media.yaml +++ b/.github/workflows/build-nodes-media.yaml @@ -26,7 +26,7 @@ env: jobs: build-and-push: name: Build and deploy - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: hashicorp/setup-terraform@v1 - name: Checkout