| chore: add commit header for bundled tool version updates (#6121) | 2 years ago |
| fix(ci): make npm ci resilient to buf.build idle timeouts (#8081) The `@buf/*` packages resolve from buf.build's BSR npm registry. The lockfile was missing `resolved`/`integrity` for `@buf/garden_grow-platform.bufbuild_es` and its transitive `@buf/bufbuild_protovalidate.bufbuild_es`, so every `npm ci` had to fetch buf.build's large (~1.6MB) packument live. That endpoint intermittently stalls and trips npm's idle timeout (EIDLETIMEOUT), failing `npm ci` repo-wide (including on main). Two fixes: - package-lock.json: add `resolved` + `integrity` (computed from the published tarballs) for both @buf entries so npm installs them directly from the cache/tarball without the flaky packument lookup. - .circleci/continue-config.yml: raise npm fetch retries/timeouts and retry `npm ci` up to 3x in the shared npm_install command. Co-authored-by: Cursor <cursoragent@cursor.com> | 5 months ago |
| chore(ci): add workflow to rebuild k8s utility images (#8078) * chore(ci): add workflow to rebuild k8s utility images Add a manually-triggered GitHub Action that rebuilds and pushes the digest-pinned Kubernetes utility images (k8s-sync, k8s-util, buildkit/-rootless) multi-arch to Docker Hub, then opens a PR updating the pinned tag@sha256 references in constants.ts. Makes a security refresh of these images a one-click, no-local-tooling operation. Includes support/update-util-image-digests.mjs which rewrites the pinned image references in core/src/plugins/kubernetes/constants.ts. Co-authored-by: Cursor <cursoragent@cursor.com> * ci: split utility-image rebuild into a hybrid GitHub Actions + CircleCI flow Move the multi-arch build + push to a CircleCI job (reusing the existing docker context credentials and the gordon-garden-bot PAT) and keep GitHub Actions as the human trigger and the PR opener. - workflow_dispatch records inputs in .circleci/rebuild-request.json and pushes a throwaway rebuild-utility-images-<run_id> tag - new CircleCI rebuild-utility-images job (gated to that non-semver tag, so no normal CI runs) builds/pushes the images and repository_dispatches the resulting digests back to GitHub - repository_dispatch handler rewrites the pinned digests via the existing update-util-image-digests.mjs and opens the PR No new GitHub Docker Hub secrets required. * ci: retrigger pipeline (transient npm ci EIDLETIMEOUT from buf.build) * ci: retrigger build (buf.build npm ci retry 1) * ci: retrigger build (buf.build npm ci retry 2) * ci: retrigger build (buf.build npm ci retry 3) --------- Co-authored-by: Cursor <cursoragent@cursor.com> | 5 months ago |
| chore: switch to using JavaScript Modules (ESM) (#5233) This had many different effects that derived from it, making this PR so massive. **Modules**: The first stage was to rewrite all the imports to use .js endings everywhere. Then we needed to replace and bump a bunch of dependencies to their ESM version. **Bundling**: Following that we tried to use rollup to bundle everything back into CommonJS so that we can use it in pkg since pkg does not support ESM. This was unsuccessful, and after trying several different single application solutions, we decided we will have to write our own. **Single Executable Binary**: We now use a custom Rust binary which bundles a zipped version of NodeJS, the native extensions and the bundled code. We bundle the code for tree-shaking and size reduction, but also because otherwise we had issues with how we ensure that native modules are loaded correctly and with resolving the imports correctly cross-platform. Then on first run, the binary extracts those files to the filesystem and runs node from there. There are checksum files that we bundle together with the archives and that we store on disk to see if we need to re-extract or not. This also gives us a huge performance boost in some cases - especially when lots of filesystem reads are required - since pkg was patching and proxying those methods and making things slow. **Kubernetes client**: We also had to update the Kubernetes library to the 1.0.0-rc3, with a patch from a fork that contains the changes for kubernetes-client/javascript#1341 That is because the library was using request-promise behind the scenes, which started showing up with unhandled rejection warnings and errors about req not being defined in some cases. That library update required us to change almost every k8s call since the interface now uses objects instead of positional arguments, which makes things much nicer to read and use. We also had to introduce a workaround for using custom certificates together with proxies, something that was previously globally monkey-patched by global-agent. **request-promise**: We no longer depend on request-promise and fully removed the dependency. Fixes #3841 Fixes #4898 Co-authored-by: Steffen Neubauer <steffen@garden.io> | 2 years ago |
| chore(release): bump version to 0.14.20 | 8 months ago |
| chore(security): rebuild k8s utility images (#8080) Co-authored-by: Cursor <cursoragent@cursor.com> | 5 months ago |
| chore(release): bump version to 0.14.20 | 8 months ago |
| chore(release): bump version to 0.14.20 | 8 months ago |
| fix(examples): bump kustomize ldap image to osixia/openldap:1.5.0 (1.1.11 deleted from Docker Hub) (#8082) fix(examples): bump kustomize ldap image to osixia/openldap:1.5.0 The `osixia/openldap:1.1.11` tag was deleted from Docker Hub (the repo still exists, but that tag now 404s), so the kustomize example's ldap Deployment fails with ImagePullBackOff. This breaks the `e2e-kustomize` CI suite repo-wide (it fails on main and every PR). Bump to `1.5.0`, the latest available 1.x release, which keeps the same osixia/openldap config conventions (`--copy-service`, `/container/...` mounts) used by this example. Co-authored-by: Cursor <cursoragent@cursor.com> | 5 months ago |
| feat(cli): allow generating flamegraphs for performance analysis (#6684) You can trigger flamegraph generation by exporting the environment variable `GARDEN_FLAMGEGRAPH=1`. This will call the tool `0x` via `npx`. Kudos [to the authors of 0x](https://github.com/davidmarkclements/0x). | 1 year ago |
| chore: update util images (#7972) Here, we update the `k8s-sync` and `k8s-util` images to address security vulnerabilities in the old base images. | 8 months ago |
| chore(tooling): add a shell.nix file (#6342) * chore(tooling): add a shell.nix file * chore(tooling): update tool-versions NodeJS version to 22 | 2 years ago |
| chore(release): bump version to 0.14.20 | 8 months ago |
| chore(release): handle empty changelog in release notes Before this fix, we were still inserting "Please see the changelog below for a detailed list of changes in this release" when all commits in the release were `chore` commits (which results in an empty changelog). | 8 months ago |
| chore(release): bump version to 0.14.20 | 8 months ago |
| docs: add basic guide on connecting project + tweaks This commit makes a few changes to our docs: - Add guide on connecting projecs - Add feature page for team caching - Add feature page for remote container builder - Rename config-guides dir to features - Various smaller tweaks for 0.14 All of these are pretty rough around the edges and we'll continue to iterate from here. | 1 year ago |
| chore(ci): add workflow to rebuild k8s utility images (#8078) * chore(ci): add workflow to rebuild k8s utility images Add a manually-triggered GitHub Action that rebuilds and pushes the digest-pinned Kubernetes utility images (k8s-sync, k8s-util, buildkit/-rootless) multi-arch to Docker Hub, then opens a PR updating the pinned tag@sha256 references in constants.ts. Makes a security refresh of these images a one-click, no-local-tooling operation. Includes support/update-util-image-digests.mjs which rewrites the pinned image references in core/src/plugins/kubernetes/constants.ts. Co-authored-by: Cursor <cursoragent@cursor.com> * ci: split utility-image rebuild into a hybrid GitHub Actions + CircleCI flow Move the multi-arch build + push to a CircleCI job (reusing the existing docker context credentials and the gordon-garden-bot PAT) and keep GitHub Actions as the human trigger and the PR opener. - workflow_dispatch records inputs in .circleci/rebuild-request.json and pushes a throwaway rebuild-utility-images-<run_id> tag - new CircleCI rebuild-utility-images job (gated to that non-semver tag, so no normal CI runs) builds/pushes the images and repository_dispatches the resulting digests back to GitHub - repository_dispatch handler rewrites the pinned digests via the existing update-util-image-digests.mjs and opens the PR No new GitHub Docker Hub secrets required. * ci: retrigger pipeline (transient npm ci EIDLETIMEOUT from buf.build) * ci: retrigger build (buf.build npm ci retry 1) * ci: retrigger build (buf.build npm ci retry 2) * ci: retrigger build (buf.build npm ci retry 3) --------- Co-authored-by: Cursor <cursoragent@cursor.com> | 5 months ago |
| Agent-based AEC (phase 1) (#7535) * chore(deps-dev): bump sha.js from 2.4.11 to 2.4.12 in /examples/vote-helm/vote-image (#7632) chore(deps-dev): bump sha.js in /examples/vote-helm/vote-image Bumps [sha.js](https://github.com/crypto-browserify/sha.js) from 2.4.11 to 2.4.12. - [Changelog](https://github.com/browserify/sha.js/blob/master/CHANGELOG.md) - [Commits](https://github.com/crypto-browserify/sha.js/compare/v2.4.11...v2.4.12) --- updated-dependencies: - dependency-name: sha.js dependency-version: 2.4.12 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore: aec WIP * chore: progress * chore: marching on, getting close to done on this side * chore: change AEC event shape to avoid specific k8s semantics (WIP) * chore: change update event shape slightly * chore: fix errors * chore: correct cloud API endpoint * chore: allow minutes as unit for AEC TTL * chore: finish initial implementation * chore: fix linting error + update docs * chore: fix plugin context schema * chore: fix some tests * chore: update after rebase * chore: fix integ tests * chore: address review comments --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 1 year ago |
| chore: fix typo in .editorconfig file See also: https://editorconfig.org/ | 3 years ago |
| chore: switch to using JavaScript Modules (ESM) (#5233) This had many different effects that derived from it, making this PR so massive. **Modules**: The first stage was to rewrite all the imports to use .js endings everywhere. Then we needed to replace and bump a bunch of dependencies to their ESM version. **Bundling**: Following that we tried to use rollup to bundle everything back into CommonJS so that we can use it in pkg since pkg does not support ESM. This was unsuccessful, and after trying several different single application solutions, we decided we will have to write our own. **Single Executable Binary**: We now use a custom Rust binary which bundles a zipped version of NodeJS, the native extensions and the bundled code. We bundle the code for tree-shaking and size reduction, but also because otherwise we had issues with how we ensure that native modules are loaded correctly and with resolving the imports correctly cross-platform. Then on first run, the binary extracts those files to the filesystem and runs node from there. There are checksum files that we bundle together with the archives and that we store on disk to see if we need to re-extract or not. This also gives us a huge performance boost in some cases - especially when lots of filesystem reads are required - since pkg was patching and proxying those methods and making things slow. **Kubernetes client**: We also had to update the Kubernetes library to the 1.0.0-rc3, with a patch from a fork that contains the changes for kubernetes-client/javascript#1341 That is because the library was using request-promise behind the scenes, which started showing up with unhandled rejection warnings and errors about req not being defined in some cases. That library update required us to change almost every k8s call since the interface now uses objects instead of positional arguments, which makes things much nicer to read and use. We also had to introduce a workaround for using custom certificates together with proxies, something that was previously globally monkey-patched by global-agent. **request-promise**: We no longer depend on request-promise and fully removed the dependency. Fixes #3841 Fixes #4898 Co-authored-by: Steffen Neubauer <steffen@garden.io> | 2 years ago |
| feat(vcs): add new git repo scanning method to improve resolution speed This adds a new experimental git repo scanning method, enabled by setting `scan.git.mode: repo` in the project config or by setting `GARDEN_GIT_SCAN_MODE=repo`. It can still do with quite a bit of optimization but the general idea is to do far fewer (albeit generally more expensive) calls to git. For now I don't think it makes sense to make this the default since there are pros and cons to either approach, but for large repositories with many actions/modules this is likely to be more efficient. I suggest we collect user feedback and do IRL tests before diving in and optimizing further. One obvious optimization will be to index the repository files more efficiently, instead of just filtering on a straight list of paths. It would also make sense to delay hashing files that aren't in the index until they are called upon. | 3 years ago |
| chore: exclude lockfiles from GitHub diffs See https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github | 3 years ago |
| docs(gitbook): update redirect rules (#7122) | 1 year ago |
| improvement(core): show if var is superseded in get remote-vars command | 8 months ago |
| chore: correctly configure for npm release | 8 years ago |
| chore: shadow launch of first implementation of gRPC-based event transport (#7234) * chore: shadow launch of first implementation of grpc based event transport The new grpc based event transport is not in production yet, but we want to get this merged quickly to avoid the need of having to maintain a long-lived feature branch that accumulates conflicts. co-authored-by: Vova <vladimir@garden.io> co-authored-by: Haukur <haukur@garden.io> * refactor: rename event stream classes rename `BufferedEventStream` => `RestfulEventStream` and `GrowBufferedEventStream => `GrpcEventStream` * chore: satisfy linter * refactor: move event handling to separate event converter class * fix: push events in converter * chore: simplify switch case in event converter * chore: implement action events * feat: send events for all action types * move grpc domain into suffix of overall domain structure * reconfigure to use general API domain also for GRPC communications * chore: fix link in jsdocs * chore: update grpc client * refactor: rename function * chore: update grpc client to supply event type discriminator * chore: update grpc client to use top-level `GardenCliEvent.commandUlid` * test: fix assertions * test: stable uuid to ulid mappings in dev console * chore: update to latest grpc * feat: send authorization header * use the latest grpc client --------- Co-authored-by: Steffen Neubauer <steffen@garden.io> Co-authored-by: Haukur <haukur@garden.io> Co-authored-by: Lars Fronius <lars@fronius.me> | 1 year ago |
| chore(deps): update node.js to v22.17.1 (#7576) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> | 1 year ago |
| refactor: major overhaul to plugin architecture Plugins are now registered and loaded separately, and are now defined as modules with an exported `gardenPlugin` function. BREAKING CHANGE: This includes some changes to the project schema and how it is resolved, as well as how the main `Garden` class is instantiated. The `Garden` class is now called with an environment name, which is then fixed for the session. The env configuration is resolved by merging the specific environment configuration with a global configuration specified on the new `global` key in the project config. The schema for the `providers` key also different - its keys should now match plugin names, and contain configuration for those plugins. | 8 years ago |
| chore: enable prettier in ci (#4601) * chore: enable prettier in ci * chore: upgrade prettier * chore: prettier -w for entire codebase | 3 years ago |
| chore: split cli package out of core package | 6 years ago |
| feat(vcs): add new git repo scanning method to improve resolution speed This adds a new experimental git repo scanning method, enabled by setting `scan.git.mode: repo` in the project config or by setting `GARDEN_GIT_SCAN_MODE=repo`. It can still do with quite a bit of optimization but the general idea is to do far fewer (albeit generally more expensive) calls to git. For now I don't think it makes sense to make this the default since there are pros and cons to either approach, but for large repositories with many actions/modules this is likely to be more efficient. I suggest we collect user feedback and do IRL tests before diving in and optimizing further. One obvious optimization will be to index the repository files more efficiently, instead of just filtering on a straight list of paths. It would also make sense to delay hashing files that aren't in the index until they are called upon. | 3 years ago |
| chore(deps): update dependency helm to v3.19.0 (#7685) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> | 1 year ago |
| chore(release): bump version to 0.14.20 | 8 months ago |
| chore: add basic CLAUDE.md For starters, we explain how to run tests, linting and start watch-mode recompilation. | 8 months ago |
| chore: remove Discord links We're migrating from Discord to GitHub Discussions. This commit replaces links to Discord with links to our GitHub Discussions page. | 9 months ago |
| Added license and automated license checker IMPORTANT: From now on, all files need to include the copyright+license header (see static/license-header.txt). You can add it automatically by running `npm run add-licenses` | 8 years ago |
| chore(release): bump version to 0.14.20 | 8 months ago |
| chore(ci): make release PR a manual step | 8 months ago |
| chore: adding a security.md | 4 years ago |
| chore: add commit header for bundled tool version updates (#6121) | 2 years ago |
| chore: replace yarn with npm (#5128) * chore: replace yarn with npm * fix: parameter passing to `npm run` * fix: cache node_modules folder * fix: release build script for npm * chore: cache all node_modules folders * fix: pass e2e options along * fix: broken workspaces config * fix: npm install * fix: nohoist in package-lock * fix: correct package.lock nesting * fix: cache node_modules for plugins * fix: split2 dependency * fix: more missing dependencies * fix: dependencies dependencies dependencies * fix: more dependencies * fix: and some more dependencies * fix: you guessed it... * fix: yup * chore: cleanup plugins and sdk build outputs * fix: even more missing dependencies * fix: more dependency and module stuff * fix: move sdk outputs into build directory and do not hide fact that this is not an ESM module so this only worked because we bundled everything into the same directory * refactor: you will not believe it * refactor: how many dependencies were never really declared? * refactor: touch was listed twice * fix: CJS compatible node-fetch * fix: make mocha find tests * fix: more missing dependencies * fix: prettier fix * chore: add package-lock for k8s-namespace and k8s-deployment package * fix: by now I am out of ideas * fix: sdk tsconfig * fix: pulumi test files are not in build folder * chore: move pulumi plugin into src folder * chore: move all plugin code in src directories * fix: make sure plugin tests can find their static test files * fix: script-utils ignore * fix: more plugin test path fixes * fix: package build using package-lock and workspaces for package install * fix: alpine builder image | 3 years ago |
| chore(deps): update `eslint` dependencies (#7254) * chore(deps): update eslint dependencies * chore: address breaking changes in `eslint-plugin-mocha` | 1 year ago |
| docs(quickstart): add no-k8s option to quickstart guide (#7270) | 1 year ago |
| fix(ci): make npm ci resilient to buf.build idle timeouts (#8081) The `@buf/*` packages resolve from buf.build's BSR npm registry. The lockfile was missing `resolved`/`integrity` for `@buf/garden_grow-platform.bufbuild_es` and its transitive `@buf/bufbuild_protovalidate.bufbuild_es`, so every `npm ci` had to fetch buf.build's large (~1.6MB) packument live. That endpoint intermittently stalls and trips npm's idle timeout (EIDLETIMEOUT), failing `npm ci` repo-wide (including on main). Two fixes: - package-lock.json: add `resolved` + `integrity` (computed from the published tarballs) for both @buf entries so npm installs them directly from the cache/tarball without the flaky packument lookup. - .circleci/continue-config.yml: raise npm fetch retries/timeouts and retry `npm ci` up to 3x in the shared npm_install command. Co-authored-by: Cursor <cursoragent@cursor.com> | 5 months ago |
| chore(release): bump version to 0.14.20 | 8 months ago |
| chore(ci): use AWS EKS cluster instead of GKE (#7904) * chore(ci): use AWS EKS cluster instead of GKE * chore: change all examples and e2e project registry configs * chore: remove Kaniko from examples and e2e tests * chore(ci): use Rust 1.92.0 for dist build steps * chore(ci): enable Docker for e2e test runners * chore(ci): authenticate with ECR and Docker Hub * chore(ci): drop a few tests * chore(examples): fix vote-helm result service * chore(tests): drop kaniko integ tests * chore(ci): fix windows test * chore(ci): fix some tests * fix(k8s): handle imagePullSecrets+copySecrets before helm deploy * chore: remove 0.13 from dependabot updates --------- Co-authored-by: Jon Edvald <edvald@gmail.com> | 9 months ago |
| chore(renovate): fix config syntax (#7567) There is no such option like `mergeConfidence`. Let's delete it. | 1 year ago |
| chore(deps): update package dependencies Addresses a handful of potential vulnerabilities. Supersedes several (now closed) dependabot+renovate PRs. | 8 months ago |
| chore(tooling): add a shell.nix file (#6342) * chore(tooling): add a shell.nix file * chore(tooling): update tool-versions NodeJS version to 22 | 2 years ago |
| chore(dev-deps): update typescript to 5.8.3 (#7381) * chore(dev-deps): update typescript to 5.8.3 * chore: switch from `ts-node` to `tsx` * chore: get rid of unnecessary hack for `ts-node/esm` loader * chore: remove unnecessary overrides in `tsconfig.json` files * chore: remove obsolete libs from `compilerOptions` in `tsconfig.base.json` * chore: remove `ts-node` from global deps in dev env bootstrap scripts | 1 year ago |
| chore(dev-deps): update typescript to 5.8.3 (#7381) * chore(dev-deps): update typescript to 5.8.3 * chore: switch from `ts-node` to `tsx` * chore: get rid of unnecessary hack for `ts-node/esm` loader * chore: remove unnecessary overrides in `tsconfig.json` files * chore: remove obsolete libs from `compilerOptions` in `tsconfig.base.json` * chore: remove `ts-node` from global deps in dev env bootstrap scripts | 1 year ago |