Skip to content

Expose --recreate flag to ddev env test#22521

Merged
dkirov-dd merged 4 commits intomasterfrom
dk/expose-recreate-flag
Feb 5, 2026
Merged

Expose --recreate flag to ddev env test#22521
dkirov-dd merged 4 commits intomasterfrom
dk/expose-recreate-flag

Conversation

@dkirov-dd
Copy link
Copy Markdown
Contributor

What does this PR do?

Motivation

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Add the qa/skip-qa label if the PR doesn't need to be tested during QA.
  • If you need to backport this PR to another branch, you can add the backport/<branch-name> label to the PR and it will automatically open a backport PR once this one is merged

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 3, 2026

⚠️ Recommendation: Add qa/skip-qa label

This PR does not modify any files shipped with the agent.

To help streamline the release process, please consider adding the qa/skip-qa label if these changes do not require QA testing.

@dkirov-dd dkirov-dd added the qa/skip-qa Automatically skip this PR for the next QA label Feb 3, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 029e8408aa

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines 149 to +152
test,
target_spec=f'{intg_name}:{env_name}',
pytest_args=pytest_args,
recreate=recreate,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Make --recreate actually rebuild E2E envs

The new --recreate flag here only flows into ddev test, which (per ddev/src/ddev/cli/test/__init__.py) just removes Hatch test environments; it never recreates the E2E environment that ddev env test is managing. Because start is still invoked with ignore_state=env_active, a running env is left untouched and stop is skipped afterward, so --recreate is effectively a no-op for the E2E environment when it’s already active. Users expecting a fresh E2E env (per the flag help text) will still test against stale containers.

Useful? React with 👍 / 👎.

@datadog-datadog-prod-us1

This comment has been minimized.

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 3, 2026

Codecov Report

❌ Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.48%. Comparing base (6e4dfd6) to head (a0bbad3).
⚠️ Report is 19 commits behind head on master.

Additional details and impacted files
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread AGENTS.md Outdated
@dkirov-dd dkirov-dd requested a review from NouemanKHAL February 4, 2026 16:51
@dkirov-dd dkirov-dd added this pull request to the merge queue Feb 5, 2026
Merged via the queue into master with commit fbfc31d Feb 5, 2026
337 checks passed
@dkirov-dd dkirov-dd deleted the dk/expose-recreate-flag branch February 5, 2026 16:50
github-actions Bot pushed a commit that referenced this pull request Feb 5, 2026
* Expose --recreate flag to `ddev env test`

* Add changelog and ingore-state handling

* Add AGENTS.md instructions for recreating testing environments

* Prefer `--recreate` in AGENT.md docs fbfc31d
lukepatrick pushed a commit to lukepatrick/integrations-core that referenced this pull request Mar 17, 2026
* Expose --recreate flag to `ddev env test`

* Add changelog and ingore-state handling

* Add AGENTS.md instructions for recreating testing environments

* Prefer `--recreate` in AGENT.md docs

Signed-off-by: lukepatrick <lukephilips@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ddev qa/skip-qa Automatically skip this PR for the next QA team/agent-integrations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants