Skip to content

remove test_install_script.py - #11573

Open
Sha1rholder wants to merge 1 commit into
AstrBotDevs:masterfrom
Sha1rholder:remove-test_install_script.py
Open

Sha1rholder wants to merge 1 commit into
AstrBotDevs:masterfrom
Sha1rholder:remove-test_install_script.py

Conversation

@Sha1rholder

@Sha1rholder Sha1rholder commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Modifications / 改动点

Removed a test that basically just repeats what it tests.

  • This is NOT a breaking change.

Checklist / 检查清单

  • 😊 If there are new features added in the PR, I have discussed it with the authors through issues/emails, etc.
    / 如果 PR 中有新加入的功能,已经通过 Issue / 邮件等方式和作者讨论过。

  • 👀 My changes have been well-tested, and "Verification Steps" and "Screenshots" have been provided above.
    / 我的更改经过了良好的测试,并已在上方提供了“验证步骤”和“运行截图”。

  • 📚 I checked the affected WebUI instructions and screenshots in docs/zh and docs/en against the changed navigation, page structure, and labels, and updated them in this PR (or explained why no documentation update is needed). For renamed, moved, or merged entry points, I included an old entry → new entry mapping in the documentation and changelog.
    / 我已对照变化后的 WebUI 入口、页面结构和术语,核对并在本 PR 中更新 docs/zh 和 docs/en 的相关操作说明与截图(或说明无需更新文档的原因)。入口改名、移动或合并时,已在文档和 changelog 中补充 旧入口 → 新入口 对照。

  • 🤓 I have ensured that no new dependencies are introduced, OR if new dependencies are introduced, they have been added to the appropriate locations in requirements.txt and pyproject.toml.
    / 我确保没有引入新依赖库,或者引入了新依赖库的同时将其添加到 requirements.txt 和 pyproject.toml 文件相应位置。

  • 😮 My changes do not introduce malicious code.
    / 我的更改没有引入恶意代码。

Summary by Sourcery

Remove the redundant Python install-script tests while retaining the workflow’s remaining install-script checks.

CI:

  • Remove the deleted Python install-script test from the install-script workflow’s path filters.

Tests:

  • Delete the redundant tests/test_install_script.py test suite.

@Sha1rholder

Copy link
Copy Markdown
Contributor Author

Ref #11468 (review)

  1. Regarding test_install_script.py, I personally prefer removing it altogether rather than adapting it. I'll open a separate PR proposing its removal.

@Sha1rholder
Sha1rholder marked this pull request as ready for review December 1, 2026 21:33

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path=".github/workflows/install_script_test.yml" line_range="10" />
<code_context>
     paths:
       - 'docs/public/install.ps1'
       - 'docs/public/install.sh'
-      - 'tests/test_install_script.py'
       - 'tests/install_script.Tests.ps1'
       - '.github/workflows/install_script_test.yml'
</code_context>
<issue_to_address>
**Bash installer regressions pass CI**

When a future change breaks Bash installer behavior without introducing a syntax error, the Bash job runs only `bash -n`, which checks syntax but not argument handling or installation behavior, so the regression passes CI and reaches users.

Restore or add a Bash runtime test to CI alongside `bash -n`.
</issue_to_address>

Sourcery assessment

Approval pending. 1 finding to address first.

Blocking findings: .github/workflows/install_script_test.yml:10


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

paths:
- 'docs/public/install.ps1'
- 'docs/public/install.sh'
- 'tests/test_install_script.py'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Bash installer regressions pass CI

When a future change breaks Bash installer behavior without introducing a syntax error, the Bash job runs only bash -n, which checks syntax but not argument handling or installation behavior, so the regression passes CI and reaches users.

Restore or add a Bash runtime test to CI alongside bash -n.

Prompt for AI agents
In `.github/workflows/install_script_test.yml` at line 10:

**Bash installer regressions pass CI**

When a future change breaks Bash installer behavior without introducing a syntax error, the Bash job runs only `bash -n`, which checks syntax but not argument handling or installation behavior, so the regression passes CI and reaches users.

Restore or add a Bash runtime test to CI alongside `bash -n`.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant