From db1c77ed5cc6df9cccf5aab320989c79394f3036 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 18 Jan 2026 00:36:01 +0800 Subject: [PATCH 01/20] fix working dir --- .github/workflows/samples-r.yaml | 2 -- samples/client/petstore/R/.openapi-generator-ignore | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/samples-r.yaml b/.github/workflows/samples-r.yaml index 630eb29a5b96..5ddfbdaa1b61 100644 --- a/.github/workflows/samples-r.yaml +++ b/.github/workflows/samples-r.yaml @@ -36,13 +36,11 @@ jobs: use-public-rspm: true - uses: r-lib/actions/setup-r-dependencies@v2 - working-directory: ${{ matrix.sample }} with: extra-packages: any::rcmdcheck needs: check - uses: r-lib/actions/check-r-package@v2 - working-directory: ${{ matrix.sample }} with: upload-snapshots: true build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")' diff --git a/samples/client/petstore/R/.openapi-generator-ignore b/samples/client/petstore/R/.openapi-generator-ignore index c62bb4c1e169..89d3eafd029a 100644 --- a/samples/client/petstore/R/.openapi-generator-ignore +++ b/samples/client/petstore/R/.openapi-generator-ignore @@ -23,3 +23,6 @@ #!docs/README.md # # +# +# +# From 57b8e5fb8562927fd0917e76df248f71ecc8396d Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 18 Jan 2026 00:38:06 +0800 Subject: [PATCH 02/20] fix dir --- .github/workflows/samples-r.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/samples-r.yaml b/.github/workflows/samples-r.yaml index 5ddfbdaa1b61..e4e05013b017 100644 --- a/.github/workflows/samples-r.yaml +++ b/.github/workflows/samples-r.yaml @@ -31,7 +31,6 @@ jobs: run: | sudo echo "127.0.0.1 petstore.swagger.io" | sudo tee -a /etc/hosts - uses: r-lib/actions/setup-r@v2 - working-directory: ${{ matrix.sample }} with: use-public-rspm: true From d7a8c2eb764b64378a066bd9d48c7f4603f32a87 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 18 Jan 2026 00:49:12 +0800 Subject: [PATCH 03/20] build locally --- .github/workflows/samples-r.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/samples-r.yaml b/.github/workflows/samples-r.yaml index e4e05013b017..83360d2afdcd 100644 --- a/.github/workflows/samples-r.yaml +++ b/.github/workflows/samples-r.yaml @@ -34,6 +34,10 @@ jobs: with: use-public-rspm: true + - name: Build + run: devtools::build() + shell: Rscript {0} + - uses: r-lib/actions/setup-r-dependencies@v2 with: extra-packages: any::rcmdcheck From aef31a92d8ecabfda8e5fab54384201a37d05620 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 18 Jan 2026 00:55:01 +0800 Subject: [PATCH 04/20] install devtools --- .github/workflows/samples-r.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/samples-r.yaml b/.github/workflows/samples-r.yaml index 83360d2afdcd..991f80bf1e8e 100644 --- a/.github/workflows/samples-r.yaml +++ b/.github/workflows/samples-r.yaml @@ -34,6 +34,10 @@ jobs: with: use-public-rspm: true + - name: Install devtools + run: install.packages("devtools") + shell: Rscript {0} + - name: Build run: devtools::build() shell: Rscript {0} From 1989b454d3c053aa58ac0df22e34cea487c10092 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 18 Jan 2026 01:00:42 +0800 Subject: [PATCH 05/20] set dir --- .github/workflows/samples-r.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/samples-r.yaml b/.github/workflows/samples-r.yaml index 991f80bf1e8e..c27cae81d21b 100644 --- a/.github/workflows/samples-r.yaml +++ b/.github/workflows/samples-r.yaml @@ -39,7 +39,7 @@ jobs: shell: Rscript {0} - name: Build - run: devtools::build() + run: devtools::build("${{ matrix.samples }}") shell: Rscript {0} - uses: r-lib/actions/setup-r-dependencies@v2 From fd2e520182a2fea7fd11791e8b73a645215bd770 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 18 Jan 2026 01:10:44 +0800 Subject: [PATCH 06/20] set dir --- .github/workflows/samples-r.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/samples-r.yaml b/.github/workflows/samples-r.yaml index c27cae81d21b..c4fcb3399197 100644 --- a/.github/workflows/samples-r.yaml +++ b/.github/workflows/samples-r.yaml @@ -37,10 +37,12 @@ jobs: - name: Install devtools run: install.packages("devtools") shell: Rscript {0} + working-directory: ${{ matrix.sample }} - name: Build - run: devtools::build("${{ matrix.samples }}") + run: devtools::build() shell: Rscript {0} + working-directory: ${{ matrix.sample }} - uses: r-lib/actions/setup-r-dependencies@v2 with: From dcce326a304a9b87048ebebf187b87a246354a20 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 18 Jan 2026 01:16:38 +0800 Subject: [PATCH 07/20] set current dir --- .github/workflows/samples-r.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/samples-r.yaml b/.github/workflows/samples-r.yaml index c4fcb3399197..15248afe03f6 100644 --- a/.github/workflows/samples-r.yaml +++ b/.github/workflows/samples-r.yaml @@ -45,6 +45,7 @@ jobs: working-directory: ${{ matrix.sample }} - uses: r-lib/actions/setup-r-dependencies@v2 + working-directory: ${{ matrix.sample }} with: extra-packages: any::rcmdcheck needs: check From 0330351ea8b300e088dc3151b7d9e04a219257e8 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 18 Jan 2026 01:18:45 +0800 Subject: [PATCH 08/20] set current dir --- .github/workflows/samples-r.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/samples-r.yaml b/.github/workflows/samples-r.yaml index 15248afe03f6..2a89083c9278 100644 --- a/.github/workflows/samples-r.yaml +++ b/.github/workflows/samples-r.yaml @@ -44,13 +44,14 @@ jobs: shell: Rscript {0} working-directory: ${{ matrix.sample }} - - uses: r-lib/actions/setup-r-dependencies@v2 + - uses: r-lib/actions/setup-r-dependencies working-directory: ${{ matrix.sample }} with: extra-packages: any::rcmdcheck needs: check - - uses: r-lib/actions/check-r-package@v2 + - uses: r-lib/actions/check-r-package + working-directory: ${{ matrix.sample }} with: upload-snapshots: true build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")' From 17b8d9a34cbd134191fd3c25d831d770c3776e23 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 18 Jan 2026 01:21:32 +0800 Subject: [PATCH 09/20] set current dir --- .github/workflows/samples-r.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/samples-r.yaml b/.github/workflows/samples-r.yaml index 2a89083c9278..ce4bf655b923 100644 --- a/.github/workflows/samples-r.yaml +++ b/.github/workflows/samples-r.yaml @@ -45,14 +45,14 @@ jobs: working-directory: ${{ matrix.sample }} - uses: r-lib/actions/setup-r-dependencies - working-directory: ${{ matrix.sample }} with: + working-directory: ${{ matrix.sample }} extra-packages: any::rcmdcheck needs: check - uses: r-lib/actions/check-r-package - working-directory: ${{ matrix.sample }} with: + working-directory: ${{ matrix.sample }} upload-snapshots: true build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")' From 9e598996b66784ddb5a6787e4ba0a463e3e1abee Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 18 Jan 2026 01:23:18 +0800 Subject: [PATCH 10/20] set version --- .github/workflows/samples-r.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/samples-r.yaml b/.github/workflows/samples-r.yaml index ce4bf655b923..f5b3cee4a9be 100644 --- a/.github/workflows/samples-r.yaml +++ b/.github/workflows/samples-r.yaml @@ -44,13 +44,13 @@ jobs: shell: Rscript {0} working-directory: ${{ matrix.sample }} - - uses: r-lib/actions/setup-r-dependencies + - uses: r-lib/actions/setup-r-dependencies@v2 with: working-directory: ${{ matrix.sample }} extra-packages: any::rcmdcheck needs: check - - uses: r-lib/actions/check-r-package + - uses: r-lib/actions/check-r-package@v2 with: working-directory: ${{ matrix.sample }} upload-snapshots: true From e0a822448bbd840601bc297830ee3b848ccfec45 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 18 Jan 2026 01:31:44 +0800 Subject: [PATCH 11/20] show error only --- .github/workflows/samples-r.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/samples-r.yaml b/.github/workflows/samples-r.yaml index f5b3cee4a9be..2ba60f1baaeb 100644 --- a/.github/workflows/samples-r.yaml +++ b/.github/workflows/samples-r.yaml @@ -55,4 +55,5 @@ jobs: working-directory: ${{ matrix.sample }} upload-snapshots: true build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")' + error-on: '"error"' From 7d20114b840787b4450f6a60a508267ade2b3d77 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 18 Jan 2026 01:35:54 +0800 Subject: [PATCH 12/20] trigger build failure --- samples/client/petstore/R/R/animal.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/samples/client/petstore/R/R/animal.R b/samples/client/petstore/R/R/animal.R index cf2e97f9af30..14b6baee2e15 100644 --- a/samples/client/petstore/R/R/animal.R +++ b/samples/client/petstore/R/R/animal.R @@ -1,3 +1,5 @@ +sdlfkaj;kldsfj;kl;sdj + #' Create a new Animal #' #' @description From 769951c4480beea60431db6384bbd29de0877328 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 18 Jan 2026 01:41:07 +0800 Subject: [PATCH 13/20] Revert "trigger build failure" This reverts commit 7d20114b840787b4450f6a60a508267ade2b3d77. --- samples/client/petstore/R/R/animal.R | 2 -- 1 file changed, 2 deletions(-) diff --git a/samples/client/petstore/R/R/animal.R b/samples/client/petstore/R/R/animal.R index 14b6baee2e15..cf2e97f9af30 100644 --- a/samples/client/petstore/R/R/animal.R +++ b/samples/client/petstore/R/R/animal.R @@ -1,5 +1,3 @@ -sdlfkaj;kldsfj;kl;sdj - #' Create a new Animal #' #' @description From 87ed80bec93ee896a1a370df3abd755595960c14 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 18 Jan 2026 01:41:42 +0800 Subject: [PATCH 14/20] trigger build failure testing petstore --- samples/client/petstore/R/test_petstore.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/client/petstore/R/test_petstore.R b/samples/client/petstore/R/test_petstore.R index 40b2f3588028..11f04969434d 100644 --- a/samples/client/petstore/R/test_petstore.R +++ b/samples/client/petstore/R/test_petstore.R @@ -5,7 +5,7 @@ library(petstore) var_pet <- Pet$new("name_example", list("photoUrls_example"), 56, Category$new(56, "name_example"), list(Tag$new(56, "name_example")), "available") # Pet | Pet object that needs to be added to the store #Add a new pet to the store -api_instance <- PetApi$new() +api_instance <- PetApi$new2() # Configure OAuth2 access token for authorization: petstore_auth api_instance$api_client$access_token <- 'TODO_YOUR_ACCESS_TOKEN'; api_instance$api_client$username <- 'username'; From a969c0192d222389cf352e7028e18b8a88b0f54c Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 18 Jan 2026 01:48:30 +0800 Subject: [PATCH 15/20] install local package --- .github/workflows/samples-r.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/samples-r.yaml b/.github/workflows/samples-r.yaml index 2ba60f1baaeb..1b34d3e0824d 100644 --- a/.github/workflows/samples-r.yaml +++ b/.github/workflows/samples-r.yaml @@ -57,3 +57,7 @@ jobs: build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")' error-on: '"error"' + - name: Install local package + run: R CMD INSTALL --preclean *tar.gz + shell: bash # Ensure correct shell for command execution + working-directory: ${{ matrix.sample }} From 5f9b1ef37d294b5197d988dd17797f610b4f27a2 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 18 Jan 2026 01:52:59 +0800 Subject: [PATCH 16/20] install local package --- .github/workflows/samples-r.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/samples-r.yaml b/.github/workflows/samples-r.yaml index 1b34d3e0824d..9309fd272859 100644 --- a/.github/workflows/samples-r.yaml +++ b/.github/workflows/samples-r.yaml @@ -58,6 +58,6 @@ jobs: error-on: '"error"' - name: Install local package - run: R CMD INSTALL --preclean *tar.gz + run: R CMD INSTALL . shell: bash # Ensure correct shell for command execution working-directory: ${{ matrix.sample }} From da865ca13beeb7cb7c42543289300c5b04a0f4e6 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 18 Jan 2026 01:58:50 +0800 Subject: [PATCH 17/20] trigger build failure --- samples/client/petstore/R/test_petstore.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/client/petstore/R/test_petstore.R b/samples/client/petstore/R/test_petstore.R index 11f04969434d..c1b8d9716a5c 100644 --- a/samples/client/petstore/R/test_petstore.R +++ b/samples/client/petstore/R/test_petstore.R @@ -5,7 +5,7 @@ library(petstore) var_pet <- Pet$new("name_example", list("photoUrls_example"), 56, Category$new(56, "name_example"), list(Tag$new(56, "name_example")), "available") # Pet | Pet object that needs to be added to the store #Add a new pet to the store -api_instance <- PetApi$new2() +api_instance <- PetApi2$new() # Configure OAuth2 access token for authorization: petstore_auth api_instance$api_client$access_token <- 'TODO_YOUR_ACCESS_TOKEN'; api_instance$api_client$username <- 'username'; From 008d23bcc24ee22ccff6b779628b89aecf54820e Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 18 Jan 2026 02:05:17 +0800 Subject: [PATCH 18/20] test petstore localhost --- .github/workflows/samples-r.yaml | 6 +++--- samples/client/petstore/R/test_petstore.R | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/samples-r.yaml b/.github/workflows/samples-r.yaml index 9309fd272859..f69aa77f5489 100644 --- a/.github/workflows/samples-r.yaml +++ b/.github/workflows/samples-r.yaml @@ -27,9 +27,9 @@ jobs: SWAGGER_BASE_PATH: /v2 steps: - uses: actions/checkout@v5 - - name: Add hosts to /etc/hosts - run: | - sudo echo "127.0.0.1 petstore.swagger.io" | sudo tee -a /etc/hosts + #- name: Add hosts to /etc/hosts + # run: | + # sudo echo "127.0.0.1 petstore.swagger.io" | sudo tee -a /etc/hosts - uses: r-lib/actions/setup-r@v2 with: use-public-rspm: true diff --git a/samples/client/petstore/R/test_petstore.R b/samples/client/petstore/R/test_petstore.R index c1b8d9716a5c..40b2f3588028 100644 --- a/samples/client/petstore/R/test_petstore.R +++ b/samples/client/petstore/R/test_petstore.R @@ -5,7 +5,7 @@ library(petstore) var_pet <- Pet$new("name_example", list("photoUrls_example"), 56, Category$new(56, "name_example"), list(Tag$new(56, "name_example")), "available") # Pet | Pet object that needs to be added to the store #Add a new pet to the store -api_instance <- PetApi2$new() +api_instance <- PetApi$new() # Configure OAuth2 access token for authorization: petstore_auth api_instance$api_client$access_token <- 'TODO_YOUR_ACCESS_TOKEN'; api_instance$api_client$username <- 'username'; From 98776746ca13622078a0f6196ff6035989dc82f6 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 18 Jan 2026 02:08:43 +0800 Subject: [PATCH 19/20] Revert "test petstore localhost" This reverts commit 008d23bcc24ee22ccff6b779628b89aecf54820e. --- .github/workflows/samples-r.yaml | 6 +++--- samples/client/petstore/R/test_petstore.R | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/samples-r.yaml b/.github/workflows/samples-r.yaml index f69aa77f5489..9309fd272859 100644 --- a/.github/workflows/samples-r.yaml +++ b/.github/workflows/samples-r.yaml @@ -27,9 +27,9 @@ jobs: SWAGGER_BASE_PATH: /v2 steps: - uses: actions/checkout@v5 - #- name: Add hosts to /etc/hosts - # run: | - # sudo echo "127.0.0.1 petstore.swagger.io" | sudo tee -a /etc/hosts + - name: Add hosts to /etc/hosts + run: | + sudo echo "127.0.0.1 petstore.swagger.io" | sudo tee -a /etc/hosts - uses: r-lib/actions/setup-r@v2 with: use-public-rspm: true diff --git a/samples/client/petstore/R/test_petstore.R b/samples/client/petstore/R/test_petstore.R index 40b2f3588028..c1b8d9716a5c 100644 --- a/samples/client/petstore/R/test_petstore.R +++ b/samples/client/petstore/R/test_petstore.R @@ -5,7 +5,7 @@ library(petstore) var_pet <- Pet$new("name_example", list("photoUrls_example"), 56, Category$new(56, "name_example"), list(Tag$new(56, "name_example")), "available") # Pet | Pet object that needs to be added to the store #Add a new pet to the store -api_instance <- PetApi$new() +api_instance <- PetApi2$new() # Configure OAuth2 access token for authorization: petstore_auth api_instance$api_client$access_token <- 'TODO_YOUR_ACCESS_TOKEN'; api_instance$api_client$username <- 'username'; From 0012bc6b870fa80f356bd401f8513cd683e9cb24 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sun, 18 Jan 2026 02:09:19 +0800 Subject: [PATCH 20/20] undo test_petstore.R --- samples/client/petstore/R/test_petstore.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/client/petstore/R/test_petstore.R b/samples/client/petstore/R/test_petstore.R index c1b8d9716a5c..40b2f3588028 100644 --- a/samples/client/petstore/R/test_petstore.R +++ b/samples/client/petstore/R/test_petstore.R @@ -5,7 +5,7 @@ library(petstore) var_pet <- Pet$new("name_example", list("photoUrls_example"), 56, Category$new(56, "name_example"), list(Tag$new(56, "name_example")), "available") # Pet | Pet object that needs to be added to the store #Add a new pet to the store -api_instance <- PetApi2$new() +api_instance <- PetApi$new() # Configure OAuth2 access token for authorization: petstore_auth api_instance$api_client$access_token <- 'TODO_YOUR_ACCESS_TOKEN'; api_instance$api_client$username <- 'username';