Skip to content

Commit

Permalink
Merge pull request #573 from OpenVoiceOS/release-0.2.5a1
Browse files Browse the repository at this point in the history
Release 0.2.5a1
  • Loading branch information
JarbasAl authored Oct 18, 2024
2 parents a26b7b7 + 9a41444 commit 8a0a53e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Changelog

## [0.2.4a1](https://github.com/OpenVoiceOS/ovos-core/tree/0.2.4a1) (2024-10-16)
## [0.2.5a1](https://github.com/OpenVoiceOS/ovos-core/tree/0.2.5a1) (2024-10-18)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-core/compare/0.2.3...0.2.4a1)
[Full Changelog](https://github.com/OpenVoiceOS/ovos-core/compare/0.2.4...0.2.5a1)

**Merged pull requests:**

- fix:standardize\_lang [\#568](https://github.com/OpenVoiceOS/ovos-core/pull/568) ([JarbasAl](https://github.com/JarbasAl))
- fix:fallback match [\#572](https://github.com/OpenVoiceOS/ovos-core/pull/572) ([JarbasAl](https://github.com/JarbasAl))



Expand Down
9 changes: 6 additions & 3 deletions ovos_core/intent_services/fallback_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,20 @@ def _collect_fallback_skills(self, message: Message,
def handle_ack(msg):
skill_id = msg.data["skill_id"]
if msg.data.get("can_handle", True):
if skill_id in self.registered_fallbacks:
if skill_id in in_range:
fallback_skills.append(skill_id)
LOG.info(f"{skill_id} will try to handle fallback")
LOG.info(f"{skill_id} will try to handle fallback")
else:
LOG.debug(f"{skill_id} is out of range, skipping")
else:
LOG.info(f"{skill_id} will NOT try to handle fallback")
LOG.debug(f"{skill_id} does NOT WANT to try to handle fallback")
skill_ids.append(skill_id)

if in_range: # no need to search if no skills available
self.bus.on("ovos.skills.fallback.pong", handle_ack)

LOG.info("checking for FallbackSkillsV2 candidates")
message.data["range"] = (fb_range.start, fb_range.stop)
# wait for all skills to acknowledge they want to answer fallback queries
self.bus.emit(message.forward("ovos.skills.fallback.ping",
message.data))
Expand Down
4 changes: 2 additions & 2 deletions ovos_core/version.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# START_VERSION_BLOCK
VERSION_MAJOR = 0
VERSION_MINOR = 2
VERSION_BUILD = 4
VERSION_ALPHA = 0
VERSION_BUILD = 5
VERSION_ALPHA = 1
# END_VERSION_BLOCK

# for compat with old imports
Expand Down
7 changes: 6 additions & 1 deletion test/end2end/session/test_fallback.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def wait_for_n_messages(n):
# confirm all expected messages are sent
expected_messages = [
"recognizer_loop:utterance",
# FallbackV2
# Fallback High
"ovos.skills.fallback.ping",
"ovos.skills.fallback.pong",
"ovos.skills.fallback.pong",
Expand All @@ -361,6 +361,11 @@ def wait_for_n_messages(n):
f"ovos.skills.fallback.{self.skill_id2}.response",
f"ovos.skills.fallback.{self.skill_id2}.killed", # killable_event decorator response

# Fallback Medium
"ovos.skills.fallback.ping",
"ovos.skills.fallback.pong",
"ovos.skills.fallback.pong",

# skill executing
f"ovos.skills.fallback.{self.skill_id}.request",
f"ovos.skills.fallback.{self.skill_id}.start",
Expand Down

0 comments on commit 8a0a53e

Please sign in to comment.