Skip to content

Revert "Revert "Correctly use local template for tasks if available during dr run""#538

Open
carsongee wants to merge 7 commits into
mainfrom
revert-537-revert-530-carsongee/use_templated_taskfile
Open

Revert "Revert "Correctly use local template for tasks if available during dr run""#538
carsongee wants to merge 7 commits into
mainfrom
revert-537-revert-530-carsongee/use_templated_taskfile

Conversation

@carsongee

@carsongee carsongee commented May 29, 2026

Copy link
Copy Markdown
Contributor

Reverts #537

Changes since original merge

  • Added preference to use on-disk Taskfile over Taskfile.gen.yaml
  • Added fixture to test it
  • Added integration test to validate it will not loop using fixture
  • Added environment injection to escape loop

Note

Low Risk
Refactors taskfile generation/discovery only; no auth, data, or deployment path changes beyond matching local template behavior for dr run.

Overview
Task discovery is consolidated into task.NewDiscovery in internal/task, replacing duplicate logic in the compose command (createDiscovery / validateTemplatePath).

dr run now uses that shared path instead of only NewTaskDiscovery, so generated Taskfile.gen.yaml can use a project-root .Taskfile.template when no --template is passed. Auto-detection of that file moved from compose-time setup into Discover(), keyed off the project root.

Compose still passes an explicit template via the flag when set; empty template defers to runtime detection during discovery.

Reviewed by Cursor Bugbot for commit ebfbb1a. Configure here.

@github-actions github-actions Bot added the go Pull requests that update go code label May 29, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

license-eye has checked 376 files.

Valid Invalid Ignored Fixed
365 3 8 0
Click to see the invalid file list
  • cmd/task/run/testdata/recipe/.Taskfile.template
  • cmd/task/run/cmd_test.go
  • cmd/task/run/testdata/recipe/Taskfile.yml
Use this command to fix any missing license headers
```bash

docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header fix

</details>

Comment thread cmd/task/run/cmd_test.go
Comment thread cmd/task/run/testdata/recipe/Taskfile.yml
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

🚀 Smoke tests triggered! Running on Linux and Windows...

@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Some smoke tests failed.

❌ Linux: failure
✅ Windows: success

View run details

@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Some smoke tests failed.

❌ Linux: cancelled
✅ Windows: success

View run details

@victorborshak

Copy link
Copy Markdown
Contributor

@carsongee This looks good to me but please note that smoke tests are failing.

@carsongee carsongee force-pushed the revert-537-revert-530-carsongee/use_templated_taskfile branch from 8a32720 to 93bae1f Compare June 3, 2026 16:13
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

🚀 Smoke tests triggered! Running on Linux and Windows...

@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

🚀 Smoke tests triggered! Running on Linux and Windows...

@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Some smoke tests failed.

❌ Linux: failure
✅ Windows: success

View run details

@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Some smoke tests failed.

❌ Linux: failure
✅ Windows: success

View run details

1 similar comment
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Some smoke tests failed.

❌ Linux: failure
✅ Windows: success

View run details

carsongee and others added 7 commits June 5, 2026 10:30
@carsongee carsongee force-pushed the revert-537-revert-530-carsongee/use_templated_taskfile branch 2 times, most recently from 93bae1f to 6e7308b Compare June 5, 2026 17:28
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

🚀 Smoke tests triggered! Running on Linux and Windows...

@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

All smoke tests passed!

✅ Linux: success
✅ Windows: success

View run details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go Pull requests that update go code Ready for Review run-install-tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants