Remove continue-on-error so the default applies#2303
Merged
Adamantios merged 21 commits intomainfrom Feb 18, 2025
Merged
Conversation
The default value for the `continue-on-error` flag is `false`. Because the flag was set to `true` for the unit tests, a green status was being reported despite them failing due to an infinite loop introduced in the dev mode in #2221. As a result, the failure went unnoticed for 5 months, which eventually led to additional bugs in the CLI, since its tests appeared to pass.
13 tasks
We do not want all the matrix jobs to get canceled if one fails.
13 tasks
Fix the regressed packages' tests [no ci]
Fix the regressed CLI tests [no ci]
Fix `autonomy deploy build` command [no ci]
- Replaced `while` loop with a `for`, using `itertools.chain` for cleaner iteration over path and parents (#2304 (comment)). - Used `is_file()` instead of `exists()` to explicitly check for `packages.json`. - Improved error message for clarity. - Simplified path resolution by avoiding redundant `Path(path)`.
Fix infinite loop in dev mode [no ci]
# Conflicts: # docs/package_list.md # packages/packages.json # packages/valory/agents/offend_slash/aea-config.yaml # packages/valory/agents/register_termination/aea-config.yaml # packages/valory/contracts/gnosis_safe/contract.yaml # packages/valory/skills/offend_slash_abci/skill.yaml # packages/valory/skills/register_termination_abci/skill.yaml # packages/valory/skills/slashing_abci/skill.yaml # packages/valory/skills/termination_abci/skill.yaml # packages/valory/skills/transaction_settlement_abci/skill.yaml
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2303 +/- ##
==========================================
- Coverage 94.40% 93.12% -1.28%
==========================================
Files 260 225 -35
Lines 16110 16366 +256
==========================================
+ Hits 15208 15241 +33
- Misses 902 1125 +223
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
The user image fails to build since https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20250209.1 if using `ubuntu-latest`. [no ci]
Release `v0.19.4` [no ci]
OjusWiZard
approved these changes
Feb 18, 2025
solarw
approved these changes
Feb 18, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Proposed changes
The default value for the
continue-on-errorflag isfalse. Because the flag was set totruefor the unit tests, a green status was being reported despite them failing due to an infinite loop introduced in the dev mode in #2221. As a result, the failure went unnoticed for 5 months, which eventually led to additional bugs in the CLI, since its tests appeared to pass.This issue was first mentioned in #2292 (comment).
Fixes
n/a
Types of changes
What types of changes does your code introduce? (A breaking change is a fix or feature that would cause existing functionality and APIs to not work as expected.)
Put an
xin the box that appliesChecklist
Put an
xin the boxes that apply.mainbranch (left side). Also you should start your branch off ourmain.Further comments
n/a