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

Fixes for SR2024 image #212

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

Fixes for SR2024 image #212

wants to merge 15 commits into from

Conversation

WillB97
Copy link
Contributor

@WillB97 WillB97 commented Sep 3, 2023

Due to the large number of changes added to main since the 0.11.0 release this branch starts at the release tag and the 0.11.2 release will be directly from this branch to minimise the amount of new code that needs testing.

  • Fixes Python 3.11 compatibility
  • Moves hotspot onto a standard wifi channel (channel 6)
  • Uses sys.executable for the usercode process so the same python is used
  • Correct the version bounds on tomli so it is installed with Python 3.10.5
  • Have metadata read OS info from /etc/srobo-release and fall-back to /etc/os-release to allow for custom OS names without affecting the OS

@WillB97 WillB97 marked this pull request as ready for review September 3, 2023 19:46
@WillB97 WillB97 requested a review from a team September 3, 2023 19:47
astoria/common/mqtt/wrapper.py Outdated Show resolved Hide resolved
astoria/astwifid.py Show resolved Hide resolved
Seems to have strange issues when building docs
Update depreciations in CI actions
@@ -110,7 +111,7 @@ async def run_process(self) -> None:
)
self._process_end_event.clear()
self._process = await asyncio.create_subprocess_exec(
"python3",
sys.executable,
Copy link
Member

Choose a reason for hiding this comment

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

This is a very neat way of handling this.

@@ -207,6 +208,7 @@ def log(
) -> None:
fh.write(data)
fh.flush()
fsync(fh.fileno())
Copy link
Member

Choose a reason for hiding this comment

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

Thank you for adding this, we had too many issues with logs not being synced to disk.

tasks = [asyncio.gather(
*(event.wait() for event in self._dependency_events.values()),
)]
tasks: List[Union[asyncio.Future[Any], asyncio.Task[Any]]] = [
Copy link
Member

Choose a reason for hiding this comment

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

Question: Should this Union simply be Awaitable?

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.

None yet

3 participants