Skip to content

Commit 2eee143

Browse files
committed
Print check output even on failure (throwaway)
1 parent d78f9ff commit 2eee143

1 file changed

Lines changed: 26 additions & 14 deletions

File tree

‎.github/workflows/debug-874.yml‎

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,29 +30,41 @@ jobs:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131
runner_os: ${{ runner.os }}
3232
cache_version: cache-v1
33-
- name: Diagnose workers and run example (unchanged)
34-
if: always()
35-
shell: bash
36-
run: |
37-
R CMD INSTALL --no-docs --no-multiarch . > install.log 2>&1 || tail -20 install.log
38-
Rscript .github/debug-874.R
3933
- name: R CMD check examples (unchanged)
4034
if: always()
4135
shell: bash
4236
run: |
37+
set +e
4338
R CMD build --no-build-vignettes --no-manual . > build.log 2>&1 || tail -20 build.log
44-
_R_CHECK_FORCE_SUGGESTS_=false R CMD check --no-tests --no-vignettes --no-build-vignettes --ignore-vignettes --no-manual mia_*.tar.gz > check1.log 2>&1
45-
grep -E "checking examples|Status:" check1.log
46-
grep -A12 "### Name: applyByModule" mia.Rcheck/mia-Ex.Rout | tail -12 || true
47-
grep -E "not found|BiocParallel errors" mia.Rcheck/mia-Ex.Rout || true
39+
mkdir -p unchanged && cd unchanged
40+
_R_CHECK_FORCE_SUGGESTS_=false R CMD check --no-tests --no-vignettes --no-build-vignettes --ignore-vignettes --no-manual ../mia_*.tar.gz > check.log 2>&1
41+
echo "exit: $?"
42+
grep -E "checking examples|Status:|ERROR" check.log
43+
grep -n -A40 "### Name: applyByModule" mia.Rcheck/mia-Ex.Rout | head -60
44+
exit 0
4845
- name: R CMD check examples (force(FUN))
4946
if: always()
5047
shell: bash
5148
run: |
52-
rm -rf mia.Rcheck mia_*.tar.gz
49+
set +e
50+
rm -f mia_*.tar.gz
5351
sed -i 's/^ res <- bplapply(idx, function(i) FUN(x\[i, \], ...))$/ force(FUN)\n res <- bplapply(idx, function(i) FUN(x[i, ], ...))/' R/applyByModule.R
5452
grep -n -B1 "res <- bplapply" R/applyByModule.R
5553
R CMD build --no-build-vignettes --no-manual . > build2.log 2>&1 || tail -20 build2.log
56-
_R_CHECK_FORCE_SUGGESTS_=false R CMD check --no-tests --no-vignettes --no-build-vignettes --ignore-vignettes --no-manual mia_*.tar.gz > check2.log 2>&1
57-
grep -E "checking examples|Status:" check2.log
58-
grep -E "not found|BiocParallel errors" mia.Rcheck/mia-Ex.Rout || echo "no worker error"
54+
mkdir -p forced && cd forced
55+
_R_CHECK_FORCE_SUGGESTS_=false R CMD check --no-tests --no-vignettes --no-build-vignettes --ignore-vignettes --no-manual ../mia_*.tar.gz > check.log 2>&1
56+
echo "exit: $?"
57+
grep -E "checking examples|Status:|ERROR" check.log
58+
grep -n -A40 "### Name: applyByModule" mia.Rcheck/mia-Ex.Rout | head -60
59+
exit 0
60+
- uses: actions/upload-artifact@v4
61+
if: always()
62+
with:
63+
name: debug-874-checks
64+
path: |
65+
unchanged/check.log
66+
unchanged/mia.Rcheck/00check.log
67+
unchanged/mia.Rcheck/mia-Ex.Rout
68+
forced/check.log
69+
forced/mia.Rcheck/00check.log
70+
forced/mia.Rcheck/mia-Ex.Rout

0 commit comments

Comments
 (0)