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

fix(core): conditionally hide expression evaluation warning messages #9771

Merged
merged 12 commits into from
Dec 8, 2021

Conversation

mattgogerly
Copy link
Member

Filtering out expression evaluation failure messages if there are actual stage failure message(s) or if skipExpressionEvaluation is set to true in the context (since Orca still evaluates these, it just doesn't fail the stage).

@mattgogerly mattgogerly force-pushed the fix/filter-evaluation branch from c2e9e8e to ddef1cb Compare November 15, 2021 14:55
Comment on lines 82 to 88
if (isFailed || stage.context?.skipExpressionEvaluation) {
// filter out expression evaluation failure messages if:
// - there was an actual failure as these can get *really* long and hide the failure message
// - expression evaluation was explicitly disabled (as Orca still processes these and populates errors
// even when disabled)
filteredMessages = stageMessages.filter((m) => !m.startsWith('Failed to evaluate'));
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you explain this further? Why would we filter "failed to evaluate" messages when "isFailed" is true and "skipExpressionEvaluation" is false?

Copy link
Member Author

@mattgogerly mattgogerly Dec 3, 2021

Choose a reason for hiding this comment

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

The failed to evaluate messages can get extremely long and are displayed even if expression evaluation is explicitly skipped in the stage config. In contrast the failure message is usually quite small. So if there's an actual failure message, OR if skipExpressionEvaluation is true, filtering them out removes noise and lets you see the actual error.

As far as I can tell expression evaluation failures are always warnings, but currently get lumped into the failure alert if there is a failure.

An example of this would be where an entire configmap is being printed because Orca failed to evaluate expressions in it, even though expression evaluation was explicitly disabled in the stage.

edit: updated to catch the case where the stage has been set to fail on failed expressions, in which case they should not be filtered

@mattgogerly mattgogerly force-pushed the fix/filter-evaluation branch from 8b432f6 to 9413875 Compare December 3, 2021 14:13
@mattgogerly mattgogerly added the ready to merge Reviewed and ready for merge label Dec 8, 2021
@mattgogerly
Copy link
Member Author

@Mergifyio update

@mergify
Copy link
Contributor

mergify bot commented Dec 8, 2021

update

✅ Branch has been successfully updated

@mergify mergify bot merged commit 7e3dd50 into spinnaker:master Dec 8, 2021
@mattgogerly mattgogerly deleted the fix/filter-evaluation branch December 8, 2021 19:54
@link108
Copy link
Member

link108 commented Jan 11, 2022

@mattgogerly I'm seeing a warning with "No reason provided" in successful stages and I think this PR is what introduced the change, any chance you could take a look?

@mattgogerly
Copy link
Member Author

@link108 any chance you could paste the execution?

@martin-armory
Copy link

@mattgogerly This can be reproduced on any pipeline, see screenshot for a simple 5-second Wait stage.
image
I'll point out the suspecting line shortly.

@dogonthehorizon
Copy link
Member

I believe this should resolve the behavior we've been seeing:
#9794

mattgogerly added a commit that referenced this pull request Aug 30, 2023
mattgogerly added a commit that referenced this pull request Aug 30, 2023
mergify bot pushed a commit that referenced this pull request Aug 30, 2023
…essages (#9771)" (#10021)

This reverts commit 7e3dd50.

(cherry picked from commit 62033d0)
mergify bot pushed a commit that referenced this pull request Aug 30, 2023
…essages (#9771)" (#10021)

This reverts commit 7e3dd50.

(cherry picked from commit 62033d0)
mergify bot pushed a commit that referenced this pull request Aug 30, 2023
…essages (#9771)" (#10021)

This reverts commit 7e3dd50.

(cherry picked from commit 62033d0)
mergify bot pushed a commit that referenced this pull request Aug 30, 2023
…essages (#9771)" (#10021)

This reverts commit 7e3dd50.

(cherry picked from commit 62033d0)
dbyron-sf pushed a commit that referenced this pull request Aug 30, 2023
…essages (#9771)" (#10021) (#10022)

This reverts commit 7e3dd50.

(cherry picked from commit 62033d0)

Co-authored-by: Matt Gogerly <6519811+mattgogerly@users.noreply.github.com>
mergify bot added a commit that referenced this pull request Aug 30, 2023
…essages (#9771)" (#10021) (#10023)

This reverts commit 7e3dd50.

(cherry picked from commit 62033d0)

Co-authored-by: Matt Gogerly <6519811+mattgogerly@users.noreply.github.com>
mergify bot added a commit that referenced this pull request Aug 30, 2023
…essages (#9771)" (#10021) (#10025)

This reverts commit 7e3dd50.

(cherry picked from commit 62033d0)

Co-authored-by: Matt Gogerly <6519811+mattgogerly@users.noreply.github.com>
mergify bot added a commit that referenced this pull request Aug 30, 2023
…essages (#9771)" (#10021) (#10024)

This reverts commit 7e3dd50.

(cherry picked from commit 62033d0)

Co-authored-by: Matt Gogerly <6519811+mattgogerly@users.noreply.github.com>
ryanjohnsontv added a commit to homedepot/deck that referenced this pull request Apr 4, 2024
* fix: UI crashes when running pipeline(s) with many stages. (backport spinnaker#9960) (spinnaker#9974)

Co-authored-by: armory-abedonik <106548537+armory-abedonik@users.noreply.github.com>

* Revert "fix(core): conditionally hide expression evaluation warning messages (spinnaker#9771)" (spinnaker#10021) (spinnaker#10025)

This reverts commit 7e3dd50.

(cherry picked from commit 62033d0)

Co-authored-by: Matt Gogerly <6519811+mattgogerly@users.noreply.github.com>

* fix: Scaling bounds should parse float not int (spinnaker#10026) (spinnaker#10035)

* fix: Scaling bounds should parse float not int

Currently the API can do this, the model supports this, but the parseInt removes decimals from the UI

* fix: Decimal support for upper/lower bound ASG tests

(cherry picked from commit b763cae)

Co-authored-by: Jason <jason.mcintosh@armory.io>

* Fix CreateSecurityGroups ternary

* Remove failing test for disabled action

* Temporally adding GH workflows to build Docker from this branch

* Temporally disabling other GHA workflows

* Adding 'thd' prefix to IMAGE_NAME env var

* Changing image name from 'deck' to 'thd-deck'

* Apply master GHA changes

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: armory-abedonik <106548537+armory-abedonik@users.noreply.github.com>
Co-authored-by: Matt Gogerly <6519811+mattgogerly@users.noreply.github.com>
Co-authored-by: Jason <jason.mcintosh@armory.io>
Co-authored-by: Rodrigo Tovar <rodrigotovar398@gmail.com>
sahititarigoppula pushed a commit to OpsMx/deck-oes that referenced this pull request May 31, 2024
…essages (spinnaker#9771)" (spinnaker#10021) (spinnaker#10023)

This reverts commit 7e3dd50.

(cherry picked from commit 62033d0)

Co-authored-by: Matt Gogerly <6519811+mattgogerly@users.noreply.github.com>
sahititarigoppula pushed a commit to OpsMx/deck-oes that referenced this pull request May 31, 2024
…essages (spinnaker#9771)" (spinnaker#10021) (spinnaker#10022)

This reverts commit 7e3dd50.

(cherry picked from commit 62033d0)

Co-authored-by: Matt Gogerly <6519811+mattgogerly@users.noreply.github.com>
sahititarigoppula pushed a commit to OpsMx/deck-oes that referenced this pull request Jun 5, 2024
ryanjohnsontv added a commit to homedepot/deck that referenced this pull request Sep 12, 2024
* fix(core): Do not set static document base URL (spinnaker#9890) (spinnaker#9892)

The previous change to enable optional path-based routing (spinnaker#9802) added a `<base>` tag, which regressed serving hash-based routing at non-root public paths.

This change returns to AngularJS's default behavior when using hash-based routing.  Note that path-based routing will continue to only function when served from a domain root.

Resolves spinnaker/spinnaker#6723

(cherry picked from commit 5ac7516)

Co-authored-by: jcavanagh <jcavanagh@users.noreply.github.com>

* fix(aws): fix instance type selector by allowing instance types that can't be validated. (spinnaker#9893) (spinnaker#9895)

* fix(aws): fix instance type selector by allowing instance types that can't be validated.

spinnaker/spinnaker#6734

* fix(aws): adding test for instance type selector fix

spinnaker/spinnaker#6734
(cherry picked from commit 563b6f6)

Co-authored-by: Prathibha Datta Kumar <kprathib@amazon.com>

* fix(links): update link to spinnaker release changelog (spinnaker#9897) (spinnaker#9900)

* fix(links): update link to spinnaker release changelog

* prettier

(cherry picked from commit 1591513)

Co-authored-by: Jared Stehler <jared.stehler@gmail.com>

* fix(aws): Fixing bugs related to clone CX when instance types are incompatible with image/region (spinnaker#9901) (spinnaker#9907)

* fix(aws): Fixing bugs related to clone UX when instance types are incompatible with image/region

Displaying warnings when incompatible instance types are removed

spinnaker/spinnaker#6734

* fix(aws): PR feedback

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit d7290c4)

Co-authored-by: Prathibha Datta Kumar <kprathib@amazon.com>

* chore(dependencies): Autobump spinnakerGradleVersion (spinnaker#9916) (spinnaker#9927)

Co-authored-by: root <root@2dd4f76bffcc>
(cherry picked from commit 64d03bc)

Co-authored-by: spinnakerbot <spinbot@spinnaker.io>

* feat(pipeline): added feature flag for pipeline when mj stage child (spinnaker#9914) (spinnaker#9921)

* feat(pipeline): added feature flag for pipeline when mj stage child

* fix(pipeline): added verification for sub pipe data

* added guard verification for undefined data

Co-authored-by: Fernando Freire <fernando.freire@armory.io>
(cherry picked from commit 4b6fd53)

Co-authored-by: Oscar Michel Herrera <oscarmichelh@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>

* fix(timeout): Added feature flag for rollback timeout ui input. (backport spinnaker#9937) (spinnaker#9941)

* fix(timeout): Added feature flag for rollback timeout ui input. (spinnaker#9937)

* fix(timeout): Added feature flag for rollback timeout ui input.

* fix(timeout): Added feature flag for rollback timeout ui input.

(cherry picked from commit e239be3)

# Conflicts:
#	packages/amazon/src/pipeline/stages/rollbackCluster/rollbackClusterStage.html

* fix(timeout): Added feature flag for rollback timeout ui input. (spinnaker#9944)

---------

Co-authored-by: DanielaS12 <111055962+DanielaS12@users.noreply.github.com>

* [CN-1890] disable deploy options

* fix(google): Resolved typo errors in GCE Autoscaler feature (spinnaker#9947)

* Publish packages to NPM (spinnaker#9949)

* chore(publish): publish packages (2250a47)

 - deck-app@2.4.3
 - @spinnaker/google@0.2.4

* feat(peerdep-sync): Synchronize peerdependencies

* chore(publish): publish peerdeps (2250a47)

 - @spinnaker/pluginsdk-peerdeps@0.9.0

---------

Co-authored-by: spinnakerbot <spinnakerbot@spinnaker.io>

* [CN-1890] remove extra true

* fix(6755): Resolved issue regarding warning reporting when cloning a server group in AWS (spinnaker#9948)

* Revert "feat(Blue/Green): Add warning label and enhance disable/enable manifest stage with Deployment kind." (spinnaker#9951)

* chore(dev): specifying React code for Deck PRs (spinnaker#9953)

Co-authored-by: Cameron Motevasselani <cameron@armory.io>

* feat(provider/cloudrun): Added cloudrun functionality to deck (spinnaker#9931)

* feat(provider/cloudrun): Added cloudrun functionality to deck

* feat(provider/cloudrun): Incorporated Suggested Changes

* feat(provider/cloudRun): Fixed build issue

---------

Co-authored-by: rsinghsidhu <rsinghsiddhu@salesforce.com>

* chore(feature-flag): mj parent pipeline enabled by default (spinnaker#9954)

Co-authored-by: ovidiupopa07 <105648914+ovidiupopa07@users.noreply.github.com>

* Publish packages to NPM (spinnaker#9955)

* chore(publish): publish packages (e1b8d70)

 - deck-app@2.5.0

* feat(peerdep-sync): Synchronize peerdependencies

* chore(publish): publish peerdeps (e1b8d70)

 - @spinnaker/pluginsdk-peerdeps@0.10.0

---------

Co-authored-by: spinnakerbot <spinnakerbot@spinnaker.io>

* feat(deck): make StageFailureMessage component overridable (backport spinnaker#9994) (spinnaker#10007)

* feat(deck): make StageFailureMessage component overridable (spinnaker#9994)

(cherry picked from commit 39f70cc)

# Conflicts:
#	version.json

* chore(build): fix backport merge conflict

---------

Co-authored-by: Matt <6519811+mattgogerly@users.noreply.github.com>

* Revert "fix(core): conditionally hide expression evaluation warning messages (spinnaker#9771)" (spinnaker#10021) (spinnaker#10024)

This reverts commit 7e3dd50.

(cherry picked from commit 62033d0)

Co-authored-by: Matt Gogerly <6519811+mattgogerly@users.noreply.github.com>

* fix: Scaling bounds should parse float not int (spinnaker#10026) (spinnaker#10031)

* fix: Scaling bounds should parse float not int

Currently the API can do this, the model supports this, but the parseInt removes decimals from the UI

* fix: Decimal support for upper/lower bound ASG tests

(cherry picked from commit b763cae)

Co-authored-by: Jason <jason.mcintosh@armory.io>

* feat(helm/bake): Add additional input fields where we can fill in details of the APIs versions (spinnaker#10036) (spinnaker#10046)

- These input fields will not be pre-populated with versions of the target cluster available in the environment.

- They will become part of the bake result.

- Added API_VERSIONS_ENABLED env variable flag

(cherry picked from commit d968183)

Co-authored-by: Krystian <24556350+ciurescuraul@users.noreply.github.com>

* fix: Updating Lambda functions available Runtimes (spinnaker#10055) (spinnaker#10056)

(cherry picked from commit 669d1ed)

Co-authored-by: Christos Arvanitis <christos.arvanitis@armory.io>

* Update 1.29.7 (#3)

* fix: UI crashes when running pipeline(s) with many stages. (backport spinnaker#9960) (spinnaker#9974)

Co-authored-by: armory-abedonik <106548537+armory-abedonik@users.noreply.github.com>

* Revert "fix(core): conditionally hide expression evaluation warning messages (spinnaker#9771)" (spinnaker#10021) (spinnaker#10025)

This reverts commit 7e3dd50.

(cherry picked from commit 62033d0)

Co-authored-by: Matt Gogerly <6519811+mattgogerly@users.noreply.github.com>

* fix: Scaling bounds should parse float not int (spinnaker#10026) (spinnaker#10035)

* fix: Scaling bounds should parse float not int

Currently the API can do this, the model supports this, but the parseInt removes decimals from the UI

* fix: Decimal support for upper/lower bound ASG tests

(cherry picked from commit b763cae)

Co-authored-by: Jason <jason.mcintosh@armory.io>

* Fix CreateSecurityGroups ternary

* Remove failing test for disabled action

* Temporally adding GH workflows to build Docker from this branch

* Temporally disabling other GHA workflows

* Adding 'thd' prefix to IMAGE_NAME env var

* Changing image name from 'deck' to 'thd-deck'

* Apply master GHA changes

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: armory-abedonik <106548537+armory-abedonik@users.noreply.github.com>
Co-authored-by: Matt Gogerly <6519811+mattgogerly@users.noreply.github.com>
Co-authored-by: Jason <jason.mcintosh@armory.io>
Co-authored-by: Rodrigo Tovar <rodrigotovar398@gmail.com>

* Update GHA branch name

* Disable cloudrun "Edit Load Balancer"

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: jcavanagh <jcavanagh@users.noreply.github.com>
Co-authored-by: Prathibha Datta Kumar <kprathib@amazon.com>
Co-authored-by: Jared Stehler <jared.stehler@gmail.com>
Co-authored-by: spinnakerbot <spinbot@spinnaker.io>
Co-authored-by: Oscar Michel Herrera <oscarmichelh@gmail.com>
Co-authored-by: DanielaS12 <111055962+DanielaS12@users.noreply.github.com>
Co-authored-by: pjberry16 <pjberry16@gmail.com>
Co-authored-by: SusmithaGundu <93190458+SusmithaGundu@users.noreply.github.com>
Co-authored-by: Spinnaker Bot <87720302+spinnakerbot2@users.noreply.github.com>
Co-authored-by: spinnakerbot <spinnakerbot@spinnaker.io>
Co-authored-by: pjberry16 <76484282+pjberry16@users.noreply.github.com>
Co-authored-by: Rajinderpal Singh Siddhu <61963157+siddhu-opsmx@users.noreply.github.com>
Co-authored-by: Cameron Motevasselani <cmotevasselani@gmail.com>
Co-authored-by: Cameron Motevasselani <cameron@armory.io>
Co-authored-by: rsinghsidhu <rsinghsiddhu@salesforce.com>
Co-authored-by: Krzysztof Kotula <kkotula13@gmail.com>
Co-authored-by: ovidiupopa07 <105648914+ovidiupopa07@users.noreply.github.com>
Co-authored-by: Matt <6519811+mattgogerly@users.noreply.github.com>
Co-authored-by: Jason <jason.mcintosh@armory.io>
Co-authored-by: Krystian <24556350+ciurescuraul@users.noreply.github.com>
Co-authored-by: Christos Arvanitis <christos.arvanitis@armory.io>
Co-authored-by: armory-abedonik <106548537+armory-abedonik@users.noreply.github.com>
Co-authored-by: Rodrigo Tovar <rodrigotovar398@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Reviewed and ready for merge target-release/1.28
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants