Skip to content

Docker build workflow takes a really long time on each PR #1674

Closed

Description

@andygrove

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
I get frustrated waiting for the docker build workflow to run on PRs.

Describe the solution you'd like

  • Do we still need to run this?
  • Do we still need to run this on every PR
  • Could we make it faster? debug build instead of release build?

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Activity

  1. added
    enhancement
    on May 9, 2026
  2. andygrove commented on May 9, 2026

    @andygrove
    MemberAuthor

    the scripts and docker files have been updated very infrequently over the past couple of years. I guess there is the trade off of checking on every PR versus checking at release time as part of verifying release candidates.

  3. milenkovicm commented on May 9, 2026

    @milenkovicm
    Contributor

    it used to take up to 30 mins until recently

  4. milenkovicm commented on May 10, 2026

    @milenkovicm
    Contributor

    if i'm not mistaken docker build will run ./dev/build-ballista-docker.sh

    which will run

    docker build -t "apache/datafusion-ballista-standalone:latest" -f dev/docker/ballista-standalone.Dockerfile .
    docker build -t "apache/datafusion-ballista-scheduler:latest" -f dev/docker/ballista-scheduler.Dockerfile .
    docker build -t "apache/datafusion-ballista-executor:latest" -f dev/docker/ballista-executor.Dockerfile .
    docker build -t "apache/datafusion-ballista-cli:latest" -f dev/docker/ballista-cli.Dockerfile .
    docker build -t "apache/datafusion-ballista-benchmarks:latest" -f dev/docker/ballista-benchmarks.Dockerfile .
    

    question is do we need to build ballista-standalone and ballista-benchmarks ?

  5. martin-g commented on May 14, 2026

    @martin-g
    Member

    https://github.com/apache/datafusion-ballista/actions/runs/25859434910/job/75985395633?pr=1704
    The Docker build finishes with:

    ...
    #12 exporting layers
    #12 exporting layers 0.7s done
    #12 writing image sha256:995929ff47bcd9c58be6a6697d582a74dba1c86e72a72b0f9e55edd6d5d12b59 done
    #12 naming to docker.io/apache/datafusion-ballista-benchmarks:latest done
    #12 DONE 0.7s
    fatal: No names found, cannot describe anything.
    

    There is some FATAL problem at the end.

  6. martin-g commented on May 15, 2026

    @martin-g
    Member

    The Docker build is down to 10mins at #1705 !

  7. martin-g commented on May 15, 2026

    @martin-g
    Member

    https://github.com/orgs/apache/packages?tab=packages&q=ballista says that the last push of Docker images was at Jun 21st 2025 !
    It seems

    # release dockers only when there is a release tag
    export DOCKER_TAG="$(git describe --exact-match --tags $(git log -n1 --pretty='%h') || echo '')"
    if [[ $DOCKER_TAG =~ ^[0-9\.]+(-rc[0-9]+)?$ ]]
    is not triggered at release time.

  8. martin-g commented on May 15, 2026

    @martin-g
    Member

    question is do we need to build ballista-standalone and ballista-benchmarks ?

    No Docker images are pushed to the Docker registry for -cli and -benchmarks.

    docker push ghcr.io/apache/datafusion-ballista-standalone:$DOCKER_TAG
    docker push ghcr.io/apache/datafusion-ballista-executor:$DOCKER_TAG
    docker push ghcr.io/apache/datafusion-ballista-scheduler:$DOCKER_TAG
    echo "publishing docker tag latest"
    docker push ghcr.io/apache/datafusion-ballista-standalone:latest
    docker push ghcr.io/apache/datafusion-ballista-executor:latest
    docker push ghcr.io/apache/datafusion-ballista-scheduler:latest

    cargo build --profile "$RELEASE_FLAG" -p ballista-scheduler --bin ballista-scheduler
    cargo build --profile "$RELEASE_FLAG" -p ballista-executor --bin ballista-executor
    cargo build --profile "$RELEASE_FLAG" -p ballista-cli --bin ballista-cli
    cargo build --profile "$RELEASE_FLAG" -p ballista-benchmarks --bin tpch

    Should we skip their builds or push them too ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions