Skip to content

fix(task): remove MISE_TASK_UNNEST functionality#6217

Merged
jdx merged 1 commit intomainfrom
rm-unnest
Sep 6, 2025
Merged

fix(task): remove MISE_TASK_UNNEST functionality#6217
jdx merged 1 commit intomainfrom
rm-unnest

Conversation

@jdx
Copy link
Owner

@jdx jdx commented Sep 6, 2025

It is no longer necessary that we have #6212

Copilot AI review requested due to automatic review settings September 6, 2025 21:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes the MISE_TASK_UNNEST functionality from the codebase, which was previously used to handle nested task output formatting. The removal eliminates complex regex-based unnesting logic that is no longer necessary.

  • Removes MISE_TASK_LEVEL environment variable and related logic
  • Simplifies task prefix formatting by removing unnesting conditionals
  • Eliminates regex-based output processing in prefix macros

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/task/mod.rs Removes conditional MISE_TASK_UNNEST prefix formatting logic
src/output.rs Removes regex and unnesting logic from prefix printing macros
src/env.rs Removes MISE_TASK_LEVEL environment variable definition
src/cli/run.rs Removes MISE_TASK_LEVEL checks and environment variable setting
e2e/tasks/test_task_unnest Deletes entire test file for unnesting functionality

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@@ -1,41 +1,19 @@
use regex::Regex;
use std::collections::HashSet;
Copy link

Copilot AI Sep 6, 2025

Choose a reason for hiding this comment

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

The regex import was removed but the HashSet import remains. Verify that HashSet is still used elsewhere in this file, otherwise it should also be removed.

Suggested change
use std::collections::HashSet;

Copilot uses AI. Check for mistakes.
It is no longer necessary that we have #6212
@jdx jdx enabled auto-merge (squash) September 6, 2025 21:32
@jdx jdx merged commit 3234b07 into main Sep 6, 2025
18 checks passed
@jdx jdx deleted the rm-unnest branch September 6, 2025 21:33
@github-actions
Copy link

github-actions bot commented Sep 6, 2025

Hyperfine Performance

mise x -- echo

Command Mean [ms] Min [ms] Max [ms] Relative
mise-2025.9.4 x -- echo 18.5 ± 0.3 17.9 21.0 1.00 ± 0.02
mise x -- echo 18.4 ± 0.3 18.0 21.9 1.00

mise env

Command Mean [ms] Min [ms] Max [ms] Relative
mise-2025.9.4 env 17.9 ± 0.3 17.4 21.5 1.00
mise env 18.0 ± 0.5 17.4 23.8 1.01 ± 0.03

mise hook-env

Command Mean [ms] Min [ms] Max [ms] Relative
mise-2025.9.4 hook-env 17.5 ± 0.6 17.0 25.7 1.00
mise hook-env 17.7 ± 0.4 17.1 20.3 1.01 ± 0.04

mise ls

Command Mean [ms] Min [ms] Max [ms] Relative
mise-2025.9.4 ls 15.9 ± 0.2 15.5 16.7 1.00
mise ls 16.0 ± 0.2 15.6 17.3 1.00 ± 0.02

xtasks/test/perf

Command mise-2025.9.4 mise Variance
install (cached) 162ms ✅ 100ms +62%
ls (cached) 61ms 60ms +1%
bin-paths (cached) 64ms 64ms +0%
task-ls (cached) 462ms 464ms +0%

✅ Performance improvement: install cached is 62%

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.

2 participants