Skip to content

Add -skip-errors flag to src campaign apply|preview#395

Merged
mrnugget merged 5 commits into
mainfrom
mrn/skip-errors
Nov 25, 2020
Merged

Add -skip-errors flag to src campaign apply|preview#395
mrnugget merged 5 commits into
mainfrom
mrn/skip-errors

Conversation

@mrnugget

@mrnugget mrnugget commented Nov 24, 2020

Copy link
Copy Markdown
Contributor

This fixes https://github.com/sourcegraph/sourcegraph/issues/15790 by adding the -skip-errors flag.

Note: I made the conscious decision to only skip "runtime errors", i.e.: we can skip the failed step execution, or we can skip the failed importing of a changeset (see "after" screenshot). That means validation errors etc. are not skipped. Because I don't think that makes sense.

Before

before

After

after

@mrnugget mrnugget requested a review from a team November 24, 2020 11:35

@LawnGnome LawnGnome 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.

LGTM!

Note: I made the conscious decision to only skip "runtime errors", i.e.: we can skip the failed step execution, or we can skip the failed importing of a changeset (see "after" screenshot). That means validation errors etc. are not skipped. Because I don't think that makes sense.

Agreed. This is only about things the user isn't necessarily in direct control of — validation errors, server errors, etc, shouldn't be subject to this.

@mrnugget mrnugget merged commit d29ad54 into main Nov 25, 2020
@mrnugget mrnugget deleted the mrn/skip-errors branch November 25, 2020 12:48
scjohns pushed a commit that referenced this pull request Apr 24, 2023
* Add -skip-errors flag to src campaign apply|preview

* Fix formatting of errors

* Add notice

* Remove notice

* Add changelog entry
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.

Allow users to create campaign spec even if execution failed in subset of repos

3 participants