Skip to content

fix: support MultiHeaders in DirectHTTPAction fake#21406

Merged
MStreet3 merged 2 commits intodevelopfrom
add/multiheaderFake
Mar 5, 2026
Merged

fix: support MultiHeaders in DirectHTTPAction fake#21406
MStreet3 merged 2 commits intodevelopfrom
add/multiheaderFake

Conversation

@wentzeld
Copy link
Contributor

@wentzeld wentzeld commented Mar 4, 2026

Summary

  • The DirectHTTPAction fake only iterated over input.GetHeaders() (deprecated), ignoring input.GetMultiHeaders()
  • Workflows using the new MultiHeaders proto field had empty headers during simulation, causing e2e test failures (e.g.
    fix: adds MultiHeaders to http package cre-cli#298)
  • Updated to match production behavior in capabilities/http_action/common/proxy.go: prefer MultiHeaders, fall back to deprecated
    Headers

Test plan

  The fake HTTP action only read the deprecated Headers field, ignoring
  MultiHeaders. This caused simulation tests to fail when workflows
  use the new MultiHeaders proto field. Matches the production behavior
  in capabilities/http_action/common/proxy.go by preferring MultiHeaders
  and falling back to Headers.
@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2026

I see you updated files related to core. Please run make gocs in the root directory to add a changeset as well as in the text include at least one of the following tags:

  • #added For any new functionality added.
  • #breaking_change For any functionality that requires manual action for the node to boot.
  • #bugfix For bug fixes.
  • #changed For any change to the existing functionality.
  • #db_update For any feature that introduces updates to database schema.
  • #deprecation_notice For any upcoming deprecation functionality.
  • #internal For changesets that need to be excluded from the final changelog.
  • #nops For any feature that is NOP facing and needs to be in the official Release Notes for the release.
  • #removed For any functionality/config that is removed.
  • #updated For any functionality that is updated.
  • #wip For any change that is not ready yet and external communication about it should be held off till it is feature complete.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2026

✅ No conflicts with other open PRs targeting develop

@trunk-io
Copy link

trunk-io bot commented Mar 5, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review is ineligible. To be eligible to request a review, you need a paid Copilot license, or your organization must enable Copilot code review.

@cl-sonarqube-production
Copy link

@MStreet3 MStreet3 closed this Mar 5, 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.

5 participants