Skip to content

Create globs for config file #128

Description

@ruocco-l

apify-test-tools.config.json requires every actor entry to repeat shared fields (e.g. tokenEnvVar) individually, even when the value is identical across most/all actors. This gets worse as we add more shared per-actor config (e.g. notification configs).

Solution

Add an overrides array that applies shared field values to actors by glob match, instead of repeating them per entry. The concrete actors array (literal folder + actorFullName) is unchanged.

Design decisions:

  • Two independent glob types: folder glob and actorFullName glob. * = all actors (just a glob with no literal segments, nothing special-cased).
  • Precedence (highest to lowest):
    1. Literal value on the actor entry itself (in actors array) — never overwritten by an override.
    2. actorFullName glob override.
    3. folder glob override.
    4. Within the same glob type, last matching entry in the array wins.

Activity

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

Metadata

Metadata

Assignees

Labels

v1: necessaryThis issue must be solved to migrate to v1

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions