Skip to content

[CFX-5121] Fix issue with unexpected update for 'dr start' on empty directory#392

Merged
victorborshak merged 3 commits intodatarobot-oss:mainfrom
victorborshak:vborshak/fix-require-update-on-empty-directory
Mar 5, 2026
Merged

[CFX-5121] Fix issue with unexpected update for 'dr start' on empty directory#392
victorborshak merged 3 commits intodatarobot-oss:mainfrom
victorborshak:vborshak/fix-require-update-on-empty-directory

Conversation

@victorborshak
Copy link
Contributor

@victorborshak victorborshak commented Mar 4, 2026

RATIONALE

Before
Screenshot 2026-03-04 at 17 41 24

After
Screenshot 2026-03-04 at 17 41 37

CHANGES

PR Automation

Comment-Commands: Trigger CI by commenting on the PR:

  • /trigger-smoke-test or /trigger-test-smoke - Run smoke tests
  • /trigger-install-test or /trigger-test-install - Run installation tests

Labels: Apply labels to trigger workflows:

  • run-smoke-tests or go - Run smoke tests on demand (only works for non-forked PRs)

Important

For Forked PRs: If you're an external contributor, the run-smoke-tests label won't work. Only maintainers can trigger smoke tests on forked PRs by applying the approved-for-smoke-tests label after security review. Please comment requesting maintainer review if you need smoke tests to run.


Note

Low Risk
Low risk: small conditional change in dr start version-check flow plus new unit tests. Main risk is behavioral (fewer update prompts) if any repos rely on an empty minimum-version to force updates, which now won’t trigger.

Overview
dr start no longer triggers a self-update prompt when the repository doesn’t specify a minimum-version (e.g., running in an empty/non-repo directory), by gating the check on tool.MinimumVersion != "".

Adds cmd/start/model_test.go to validate that checkSelfVersion does not request self-update in an empty directory, and that when a versions.yaml requirement exists the code path executes without prompting for update in dev builds.

Written by Cursor Bugbot for commit 631a0d1. This will update automatically on new commits. Configure here.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 5, 2026

🔐 Smoke tests approved by maintainer

⏳ Running security scans before executing smoke tests with secrets...

A maintainer has approved this fork PR to run smoke tests. Security scans will run first.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 5, 2026

🔐 Smoke tests approved by maintainer

⏳ Running security scans before executing smoke tests with secrets...

A maintainer has approved this fork PR to run smoke tests. Security scans will run first.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 5, 2026

All smoke tests passed! (Fork PR)

✅ Security Scan: success
✅ Linux: success
✅ Windows: success

View run details

@github-actions
Copy link
Contributor

github-actions bot commented Mar 5, 2026

All smoke tests passed! (Fork PR)

✅ Security Scan: success
✅ Linux: success
✅ Windows: success

View run details

@victorborshak victorborshak merged commit bd8f960 into datarobot-oss:main Mar 5, 2026
62 of 63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants