[ 
https://issues.apache.org/jira/browse/FLINK-32910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matthias Pohl updated FLINK-32910:
----------------------------------
    Description: 
We use {{curl}} in several locations to download artifacts. Usually, the a 
progress bar is printed which spams the console output of the test execution. 
This issue is about cleaning this up.

Parameters to consider (depending on the usecase):
 * {{\-L}}/{{\-\-location}} redirects the curl command and retries if the 
server reported that the artifact was moved
 * {{\-O}}/{{\-\-remote-name}} writes output to file matching the remote name 
(which was extracted from the URL) instead of stdout; alternative: 
{{\-o}}/{{\-\-output}} writes output to a file with the given name instead of 
stdout
* {{\-f}}/{{\-\-fail}} makes curl command fail with non-0 exit code for HTTP 
error codes
* {{\-s \-S}}/{{\-\-silent \-\-show-error}} doesn't print progress bar but 
shows error
* {{\-r}}/{{\-\-retry}} Retries certain errors

{{curl}} uses a default config file {{${user.home}/.curlrc}}. But one could 
make it more explicit using {{\-K}}/{{\-\-config}}

  was:
We use {{curl}} in several locations to download artifacts. Usually, the a 
progress bar is printed which spams the console output of the test execution. 
This issue is about cleaning this up.

Parameters to consider (depending on the usecase):
 * {{\-L}}/{{\-\-location}} redirects the curl command and retries if the 
server reported that the artifact was moved
 * {{\-O}}/{{\-\-remote-name}} writes output to file matching the remote name 
(which was extracted from the URL) instead of stdout; alternative: 
{{\-o}}/{{\-\-output}} writes output to a file with the given name instead of 
stdout
* {{\-f}}/{{\-\-fail}} makes curl command fail with non-0 exit code for HTTP 
error codes
* {{\-s \-S}}/{{\-\-silent \-\-show-error}} doesn't print progress bar but 
shows error

{{curl}} uses a default config file {{${user.home}/.curlrc}}. But one could 
make it more explicit using {{\-K}}/{{\-\-config}}


> Silence curls in test code
> --------------------------
>
>                 Key: FLINK-32910
>                 URL: https://issues.apache.org/jira/browse/FLINK-32910
>             Project: Flink
>          Issue Type: Improvement
>          Components: Test Infrastructure
>    Affects Versions: 1.16.2, 1.18.0, 1.17.1
>            Reporter: Matthias Pohl
>            Priority: Major
>              Labels: starter
>
> We use {{curl}} in several locations to download artifacts. Usually, the a 
> progress bar is printed which spams the console output of the test execution. 
> This issue is about cleaning this up.
> Parameters to consider (depending on the usecase):
>  * {{\-L}}/{{\-\-location}} redirects the curl command and retries if the 
> server reported that the artifact was moved
>  * {{\-O}}/{{\-\-remote-name}} writes output to file matching the remote name 
> (which was extracted from the URL) instead of stdout; alternative: 
> {{\-o}}/{{\-\-output}} writes output to a file with the given name instead of 
> stdout
> * {{\-f}}/{{\-\-fail}} makes curl command fail with non-0 exit code for HTTP 
> error codes
> * {{\-s \-S}}/{{\-\-silent \-\-show-error}} doesn't print progress bar but 
> shows error
> * {{\-r}}/{{\-\-retry}} Retries certain errors
> {{curl}} uses a default config file {{${user.home}/.curlrc}}. But one could 
> make it more explicit using {{\-K}}/{{\-\-config}}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to