Skip to content

INTER-2472: Update schema URL and harden sync script - #207

Merged
erayaydin merged 2 commits into
mainfrom
chore/openapi-repo-rename-inter-2472
Sep 29, 2026
Merged

erayaydin merged 2 commits into
mainfrom
chore/openapi-repo-rename-inter-2472

Conversation

@erayaydin

@erayaydin erayaydin commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

GitHub redirects repository URLs after a rename but explicitly not project GitHub Pages URLs, so sync.sh will start failing with a 404. This PR changes the default OpenAPI schema URL.

Alongside the URL change, use env bash shebang, so the script picks up bash from the correct environment. Resolve paths relative to the repository root, so the script no longer writes into whatever directory it is invoked from. Collect the curl flags into CURL_OPTS, gated on TRACE and ACTIONS_STEP_DEBUG so runs can be made verbose, and harden them with retry transient failures, refuse redirects that leave https and bound connect and transfer time so a stalled download cannot hang CI or local. Rename examplesList to examples, log the full URL being fetched rather than just the example path, so it is clear which base URL a run actually used, and log the schema download, which was previously silent.

Mark sync.sh executable. contributing.md documents running ./sync.sh, but the file was not executable, so that command failed with a permission error. This is pre-existing and unrelated to the rename.

Update the OpenAPI schema URL for the repository rename to `openapi`.

Use an `env bash` shebang so the script picks up bash from PATH rather than
whatever sits at /bin/bash. Resolve paths relative to the repository root, so
the script no longer writes into whatever directory it is invoked from.

Collect the curl flags into `CURL_OPTS`, gated on `TRACE` and
`ACTIONS_STEP_DEBUG` so runs can be made verbose, and harden them: retry
transient failures, refuse redirects that leave https, and bound connect and
transfer time so a stalled download cannot hang CI or a local run.

Rename `examplesList` to `examples` and log the full URL being fetched rather
than just the example path, so it is clear which base URL a run actually used.
Log the schema download, which was previously silent.

Mark the script executable. `contributing.md` documents `./sync.sh`, which
failed with a permission error because the file was not executable.

Related-Task: INTER-2472
@erayaydin
erayaydin requested a balanced review from Copilot September 24, 2026 18:36
@erayaydin erayaydin self-assigned this Sep 24, 2026
@changeset-bot

changeset-bot Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: fbb79e5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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.

Copilot review overview

🟡 Changes recommended

Silent curl failures need actionable diagnostics, and the prerequisite upstream PR remains unmerged.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 1 Low severity

Open (1)
What changed in this PR

Updates sync.sh for the planned OpenAPI repository rename and improves download reliability.

Changes:

  • Uses the renamed GitHub Pages schema URL.
  • Resolves paths from the repository root and marks the script executable.
  • Adds retries, timeouts, HTTPS redirect restrictions, and clearer logging.
File Description
sync.sh Updates schema synchronization URL, paths, curl options, and logging.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread sync.sh
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ This PR doesn't contain any changesets. If there are user-facing changes, don't forget to run:

pnpm exec changeset

to create a changeset.

@erayaydin
erayaydin marked this pull request as ready for review September 25, 2026 09:05
@erayaydin erayaydin changed the title [DO NOT MERGE] INTER-2472: Update schema URL and harden sync script INTER-2472: Update schema URL and harden sync script Sep 29, 2026
@erayaydin
erayaydin merged commit f18bbaa into main Sep 29, 2026
18 checks passed
@erayaydin
erayaydin deleted the chore/openapi-repo-rename-inter-2472 branch September 29, 2026 11:06
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.

3 participants