RexOps / RexOps/Rex

Make features scope dependent

Open
#664 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Currently all features and configuration options are global. So if someone activates a special feature in a module, this will be activated during the complete run and not only for functions that are in this module.

For example:

Module "A":

package A;
use Rex -feature => ['1.0'];

Rexfile:

use Rex -feature => ['0.57'];
use A;

Now the feature profile "1.0" is acticated and some functions the Rexfile author depends on might not work as expected anymore. This is why every module should use use Rex -base.

To prevent this and to allow module authors to load features only in their modules we need to make (at least) the feature flags scope dependent.

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 tracing how Rex feature flags and configuration options are loaded across modules and the Rexfile. Define the scoping behavior using the Module A and Rexfile example, then verify that each module's feature profile affects only functions in that module without changing the caller's profile.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
devops
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.