Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.1.1

- Use composal.com by default while preserving explicit legacy and custom API origins.

## 1.1.0

- Track one grouped saved-Scenario Run with `test-run-id`, replacing retired sweep IDs.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ By default the action waits up to 15 minutes. Passed or explicitly skipped reque
| `sha` | PR head or branch push | Full deployed commit SHA. PR heads and branch pushes are inferred; supply it for other event types. |
| `wait` | `'true'` | Wait for results; `'false'` only requests verification. |
| `timeout` | `'15'` | Wait limit in minutes, between 1 and 60. Set the job timeout higher. |
| `api-url` | `https://composal.ai` | HTTPS API origin, for installations using another endpoint. |
| `api-url` | `https://composal.com` | HTTPS API origin, for installations using another endpoint. |

Outputs: `url` (PR history or registered branch environment), `pull-request-id`, `run-id`, `test-run-id` (when started), `environment-id` (branch registration), and `status`. The workflow summary links to the full results. Critical/high issue recordings remain authenticated links in Verify.

Expand All @@ -129,13 +129,13 @@ The `1` tag is the supported major release. To publish an update from the Vex mo
## GitLab CI

For GitLab.com merge request pipelines, include
`https://composal.ai/ci/verify/v1/gitlab.yml` and extend `.composal-verify`
`https://composal.com/ci/verify/v1/gitlab.yml` and extend `.composal-verify`
after your preview deployment. The copyable configuration in your project’s PR
Testing includes direct MR pipeline rules and the connected Composal repo slug.
The helper reads GitLab's IID and source SHA, hands off the exact preview, waits
for its own verification run, and writes safe result IDs/links to
`composal-verify.json`.

See [GitLab setup and CI variables](https://composal.ai/docs/verify/source-control/gitlab#gitlab-ci)
See [GitLab setup and CI variables](https://composal.com/docs/verify/source-control/gitlab#gitlab-ci)
for dotenv handoff, fork and synthetic-commit restrictions, merge protection,
and CLI/API examples.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ inputs:
default: '15'
api-url:
description: Composal API origin.
default: https://composal.ai
default: https://composal.com
outputs:
url:
description: Link to this PR's verification history.
Expand Down
2 changes: 1 addition & 1 deletion verify.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function configuration(inputs, event, context) {
if (!['https:', 'http:'].includes(preview.protocol) || preview.username || preview.password)
throw new Error('preview-url must be an HTTP(S) URL without embedded credentials.')
}
const base = new URL(inputs['api-url'] || 'https://composal.ai')
const base = new URL(inputs['api-url'] || 'https://composal.com')
if (
base.protocol !== 'https:' ||
base.username ||
Expand Down
9 changes: 8 additions & 1 deletion verify.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ test('hands a deployed URL to the exact request, waits, and publishes the groupe
assert.equal(api.calls[0].redirect, 'error')
assert.equal(result.status, 'passed')
assert.equal(result['test-run-id'], 'run_grouped_1')
assert.equal(result.url, 'https://composal.ai/acme/verify/pull-requests/vpr_1')
assert.equal(result.url, 'https://composal.com/acme/verify/pull-requests/vpr_1')
assert.deepEqual(
updates.map((value) => value.status),
['queued', 'waiting_for_preview', 'preparing', 'prepared', 'queued', 'running', 'passed']
Expand Down Expand Up @@ -370,3 +370,10 @@ test('requires a Composal project and never infers it from a GitHub repository',
assert.equal(config({ repository: 'ignored-repository' }).project, 'storefront')
assert.equal(config({ repository: 'ignored-repository' }).repository, undefined)
})


test('explicit legacy and custom API origins remain authoritative', () => {
for (const base of ['https://composal.ai', 'https://private.example']) {
assert.equal(config({ 'api-url': base }).base, base)
}
})
Loading