Skip to content

[FEATURE] Added system environment variables for defining async Capture and Compare limits - #1626

Open
Patabugen wants to merge 2 commits into
garris:masterfrom
Patabugen:f/env-vars-for-async-limits
Open

Patabugen wants to merge 2 commits into
garris:masterfrom
Patabugen:f/env-vars-for-async-limits

Conversation

@Patabugen

@Patabugen Patabugen commented Sep 14, 2026

Copy link
Copy Markdown

The asyncCaptureLimit and asyncCompareLimits are hardware-dependant, and it would be useful to be able to set/override them per-environment rather than having to share them across all environments.

This PR adds support for setting environment variables which can be read to override backstop.json details.

I implemented it as getEnvironmentDetails so it can be easily expanded to other settings in future.

Docker

The environment variables need to be passed into the docker container, so I've made runDocker.js inject any that start with BACKSTOP_.

And I've added an {envs} placeholder so the user can use that if they override the dockerCommandTemplate

@Patabugen
Patabugen marked this pull request as draft September 14, 2026 14:19
@Patabugen
Patabugen marked this pull request as ready for review September 14, 2026 14:31
@Patabugen Patabugen changed the title [FEATURE] Added BACKSTOP_ASYNC_CAPTURE_LIMIT and BACKSTOP_ASYNC_COMPARE_LIMIT [FEATURE] Added system environment variables for defining async Capture and Compare limits Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant