Skip to content

[codex] Remove deprecated use-http option#3189

Draft
hengyunabc wants to merge 1 commit into
masterfrom
codex/remove-use-http-option
Draft

[codex] Remove deprecated use-http option#3189
hengyunabc wants to merge 1 commit into
masterfrom
codex/remove-use-http-option

Conversation

@hengyunabc
Copy link
Copy Markdown
Collaborator

Summary

  • remove the deprecated HTTP download fallback option from arthas-boot and as.sh
  • keep repo-mirror support while simplifying DownloadUtils to use the HTTPS download endpoint directly
  • update user-facing Chinese docs and Debian man page examples

Validation

  • bash -n bin/as.sh
  • ./mvnw -pl boot -Dtest=BootstrapTest test
  • git diff --check
  • rg residue scan for removed option names

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes the deprecated --use-http download option from Arthas entrypoints (arthas-boot and as.sh), simplifies the boot download flow to always use the HTTPS download endpoint, and updates user-facing documentation/man page examples accordingly.

Changes:

  • Removed the --use-http CLI flag from arthas-boot (Bootstrap) and as.sh, including usage/help text.
  • Simplified DownloadUtils.downArthasPackaging(...) by removing the HTTP/HTTPS switching parameter and updating call sites/tests.
  • Updated Chinese docs and Debian man page to remove --use-http from examples and option listings.

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
site/docs/doc/quick-start.md Removes --use-http from quick-start mirror example.
site/docs/doc/install-detail.md Removes --use-http from install instructions mirror example.
README_CN.md Removes --use-http from the Chinese README mirror example.
packaging/src/deb/man1/arthas.1 Removes --use-http from synopsis and options list.
boot/src/test/java/com/taobao/arthas/boot/DownloadUtilsTest.java Updates tests for new downArthasPackaging signature.
boot/src/test/java/com/taobao/arthas/boot/BootstrapTest.java Adds regression test ensuring use-http is absent from generated usage text.
boot/src/main/java/com/taobao/arthas/boot/DownloadUtils.java Removes HTTP fallback logic and updates TLS error message.
boot/src/main/java/com/taobao/arthas/boot/Bootstrap.java Removes --use-http option wiring and updates download calls/usage examples.
bin/as.sh Removes --use-http parsing and references from usage/examples.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

AnsiLog.error("TLS connect error, please try to add --use-http argument.");
AnsiLog.error("TLS connect error, please check local Java TLS configuration.");
AnsiLog.error("URL: " + urlString);
AnsiLog.error(e);
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.

2 participants