Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: improved README.md for build artifacts #5377

Merged
merged 1 commit into from
Oct 31, 2023
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
57 changes: 57 additions & 0 deletions CONTINUOUS_BUILD.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Continuous Build Artifacts

This repo contains build artifacts that are generated as part of the continues build pipeline.

Currently supported artifacts:

- [`@builder.io/qwik`](https://github.com/BuilderIO/qwik-build)
- [`@builder.io/qwik-city`](https://github.com/BuilderIO/qwik-city-build)
- [`@builder.io/qwik-labs`](https://github.com/BuilderIO/qwik-labs-build)

The build artifact is created if:

- Code is merged to `main` branch
- Code is merged to `build/*` branch

## How to use

The build artifacts are useful if you want to:

- Install an un-released change.
- Bisect which specific commit caused a regression.

## Install specific build artifact

To install a specific build artifact change you `package.json` like so (not all lines may be needed):

```json
{
"dependencies": {
"@builder.io/qwik": "github:BuilderIO/qwik-build#SHA",
"@builder.io/qwik-city": "github:BuilderIO/qwik-city-build#SHA",
"@builder.io/qwik-labs": "github:BuilderIO/qwik-labs-build#SHA"
}
}
```

Where `#SHA` is one of the following:

- `#SHA` - Install a specific build SHA. You can get the SHA from:
- [`@builder.io/qwik`](https://github.com/BuilderIO/qwik-build/commits/) commits
- [`@builder.io/qwik-city`](https://github.com/BuilderIO/qwik-city-build/commits/) commits
- [`@builder.io/qwik-labs`](https://github.com/BuilderIO/qwik-labs-build/commits/) commits
- `#build/name` (or `#main`) - Install a specific `build/*` (or `#main`) branch:
- [`@builder.io/qwik`](https://github.com/BuilderIO/qwik-build/branches/) branches
- [`@builder.io/qwik-city`](https://github.com/BuilderIO/qwik-city-build/branches/) branches
- [`@builder.io/qwik-labs`](https://github.com/BuilderIO/qwik-labs-build/branches/) branches
> NOTE: Package managers will treat any SHA in the lock file which is on the branch as valid, and so they will not auto upgrade to the latest. For this reason this is not recommended.

## Bisect for regression

You can bisect different commits to `main` to determine which specific change has cause the regression.

1. Install latest to get an upper mound
2. Install oldest known good to get a lower bound
3. Keep bisecting until you find a specific SHA where the code breaks.

When creating the issue please include which SHA has caused the regression.
1 change: 1 addition & 0 deletions scripts/qwik-save-artifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ async function prepare({ buildRepo, artifactsDir }: { buildRepo: string; artifac
...(await expand(artifactsDir, ['.gitignore', 'node_modules'])),
buildRepoDir
);
await $('cp', join(root, 'CONTINUOUS_BUILD.md'), 'README.md');
await $('git', 'add', '--all');
await $(
'git',
Expand Down
Loading