Skip to content

add emacs-nox [bnm2717]#1107

Merged
broland-hat merged 2 commits into
mainfrom
br_bnm2717_add_emacs_to_container
Sep 4, 2025
Merged

add emacs-nox [bnm2717]#1107
broland-hat merged 2 commits into
mainfrom
br_bnm2717_add_emacs_to_container

Conversation

@broland-hat
Copy link
Copy Markdown
Contributor

@broland-hat broland-hat commented Sep 3, 2025

Description

  • Add emacs-nox to image for developer velocity. It very helpful to have a command-line editor built-into the container for quick investigation.

Type of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactor
  • Documentation update
  • Other (please describe):

CI Pipeline Configuration

Configure CI behavior by applying the relevant labels:

Note

By default, the notebooks validation tests are skipped unless explicitly enabled.

Authorizing CI Runs

We use copy-pr-bot to manage authorization of CI
runs on NVIDIA's compute resources.

  • If a pull request is opened by a trusted user and contains only trusted changes, the pull request's code will
    automatically be copied to a pull-request/ prefixed branch in the source repository (e.g. pull-request/123)
  • If a pull request is opened by an untrusted user or contains untrusted changes, an NVIDIA org member must leave an
    /ok to test comment on the pull request to trigger CI. This will need to be done for each new commit.

Usage

# TODO: Add code snippet

Pre-submit Checklist

  • [NA] I have tested these changes locally
  • [NA] I have updated the documentation accordingly
  • [NA] I have added/updated tests as needed
  • [NA] All existing tests pass successfully

Signed-off-by: Brian Roland <broland@nvidia.com>
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented Sep 3, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Sep 3, 2025

Walkthrough

Added emacs-nox to the apt-get install list in the bionemo2-base stage of the Dockerfile. No other changes were made.

Changes

Cohort / File(s) Summary
Base image packages
Dockerfile
Added emacs-nox to the apt-get install list in the bionemo2-base stage; no other modifications.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

I hop through layers, light and lean,
A new tool tucked in build routine—
emacs-nox, no windows flare,
Just terminal calm and tidy air.
Thump-thump! The image hums along,
My paws add one more editor strong.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch br_bnm2717_add_emacs_to_container

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 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.
    • 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.
  • 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 the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

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

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit 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.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • 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.

@broland-hat broland-hat self-assigned this Sep 3, 2025
@broland-hat broland-hat marked this pull request as ready for review September 3, 2025 16:18
@broland-hat
Copy link
Copy Markdown
Contributor Author

/ok to test c88b6c2

@broland-hat
Copy link
Copy Markdown
Contributor Author

/okay to test c88b6c2

Copy link
Copy Markdown
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 (2)
Dockerfile (2)

45-56: Prefer installing editors only in dev images; add --no-install-recommends to keep base/release slim

Emacs in the base stage ships into release images, increasing size and CVE surface. Move it to the dev stage and disable APT recommends to reduce deps.

Apply in bionemo2-base (remove emacs and avoid recommends):

-apt-get install -qyy \
+apt-get install -qyy --no-install-recommends \
   libsndfile1 \
   ffmpeg \
   git \
   curl \
   pre-commit \
   sudo \
-  emacs-nox \
   gnupg \
   unzip \
   libsqlite3-dev

258-266: Install emacs-nox in the dev stage instead (developer-only), and use no-recommends

Keeps release images clean while delivering the intended developer velocity. Also reuses the best practice of trimming recommended packages.

 apt-get update -qy
-apt-get install -qyy \
-  sudo
+apt-get install -qyy --no-install-recommends \
+  sudo \
+  emacs-nox
 rm -rf /tmp/* /var/tmp/*
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 4a47964 and c88b6c2.

📒 Files selected for processing (1)
  • Dockerfile (1 hunks)

Copy link
Copy Markdown
Collaborator

@pstjohn pstjohn left a comment

Choose a reason for hiding this comment

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

not a vim user 😆 ? but sure, fine with me

@broland-hat
Copy link
Copy Markdown
Contributor Author

/okay to test 0b924d4

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Sep 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.62%. Comparing base (4854165) to head (0b924d4).
⚠️ Report is 294 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1107   +/-   ##
=======================================
  Coverage   80.62%   80.62%           
=======================================
  Files         157      157           
  Lines       11079    11079           
=======================================
  Hits         8932     8932           
  Misses       2147     2147           
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@broland-hat broland-hat added this pull request to the merge queue Sep 4, 2025
Merged via the queue into main with commit 4bf8d14 Sep 4, 2025
19 checks passed
@broland-hat broland-hat deleted the br_bnm2717_add_emacs_to_container branch September 4, 2025 20:00
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.

4 participants