Skip to content

[CI][Docs] Docs preview jobs failing due to package not found #46673

Closed

Description

@AlenkaF

Describe the bug, including details regarding any error messages, version, and platform.

The crossbow docs preview jobs have started failing with message:

+ source_dir=/arrow/r
+ build_dir=/build
+ : ON
+ rm -rf /build/r
+ cp -aL /arrow/r /build/r
+ pushd /build/r
+ R CMD build .
/build/r /
* checking for file './DESCRIPTION' ... OK
* preparing 'arrow':
* checking DESCRIPTION meta-information ... OK
* cleaning src
* running 'cleanup'
* checking for LF line-endings in source and make files and shell scripts
* checking for empty or unneeded directories
* building 'arrow_20.0.0.9000.tar.gz'

++ command -v sudo
+ '[' -x /usr/bin/sudo ']'
+ SUDO=sudo
+ sudo env PKG_CONFIG_PATH=/tmp/local/lib/pkgconfig: R CMD INSTALL '' arrow_20.0.0.9000.tar.gz
Error: ERROR: no packages specified

Error: `docker compose --file=/home/runner/work/crossbow/crossbow/arrow/docker-compose.yml run --rm -e SETUPTOOLS_SCM_PRETEND_VERSION=21.0.0.dev149 --volume /home/runner/work/crossbow/crossbow/build/:/build/ debian-docs` exited with a non-zero exit code 1, see the process log above.

Example: https://github.com/ursacomputing/crossbow/actions/runs/15385793337/job/43284065936

Component(s)

Continuous Integration, Documentation

Activity

  1. hiroyuki-sato commented on Jun 2, 2025

    @hiroyuki-sato
    Collaborator

    Hello, @AlenkaF

    It seems that this failure relates to my commit in #46527.

    I quoted ${INSTALL_ARGS} like "${INSTALL_ARGS}".
    https://github.com/apache/arrow/blob/main/ci/scripts/r_build.sh#L45

    As the result, when INSTALL_ARGS doesn't set,

    Before: R CMD INSTALL arrow_20.0.0.9000.tar.gz
    After: R CMD INSTALL '' arrow_20.0.0.9000.tar.gz

    -    PKG_CONFIG_PATH=${ARROW_HOME}/lib/pkgconfig:${PKG_CONFIG_PATH} \
    -      ${R_BIN} CMD INSTALL ${INSTALL_ARGS} arrow*.tar.gz
    +    PKG_CONFIG_PATH="${ARROW_HOME}/lib/pkgconfig:${PKG_CONFIG_PATH}" \
    +      "${R_BIN}" CMD INSTALL "${INSTALL_ARGS}" arrow*.tar.gz

    What do you think to set default option like

    : "${INSTALL_ARGS:=--with-keep.source --no-multiarch}"
    

    If this option set,

    This command will be

    • without INSTALL_ARGS: R CMD INSTALL ---with-keep.source --no-multiarch arrow_20.0.0.9000.tar.gz
    • with INSTALL_ARGS: R CMD INSTALL %REPLACE_NEW_INSTALL_ARGS% arrow_20.0.0.9000.tar.gz

    I don't familiar R. It asked ChatGPT ---with-keep.source --no-multiarch is safe.

  2. thisisnic commented on Jun 2, 2025

    @thisisnic
    Member

    I think that is fine.

    Best thing to do would be to submit a PR with that change incorporated and then test to see if build is successful on the jobs which use the r_build.sh script, which appears to only be the debian-docs jobs so you can run @github-actions crossbow submit debian-docs on the PR to run it. Or even just the docs build command. If the pkgdown site successfully builds in the preview then we're good.

  3. AlenkaF commented on Jun 2, 2025

    @AlenkaF
    MemberAuthor

    Thanks for the insight @hiroyuki-sato!
    I agree with what has been written in the previous comment by @thisisnic.

  4. hiroyuki-sato commented on Jun 3, 2025

    @hiroyuki-sato
    Collaborator

    @thisisnic @AlenkaF Thank you for your comment.

    I created the PR #46682.
    I finally set default parameter empty, not ---with-keep.source --no-multiarch.
    It keeps the current behavior.

    If we weren't using INSTALL_ARGS in the first place, we could just remove the parameter.
    (It seems that this parameter doesn't use now.)

  5. added 3 commits that reference this issue on Jun 3, 2025
  6. added a commit that references this issue on Jun 3, 2025
  7. kou commented on Jun 3, 2025

    @kou
    Member

    Issue resolved by pull request 46682
    #46682

  8. added this to the 21.0.0 milestone on Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions