Skip to content

Conversation

@afoley587
Copy link
Member

@afoley587 afoley587 commented Jul 17, 2025

What changes are proposed in this pull request?

I recently merged #6144. Locally, it worked because I had cached/built artifacts. In the real world, we need to build the app first > download the distribution > build from source.

This PR makes those fixes.

How is this patch tested? If it is not, please explain why.

Verified successful action

Release Notes

Is this a user-facing change that should be mentioned in the release notes?

  • No. You can skip the rest of this section.
  • Yes. Give a description of this change to be included in the release
    notes for FiftyOne users.

(Details in 1-2 sentences. You can just refer to another PR with a description
if this PR is part of a larger change.)

What areas of FiftyOne does this PR affect?

  • App: FiftyOne application changes
  • Build: Build and test infrastructure changes
  • Core: Core fiftyone Python library changes
  • Documentation: FiftyOne documentation changes
  • Other

Summary by CodeRabbit

  • Chores
    • Improved internal build workflow dependencies for more reliable artifact handling.
    • Updated artifact download and build configuration for Docker images.

@afoley587 afoley587 requested a review from a team as a code owner July 17, 2025 17:39
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 17, 2025

Walkthrough

A new build-app job was added to the GitHub Actions workflow, referencing an external reusable workflow. The build-image job was updated to depend on build-app, includes a new step to download a dist artifact, and changes the Docker build argument BUILD_TYPE from released to source.

Changes

File(s) Change Summary
.github/workflows/build-docker-internal.yml Added build-app job referencing external workflow; updated build-image job dependencies and steps; changed Docker build argument

Sequence Diagram(s)

sequenceDiagram
    participant GitHub Actions
    participant build-app (reusable workflow)
    participant build-image

    GitHub Actions->>build-app (reusable workflow): Trigger build-app job
    build-app (reusable workflow)-->>GitHub Actions: Produce dist artifact
    GitHub Actions->>build-image: Trigger build-image job (needs: build-app)
    build-image->>build-image: Download dist artifact
    build-image->>build-image: Build Docker image with BUILD_TYPE=source
Loading

Poem

A workflow hops to something new,
With build-app leading the queue.
Artifacts leap into dist/,
While Docker’s build type gets a twist.
Rabbits cheer as jobs align—
A pipeline hopping right on time! 🐇🚀


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@afoley587 afoley587 enabled auto-merge (squash) July 17, 2025 17:42
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
.github/workflows/build-docker-internal.yml (1)

13-13: Consider adding explicit failure-propagation.

needs: [build-app] enforces ordering but not status checks.
To prevent the image build from running on a failed app build, add:

if: needs.build-app.result == 'success'

This keeps minutes down and avoids misleading partial-success runs.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 98e0241 and ed2a008.

📒 Files selected for processing (1)
  • .github/workflows/build-docker-internal.yml (3 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: swheaton
PR: voxel51/fiftyone#0
File: :0-0
Timestamp: 2024-09-20T14:09:31.848Z
Learning: Ensure that code review comments on `fiftyone/core/cli.py` are accurate and relevant to the actual code changes.
Learnt from: swheaton
PR: voxel51/fiftyone#0
File: :0-0
Timestamp: 2024-10-17T01:03:25.080Z
Learning: Ensure that code review comments on `fiftyone/core/cli.py` are accurate and relevant to the actual code changes.
.github/workflows/build-docker-internal.yml (1)
Learnt from: kevin-dimichel
PR: voxel51/fiftyone#5173
File: .github/workflows/build-docs.yml:54-54
Timestamp: 2024-11-21T20:59:53.855Z
Learning: The `RO_FOT_FG_PAT` token used in `.github/workflows/build-docs.yml` has the necessary permissions to checkout the `voxel51/fiftyone-teams` repository.
🔇 Additional comments (3)
.github/workflows/build-docker-internal.yml (3)

8-10: Verify that build.yml is declared as a workflow_call.

The reusable workflow reference (uses: ./.github/workflows/build.yml) will only resolve if build.yml contains:

on:
  workflow_call:

Without it, this job will fail at runtime with the “no callable workflow” error.


29-33: Potential double-nesting of the dist directory.

actions/download-artifact extracts the artifact contents directly into path.
If the uploaded artifact itself is already a dist/ folder, the resulting layout will be dist/dist/*, breaking any later COPY commands in your Dockerfile that expect dist/*.

Confirm the artifact structure, or defensively flatten it:

      - name: Download dist
        uses: actions/download-artifact@v4
        with:
          name: dist
          path: .

59-59: Change to BUILD_TYPE=source alters the Dockerfile contract.

Double-check that every Dockerfile stage and conditional logic referenced by BUILD_TYPE supports the new source value; otherwise the build will silently fall back to defaults or error out late in the process.

Copy link
Contributor

@findtopher findtopher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@afoley587 afoley587 merged commit 8ad5705 into develop Jul 17, 2025
12 checks passed
@afoley587 afoley587 deleted the afoley/as-771-add-package-build branch July 17, 2025 18:32
sherpan pushed a commit to sherpan/fiftyone that referenced this pull request Jul 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants