Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic "appveyor-retry" script #418

Closed
FeodorFitsner opened this issue Sep 17, 2015 · 3 comments
Closed

Generic "appveyor-retry" script #418

FeodorFitsner opened this issue Sep 17, 2015 · 3 comments
Milestone

Comments

@FeodorFitsner
Copy link
Member

The script can be used as:

appveyor-retry <your-command>

Script will re-try running <your-command> for 3 times if exit code was non 0.

Discussion: http://help.appveyor.com/discussions/suggestions/816-generic-wrapper-for-retry
Implementation: https://github.com/appveyor/ci/blob/master/scripts/appveyor-retry.cmd

@FeodorFitsner FeodorFitsner changed the title Universal "retry" script Generic "retry" script Sep 17, 2015
@FeodorFitsner FeodorFitsner added this to the feb-5 milestone Feb 3, 2016
@FeodorFitsner FeodorFitsner changed the title Generic "retry" script Generic "appveyor-retry" script Feb 6, 2016
@bd82
Copy link

bd82 commented Jul 28, 2016

Is this in production/available ?

I've tried using this to workaround npm install issues in the less.js project without luck.

https://ci.appveyor.com/project/lukeapage/less-js/build/626/job/nf4ci3sqx9qjy2m1

The travis-retry worked and solved the problem.

But the appveyor-retry did not work.

@IlyaFinkelshteyn
Copy link
Contributor

Hi Shahar,

Thank you for the catch! Here is temporary workaround: less/less.js#2943
Bug: #950

--ilya.

