-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/release' into dev
# Conflicts: # apps/cms/composer.lock # packages/drupal/silverback_ai/modules/silverback_image_ai/README.md # packages/drupal/test_content/content/node/a397ca48-8fad-411e-8901-0eba2feb989c.yml
- Loading branch information
Showing
73 changed files
with
294 additions
and
3,050 deletions.
There are no files selected for viewing
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
## How it works in general | ||
|
||
Turborepo allows to cache results for scripts from `package.json` files. | ||
|
||
Minimal example: | ||
|
||
- The `build` script compiles files from `src` folder and puts the result into | ||
`dist` folder | ||
- We can setup a Turborepo pipeline | ||
```json | ||
"build": { | ||
"inputs": ["src/**"], | ||
"outputs": ["dist/**"] | ||
} | ||
``` | ||
- On the first `turbo build` run Turborepo will | ||
- calculate hashes for files from `src` folder, and save them into cache, | ||
- save `dist` folder into cache. | ||
- On the second `turbo build` run Turborepo will compare `src` hashes with | ||
cache. If hashes do match, it will restore `dist` folder from the cache | ||
without running the `build` script. | ||
|
||
More in docs: https://turbo.build/repo/docs/core-concepts/caching | ||
|
||
## Turborepo setup: local vs CI | ||
|
||
Locally, Turborepo stores caches in `.turbo` folder. | ||
|
||
In CI, the caches are saved in Github artifacts. | ||
|
||
## Debug Turborepo issues in CI | ||
|
||
It can happen that some script fails in CI because of a misconfigured Turborepo | ||
pipeline. The following can be used in order to debug this locally: | ||
|
||
- Setup https://github.com/ducktors/turborepo-remote-cache locally | ||
- Run `turborepo-remote-cache` with `TURBO_TOKEN=local pnpm dev` | ||
- Run tests in the target repo with | ||
|
||
```shell | ||
# Clean the repo | ||
devbox run clean | ||
# Install dependencies | ||
pnpm i | ||
# Run tests with | ||
# - local Turborepo server | ||
# - Turborepo debug info | ||
# - simulated CI | ||
TURBO_API=http://0.0.0.0:3000 TURBO_TOKEN=local TURBO_TEAM=local TURBO_RUN_SUMMARY=true CI=true pnpm turbo:test | ||
``` |
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
packages/drupal/silverback_ai/config/install/silverback_ai.settings.yml
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
packages/drupal/silverback_ai/modules/silverback_image_ai/README.md
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...silverback_ai/modules/silverback_image_ai/config/install/silverback_image_ai.settings.yml
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
.../modules/silverback_image_ai/config/optional/system.action.media_alt_ai_update_action.yml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.