From fb5330049ce5f0918ae38c80ea425b3dfaed93ec Mon Sep 17 00:00:00 2001 From: skzhang1 Date: Wed, 29 Oct 2025 16:58:41 -0700 Subject: [PATCH 1/3] workflow_update Signed-off-by: skzhang1 --- .github/workflows/copyright-check.yml | 22 ++++++++++++ .github/workflows/lint-fix.yml | 48 --------------------------- .github/workflows/lint.yml | 2 +- 3 files changed, 23 insertions(+), 49 deletions(-) create mode 100644 .github/workflows/copyright-check.yml delete mode 100644 .github/workflows/lint-fix.yml diff --git a/.github/workflows/copyright-check.yml b/.github/workflows/copyright-check.yml new file mode 100644 index 000000000..37f5587ea --- /dev/null +++ b/.github/workflows/copyright-check.yml @@ -0,0 +1,22 @@ +# Copyright (c) 2025, NVIDIA CORPORATION. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: Copyright check + +on: + pull_request: + +jobs: + copyright-check: + uses: NVIDIA-NeMo/FW-CI-templates/.github/workflows/_copyright_check.yml@v0.2.0 diff --git a/.github/workflows/lint-fix.yml b/.github/workflows/lint-fix.yml deleted file mode 100644 index b682efd0a..000000000 --- a/.github/workflows/lint-fix.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Lint Fix - -on: - pull_request: - types: [labeled] - -jobs: - # Python lint fixes - lint-fix-python: - if: github.event.label.name == 'lint-fix' - name: Fix Python linting issues - runs-on: blacksmith-4vcpu-ubuntu-2204 - permissions: - contents: write - pull-requests: write - steps: - - uses: actions/checkout@v4 - with: - ref: ${{ github.head_ref }} - repository: ${{ github.event.pull_request.head.repo.full_name }} - fetch-depth: 0 - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Set up python - uses: actions/setup-python@v5 - with: - python-version: 3.12 - cache: 'pip' - - name: Install pre-commit - run: pip install pre-commit==3.7.0 - - name: Fix python lint issues - run: | - # Run all pre-commit hooks and continue even if they modify files (exit code 1) - pre-commit run --config ./dev_config/python/.pre-commit-config.yaml --files openhands/**/* evaluation/**/* tests/**/* || true - - # Commit and push changes if any - - name: Check for changes - id: git-check - run: | - git diff --quiet || echo "changes=true" >> $GITHUB_OUTPUT - - name: Commit and push if there are changes - if: steps.git-check.outputs.changes == 'true' - run: | - git config --local user.email "openhands@all-hands.dev" - git config --local user.name "OpenHands Bot" - git add -A - git commit -m "🤖 Auto-fix Python linting issues" - git push diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f8edbfcb9..def59bfb6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,7 +19,7 @@ jobs: # Run lint on the python code lint-python: name: Lint python - runs-on: blacksmith-4vcpu-ubuntu-2204 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: From 54d49fbb3c98a2efd913955dd4e227a7d6ed815f Mon Sep 17 00:00:00 2001 From: skzhang1 Date: Wed, 29 Oct 2025 17:02:53 -0700 Subject: [PATCH 2/3] delete copyright Signed-off-by: skzhang1 --- .github/workflows/copyright-check.yml | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 .github/workflows/copyright-check.yml diff --git a/.github/workflows/copyright-check.yml b/.github/workflows/copyright-check.yml deleted file mode 100644 index 37f5587ea..000000000 --- a/.github/workflows/copyright-check.yml +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright (c) 2025, NVIDIA CORPORATION. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -name: Copyright check - -on: - pull_request: - -jobs: - copyright-check: - uses: NVIDIA-NeMo/FW-CI-templates/.github/workflows/_copyright_check.yml@v0.2.0 From d672173d7973d72047b11eb33029578b06fb6d83 Mon Sep 17 00:00:00 2001 From: skzhang1 Date: Wed, 29 Oct 2025 17:06:54 -0700 Subject: [PATCH 3/3] rm old bot --- .github/dependabot.yml | 75 ------------------------------------------ 1 file changed, 75 deletions(-) delete mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 7ae75e556..000000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,75 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "pip" - directory: "/" - schedule: - interval: "daily" - open-pull-requests-limit: 1 - groups: - # put packages in their own group if they have a history of breaking the build or needing to be reverted - pre-commit: - patterns: - - "pre-commit" - browsergym: - patterns: - - "browsergym*" - mcp-packages: - patterns: - - "mcp" - - "mcpm" - security-all: - applies-to: "security-updates" - patterns: - - "*" - version-all: - applies-to: "version-updates" - patterns: - - "*" - - - package-ecosystem: "npm" - directory: "/frontend" - schedule: - interval: "daily" - open-pull-requests-limit: 1 - groups: - docusaurus: - patterns: - - "*docusaurus*" - eslint: - patterns: - - "*eslint*" - security-all: - applies-to: "security-updates" - patterns: - - "*" - version-all: - applies-to: "version-updates" - patterns: - - "*" - - - package-ecosystem: "npm" - directory: "/docs" - schedule: - interval: "weekly" - day: "wednesday" - open-pull-requests-limit: 1 - groups: - docusaurus: - patterns: - - "*docusaurus*" - eslint: - patterns: - - "*eslint*" - security-all: - applies-to: "security-updates" - patterns: - - "*" - version-all: - applies-to: "version-updates" - patterns: - - "*" - - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "weekly"