From: Shahar Soel [mailto:notifications@github.com]
Sent: Thursday, July 28, 2016 3:31 AM
To: appveyor/ci ci@noreply.github.com
Subject: Re: [appveyor/ci] Generic "appveyor-retry" script (#418)

Is this in production/available ?

I've tried using this to workaround npm install issues in the less.js project without luck.

https://ci.appveyor.com/project/lukeapage/less-js/build/626/job/nf4ci3sqx9qjy2m1

The travis-retryhttps://github.com/less/less.js/pull/2941/files#diff-354f30a63fb0907d4ad57269548329e3R28 worked and solved the problem.

But the appveyor-retryhttps://github.com/less/less.js/pull/2941/files#diff-180360612c6b8c4ed830919bbb4dd459R18 did not work.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/418#issuecomment-235859125, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADGRAooc-8xTfLoU6NJGs_lpwUvF2AkPks5qaIUAgaJpZM4F_UHD.

@bd82
Copy link

bd82 commented Jul 29, 2016

Thanks.
I've integrated this into my pull request at less/less.js#2941

digitalcircuit added a commit to digitalcircuit/quassel that referenced this issue Nov 28, 2016
Automatically retry up to 3 times on failure when installing
Chocolatey modules, using the 'appveyor-retry' script.  This can be
removed later if needed.

Sometimes Chocolatey returns a 404 for a package that exists.  This
happens a lot.  The official fix is to get the Business edition for
the more-stable private CDN, but since we're an open-source community
effort, sometimes a little kludgery goes a long way.

See http://help.appveyor.com/discussions/suggestions/816-generic-wrapper-for-retry#comment_40579488
And appveyor/ci#418
TheOneRing pushed a commit to TheOneRing/appVeyorHelp that referenced this issue Dec 13, 2016
    Automatically retry up to 3 times on failure when installing
    Chocolatey modules, using the 'appveyor-retry' script.  This can be
    removed later if needed.

    Sometimes Chocolatey returns a 404 for a package that exists.  This
    happens a lot.  The official fix is to get the Business edition for
    the more-stable private CDN, but since we're an open-source community
    effort, sometimes a little kludgery goes a long way.

    See http://help.appveyor.com/discussions/suggestions/816-generic-wrapper-for-retry#comment_40579488
    And appveyor/ci#418
javierllorente pushed a commit to javierllorente/quassel that referenced this issue Jan 6, 2017
Automatically retry up to 3 times on failure when installing
Chocolatey modules, using the 'appveyor-retry' script.  This can be
removed later if needed.

Sometimes Chocolatey returns a 404 for a package that exists.  This
happens a lot.  The official fix is to get the Business edition for
the more-stable private CDN, but since we're an open-source community
effort, sometimes a little kludgery goes a long way.

See http://help.appveyor.com/discussions/suggestions/816-generic-wrapper-for-retry#comment_40579488
And appveyor/ci#418
javierllorente pushed a commit to javierllorente/quassel that referenced this issue Jan 6, 2017
Automatically retry up to 3 times on failure when installing
Chocolatey modules, using the 'appveyor-retry' script.  This can be
removed later if needed.

Sometimes Chocolatey returns a 404 for a package that exists.  This
happens a lot.  The official fix is to get the Business edition for
the more-stable private CDN, but since we're an open-source community
effort, sometimes a little kludgery goes a long way.

See http://help.appveyor.com/discussions/suggestions/816-generic-wrapper-for-retry#comment_40579488
And appveyor/ci#418
josephfrazier added a commit to josephfrazier/browser-extension that referenced this issue Jan 26, 2017
(commit message copied from digitalcircuit/quassel@19f50b6)

Automatically retry up to 3 times on failure when installing
Chocolatey modules, using the 'appveyor-retry' script.  This can be
removed later if needed.

Sometimes Chocolatey returns a 404 for a package that exists.  This
happens a lot.  The official fix is to get the Business edition for
the more-stable private CDN, but since we're an open-source community
effort, sometimes a little kludgery goes a long way.

See the following:
* http://help.appveyor.com/discussions/suggestions/816-generic-wrapper-for-retry#comment_40579488
* appveyor/ci#418
stefanbuck pushed a commit to OctoLinker/OctoLinker that referenced this issue Jan 26, 2017
* .appveyor.yml: Make phantomjs less flaky

It looks like the PhantomJS flakiness on TravisCI (see f207c36) happens
on [AppVeyor] as well. This adds an [appveyor-retry] command to the `npm
test` portion of the AppVeyor test script, to workaround the
intermittent failures.

[AppVeyor]: https://ci.appveyor.com/project/stefanbuck/browser-extension/build/1.0.177
[appveyor-retry]: http://help.appveyor.com/discussions/suggestions/816-generic-wrapper-for-retry#comment_40504847

* .appveyor.yml: retry Chocolatey installs

(commit message copied from digitalcircuit/quassel@19f50b6)

Automatically retry up to 3 times on failure when installing
Chocolatey modules, using the 'appveyor-retry' script.  This can be
removed later if needed.

Sometimes Chocolatey returns a 404 for a package that exists.  This
happens a lot.  The official fix is to get the Business edition for
the more-stable private CDN, but since we're an open-source community
effort, sometimes a little kludgery goes a long way.

See the following:
* http://help.appveyor.com/discussions/suggestions/816-generic-wrapper-for-retry#comment_40579488
* appveyor/ci#418
Sput42 pushed a commit to quassel/quassel that referenced this issue Feb 28, 2018
Automatically retry up to 3 times on failure when installing
Chocolatey modules, using the 'appveyor-retry' script.  This can be
removed later if needed.

Sometimes Chocolatey returns a 404 for a package that exists.  This
happens a lot.  The official fix is to get the Business edition for
the more-stable private CDN, but since we're an open-source community
effort, sometimes a little kludgery goes a long way.

See http://help.appveyor.com/discussions/suggestions/816-generic-wrapper-for-retry#comment_40579488
And appveyor/ci#418

(cherry picked from commit 19f50b6)
Sput42 pushed a commit to quassel/quassel that referenced this issue Apr 4, 2018
Automatically retry up to 3 times on failure when installing
Chocolatey modules, using the 'appveyor-retry' script.  This can be
removed later if needed.

Sometimes Chocolatey returns a 404 for a package that exists.  This
happens a lot.  The official fix is to get the Business edition for
the more-stable private CDN, but since we're an open-source community
effort, sometimes a little kludgery goes a long way.

See http://help.appveyor.com/discussions/suggestions/816-generic-wrapper-for-retry#comment_40579488
And appveyor/ci#418

(cherry picked from commit 19f50b6)
bestreviewsbookssoftware05 added a commit to bestreviewsbookssoftware05/browser-extension that referenced this issue Aug 24, 2024
* .appveyor.yml: Make phantomjs less flaky

It looks like the PhantomJS flakiness on TravisCI (see 41c7367) happens
on [AppVeyor] as well. This adds an [appveyor-retry] command to the `npm
test` portion of the AppVeyor test script, to workaround the
intermittent failures.

[AppVeyor]: https://ci.appveyor.com/project/stefanbuck/browser-extension/build/1.0.177
[appveyor-retry]: http://help.appveyor.com/discussions/suggestions/816-generic-wrapper-for-retry#comment_40504847

* .appveyor.yml: retry Chocolatey installs

(commit message copied from digitalcircuit/quassel@19f50b6)

Automatically retry up to 3 times on failure when installing
Chocolatey modules, using the 'appveyor-retry' script.  This can be
removed later if needed.

Sometimes Chocolatey returns a 404 for a package that exists.  This
happens a lot.  The official fix is to get the Business edition for
the more-stable private CDN, but since we're an open-source community
effort, sometimes a little kludgery goes a long way.

See the following:
* http://help.appveyor.com/discussions/suggestions/816-generic-wrapper-for-retry#comment_40579488
* appveyor/ci#418
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

No branches or pull requests

3 participants