Skip to content

ci: harmonize MongoDB version used in CI, local development environment and init command and bump to v8 - #11704

Merged
gioboa merged 2 commits into
typeorm:masterfrom
pkuczynski:mongo-8
Oct 5, 2025
Merged

gioboa merged 2 commits into
typeorm:masterfrom
pkuczynski:mongo-8

Conversation

@pkuczynski

@pkuczynski pkuczynski commented Oct 2, 2025 •

Copy link
Copy Markdown
Member

Description of change

MongoDB 5.0 reached its End of Life (EOL) on October 1, 2024.

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • This pull request links relevant issues as Fixes #00000
  • There are new or updated unit tests validating the change
  • Documentation has been updated to reflect this change

Summary by CodeRabbit

  • Chores

    • Standardized the local development and generated Docker Compose environment to use MongoDB 8 for consistent behavior across setups.
  • Tests

    • Updated CI test workflow to run against MongoDB 8, aligning tests with the standardized environment and reducing environment-related discrepancies.

@coderabbitai

coderabbitai Bot commented Oct 2, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

MongoDB image tags were standardized to mongo:8 across CI (.github/workflows/tests-linux.yml), docker-compose.yml, and the Docker Compose template in src/commands/InitCommand.ts. No other configuration, control flow, or public/exported-entity changes were made.

Changes

Cohort / File(s) Summary
CI workflow
.github/workflows/tests-linux.yml
Updated MongoDB service image from mongo:5.0.31 to mongo:8.
Docker compose
docker-compose.yml
Updated mongodb service image from mongo:5.0.31 to mongo:8.
Init template
src/commands/InitCommand.ts
Updated Docker Compose template Mongo image from mongo:8.0.5 to mongo:8.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • OSA413
  • naorpeled
  • gioboa
  • sgarner

Poem

A rabbit nudges tags to eight,
Images shift and services wait.
CI hums soft, containers wake,
Compose files swap for compatibility's sake. 🥕
Hop—deploys feel light and great.

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title clearly and succinctly describes the main change of harmonizing and bumping the MongoDB version to v8 across CI, local development, and the init command without extraneous detail.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 547970a and ed69d14.

📒 Files selected for processing (2)
  • .github/workflows/tests-linux.yml (1 hunks)
  • src/commands/InitCommand.ts (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • src/commands/InitCommand.ts
  • .github/workflows/tests-linux.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: tests-linux (20) / mysql_mariadb
  • GitHub Check: formatting

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@pkg-pr-new

pkg-pr-new Bot commented Oct 2, 2025 •

Copy link
Copy Markdown

typeorm-sql-js-example

npm i https://pkg.pr.new/typeorm/typeorm@11704

commit: ed69d14

@gioboa gioboa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, thanks 👍

@naorpeled naorpeled left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM,
maybe worth keeping both tests for now until v1 so we know we're not breaking existing usages in Mongo v5, but not sure it's crucial

@pkuczynski

Copy link
Copy Markdown
Member Author

LGTM,
maybe worth keeping both tests for now until v1 so we know we're not breaking existing usages in Mongo v5, but not sure it's crucial

Which tests? I haven't changed any tests...

@naorpeled

Copy link
Copy Markdown
Member

LGTM,
maybe worth keeping both tests for now until v1 so we know we're not breaking existing usages in Mongo v5, but not sure it's crucial

Which tests? I haven't changed any tests...

Both versions* sorry, not sure why I wrote tests lol

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 76.433%. remained the same
when pulling ed69d14 on pkuczynski:mongo-8
into 2671579 on typeorm:master.

@gioboa
gioboa merged commit 181154a into typeorm:master Oct 5, 2025
@pkuczynski
pkuczynski deleted the mongo-8 branch November 10, 2025 10:19
ThbltLmr pushed a commit to ThbltLmr/typeorm that referenced this pull request Dec 2, 2025
mgohin pushed a commit to mgohin/typeorm that referenced this pull request Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants