platformio/platformio-core

Improving pio ci for download progress

Open

#4,632 创建于 2023年5月16日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)Python (791 fork)batch import
help wantedpackage managementwontfix

仓库指标

Star
 (7,329 star)
PR 合并指标
 (平均合并 109天 16小时) (30 天内合并 5 个 PR)

描述

What kind of issue is this?

  • Feature Request. Start by telling us what problem you’re trying to solve. Often a solution already exists! Don’t send pull requests to implement new features without first getting our support. Sometimes we leave features out on purpose to keep the project small.

Configuration

Operating system: Win10

PlatformIO Version (platformio --version): platformio-6.1.7-py3-none-any.whl

Description of problem

When using pio ci and updates are downloaded, it prints the separate download percentages, instead of refreshing the value (because it's executed in a non-interactive shell).

Steps to Reproduce

  1. Run pio ci project on github actions
  2. Check the output

Actual Results

Run pio ci --project-conf=platformio.ini --lib="."
********************************************************************************
If you like PlatformIO, please:
- follow us on Twitter to stay up-to-date on the latest project news > https://twitter.com/PlatformIO_Org
- star it on GitHub > https://github.com/platformio/platformio
- try PlatformIO IDE for embedded development > https://platformio.org/platformio-ide
********************************************************************************

Project has been successfully updated!
Processing garduino (platform: espressif32; board: az-delivery-devkit-v4; framework: arduino)
--------------------------------------------------------------------------------
Platform Manager: Installing espressif32
Downloading 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
Unpacking 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
Platform Manager: espressif32@6.2.0 has been installed!
Tool Manager: Installing espressif/toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Downloading 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
Unpacking 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
Tool Manager: toolchain-xtensa-esp32@8.4.0+2021r2-patch5 has been installed!
Tool Manager: Installing platformio/framework-arduinoespressif32 @ ~3.20008.0
Downloading 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
Unpacking 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
Tool Manager: framework-arduinoespressif32@3.20008.0 has been installed!
Tool Manager: Installing platformio/tool-esptoolpy @ ~1.40501.0
Downloading 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
Unpacking 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
Tool Manager: tool-esptoolpy@1.40501.0 has been installed!
Library Manager: Installing adafruit/RTClib
Downloading 0% 10% 20% 30% 40% 50%
Unpacking 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
Library Manager: RTClib@2.1.1 has been installed!

Expected Results

I would rather see dots here instead of a single % value, eg. one dot for every 10%?

Platform Manager: Installing espressif32
Downloading.....
Unpacking.....
Platform Manager: espressif32@6.2.0 has been installed!

but ideally the percentage should just change in place, instead of appending, but I'm not sure if that's possible (on github actions).

贡献者指南