Skip to content

fix: retry request to Mail - #69

Merged
DavidePrincipi merged 1 commit into
mainfrom
bug-7910
Mar 6, 2026
Merged

DavidePrincipi merged 1 commit into
mainfrom
bug-7910

Conversation

@DavidePrincipi

Copy link
Copy Markdown
Member

Prevent imapsync.service startup failure at boot, if Mail's agent is still down. Wait until systemd unit startup times out, or a response from Mail returns.

Refs NethServer/dev#7910

Prevent imapsync.service startup failure at boot, if Mail's agent is
still down. Wait until systemd unit startup times out, or a response
from Mail returns.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Improves imapsync startup robustness by retrying the request that fetches Mail master credentials when the Mail agent is temporarily unavailable, and stabilizes CI by pinning reusable GitHub workflows to a version tag.

Changes:

  • Add a retry loop around the reveal-master-credentials task invocation in reveal-master-secret.
  • Update GitHub Actions reusable workflow references from @main to @v1 in the module test workflow.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
imageroot/bin/reveal-master-secret Retries the Mail agent task call to avoid immediate failure when Mail is not yet ready at boot.
.github/workflows/test-module.yml Pins reusable workflows to @v1 for more stable CI behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@DavidePrincipi DavidePrincipi linked an issue Mar 6, 2026 that may be closed by this pull request
@DavidePrincipi
DavidePrincipi marked this pull request as ready for review March 6, 2026 09:21
@DavidePrincipi
DavidePrincipi requested a review from stephdl March 6, 2026 09:21
@stephdl

stephdl commented Mar 6, 2026

Copy link
Copy Markdown
Collaborator

Eventually we could increase the timeout of the service IIRCwe go to 90s

@DavidePrincipi
DavidePrincipi merged commit eb6efb4 into main Mar 6, 2026
7 checks passed
@DavidePrincipi
DavidePrincipi deleted the bug-7910 branch March 6, 2026 15:31
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.

Imapsync boot failure due to Mail agent not ready

3 participants