Skip to content

Create globs for config file #128

Open

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

  1. self-assigned this
    on Sep 11, 2026
  2. added
    v1: necessary
    on Sep 11, 2026
  3. added this to the v1 milestone on Sep 23, 2026
  4. ruocco-l commented on Sep 23, 2026

    @ruocco-l
    ContributorAuthor

    This issue is on pause. We want to first collect feedback about the grouped layout for the config (see #143 ) and then decide if this configuration is necessary/valid addition.

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

Metadata

Metadata

Assignees

Labels

v1: necessary

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions