Skip to content

chore(acceptance): make imgproxy dev errors env config - #1789

Merged
ferhatelmas merged 1 commit into
masterfrom
ferhat/acceptance-imgproxy-dev-errors
Dec 2, 2026
Merged

ferhatelmas merged 1 commit into
masterfrom
ferhat/acceptance-imgproxy-dev-errors

Conversation

@ferhatelmas

Copy link
Copy Markdown
Member

What kind of change does this PR introduce?

chore

What is the current behavior?

The acceptance test for rendering an invalid HEIF image always expects a 400 InvalidRequest response.

What is the new behavior?

The test uses ACCEPTANCE_IMGPROXY_DEVELOPMENT_ERRORS_MODE to choose the expected response respective imgproxy development error config.

Additional context

Related to #1788

@ferhatelmas
ferhatelmas requested a review from a team as a code owner December 2, 2026 12:14
Copilot AI balanced review requested due to automatic review settings December 2, 2026 12:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The remote acceptance job omits the new development-errors-mode variable, causing false settings to default to true and the HEIF test to incorrectly expect 400 against production-mode imgproxy.

1 open issue
What changed in this PR

Makes invalid-HEIF acceptance expectations configurable for imgproxy development-error mode, complementing the v4 error mapping in #1788.

Changes:

  • Adds a configuration flag defaulting to true.
  • Expects HTTP 400 with development errors enabled, or 500 otherwise.
  • Documents the environment variable.
File Description
acceptance/​support/​config.ts Adds the development-error mode option.
acceptance/​specs/​render.test.ts Selects expected error responses based on the option.
acceptance/​README.md Documents configuration and expected behavior.

Review effort: Balanced

Comment thread acceptance/support/config.ts Resolved

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing blocking. The comments below are optional suggestions. There is no need to push a fix for them before merging.

Comment thread acceptance/support/config.ts Resolved
@ferhatelmas
ferhatelmas force-pushed the ferhat/acceptance-imgproxy-dev-errors branch from 0c173c6 to e572c23 Compare December 2, 2026 12:19
@coveralls

coveralls commented Dec 2, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 46879952179

Coverage remained the same at 88.855%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 19644
Covered Lines: 17980
Line Coverage: 91.53%
Relevant Branches: 12361
Covered Branches: 10458
Branch Coverage: 84.6%
Branches in Coverage %: Yes
Coverage Strength: 1276.67 hits per line

💛 - Coveralls

@ferhatelmas
ferhatelmas merged commit 6185eb1 into master Dec 2, 2026
38 checks passed
@ferhatelmas
ferhatelmas deleted the ferhat/acceptance-imgproxy-dev-errors branch December 2, 2026 13:12
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.

4 participants