RexOps / RexOps/Rex

Support late-binding of tasks with batch command

Open
#1,018 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Perl
Stars
737
Forks
214
PR merge metrics
No merged PRs in 30d

Description

Hi,

it seems theres an issue in version 1.4.0.
While defining batch tasks at the beginning of an Rexfile the following error occurs:

[2016-04-11 11:32:00] ERROR - Compile time errors:
[2016-04-11 11:32:00] ERROR - ERROR: no task: install at /opt/local/lib/perl5/site_perl/5.22/Rex/Batch.pm line 27, <> line 1.
[2016-04-11 11:32:00] ERROR - Compilation failed in require at /opt/local/lib/perl5/site_perl/5.22/Rex/CLI.pm line 747, <> line 1.

Workaround:
Defining batch tasks at the end of the Rexfile.

Best Regards

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure when batch tasks are defined near the beginning of the Rexfile, using the reported no-task error from Rex/Batch.pm. Read Rex/Batch.pm and the related loading path in Rex/CLI.pm; done means the same batch task definition works without the compilation error, while definitions at the end continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
cli, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.