Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

ci: fix what stops Dependabot PRs from opening or passing CI (#14647)

Krzysztof Czerwinski6ff7371c7be5
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index b3ea5c4838..738fc4e37b 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -53,6 +53,11 @@ updates:
directory: "autogpt_platform/frontend"
schedule:
interval: "weekly"
+ # Must stay >= `minimum-release-age` in frontend/.npmrc (10080 min = 7 days).
+ # Without it Dependabot picks a release pnpm then refuses to install
+ # (ERR_PNPM_NO_MATCHING_VERSION).
+ cooldown:
+ default-days: 8
open-pull-requests-limit: 10
target-branch: "dev"
commit-message:
@@ -70,29 +75,6 @@ updates:
- "minor"
- "patch"
- # infra (Terraform)
- - package-ecosystem: "terraform"
- directory: "autogpt_platform/infra"
- schedule:
- interval: "weekly"
- open-pull-requests-limit: 5
- target-branch: "dev"
- commit-message:
- prefix: "chore(infra/deps)"
- prefix-development: "chore(infra/deps-dev)"
-
- groups:
- production-dependencies:
- dependency-type: "production"
- update-types:
- - "minor"
- - "patch"
- development-dependencies:
- dependency-type: "development"
- update-types:
- - "minor"
- - "patch"
-
# GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
@@ -114,32 +96,21 @@ updates:
# Docker
- package-ecosystem: "docker"
- directory: "autogpt_platform/"
+ # One entry per folder that holds a Dockerfile: the ecosystem does not
+ # look below the directory it is given.
+ directories:
+ - "autogpt_platform/backend"
+ - "autogpt_platform/frontend"
+ - "autogpt_platform/single-container"
schedule:
interval: "weekly"
open-pull-requests-limit: 5
target-branch: "dev"
- groups:
- production-dependencies:
- dependency-type: "production"
- update-types:
- - "minor"
- - "patch"
- development-dependencies:
- dependency-type: "development"
- update-types:
- - "minor"
- - "patch"
-
- # Docs
- - package-ecosystem: "pip"
- directory: "docs/"
- schedule:
- interval: "weekly"
- open-pull-requests-limit: 1
- target-branch: "dev"
- commit-message:
- prefix: "chore(docs/deps)"
+ ignore:
+ # frontend/package.json pins `engines.node` to 24.x with engine-strict,
+ # so a newer major image fails `pnpm install`. Bump both together by hand.
+ - dependency-name: "node"
+ update-types: ["version-update:semver-major"]
groups:
production-dependencies:
dependency-type: "production"
diff --git a/.github/workflows/platform-backend-ci.yml b/.github/workflows/platform-backend-ci.yml
index 6f0ec6e061..e55d19f12c 100644
--- a/.github/workflows/platform-backend-ci.yml
+++ b/.github/workflows/platform-backend-ci.yml
@@ -84,8 +84,19 @@ jobs:
curl -sSL https://install.python-poetry.org | POETRY_VERSION=$HEAD_POETRY_VERSION python3 -
- name: Check poetry.lock
+ # Re-lock with the Poetry that wrote the lock (named in its header),
+ # not with ours: a different version reformats lines that mean the
+ # same thing, which failed every Dependabot PR (Dependabot runs its
+ # own, newer Poetry). A re-lock rather than `poetry check --lock`
+ # because only a re-lock notices that autogpt_libs, a path
+ # dependency, changed what it requires.
run: |
- poetry lock
+ LOCK_POETRY_VERSION=$(sed -n '1s/.*by Poetry \([0-9][0-9.]*\).*/\1/p' poetry.lock)
+ if [ -z "$LOCK_POETRY_VERSION" ]; then
+ echo "Error: poetry.lock has no '@generated by Poetry X.Y.Z' header."
+ exit 1
+ fi
+ pipx run --spec "poetry==${LOCK_POETRY_VERSION}" poetry lock
if ! git diff --quiet --ignore-matching-lines="^# " poetry.lock; then
echo "Error: poetry.lock not up to date."