Add logic to replicate file content of Synthetics Tests with file uploads#477
Open
Add logic to replicate file content of Synthetics Tests with file uploads#477
Conversation
Contributor
Author
|
Can't me merged until Add endpoints to download and upload a file into Synthetics buckets for DDR is! |
heyronhay
approved these changes
Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requirements for Contributing to this repository
What does this PR do?
This PR adds support for replicating file uploads when syncing Synthetics tests between orgs.
Previously, tests with file uploads (API tests with multipart/form-data, multistep API tests, and browser tests with uploadFiles steps) would fail with 400 errors because we copied these tests that reference Bucket Keys in R1 not existing in R2 infra.
Description of the Change
When a Synthetics test contains uploaded files, the sync tool now:
/api/v2/synthetics/tests/{source_public_id}/files/download), which returns a presigned S3 URL for each file's bucketKey.config.request.files[]— single-step API testsconfig.steps[].request.files[]— multistep API testssteps[].params.files[]— browser test upload stepsDepends on Add endpoints to download and upload a file into Synthetics buckets for DDR
Alternate Designs
Possible Drawbacks
Verification Process
Run the

dd-sync-clion R1 for Synthetics tests with file uploadsThey have correctly been replicated in R2

You can compare the file's content from the AWS console
For R1 bucket path
For R2 bucket path
Additional Notes
Release Notes
Review checklist (to be filled by reviewers)
changelog/label attached. If applicable it should have thebackward-incompatiblelabel attached.do-not-merge/label attached.kind/andseverity/labels attached at least.