Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@j1shnu
Copy link

@j1shnu j1shnu commented Sep 8, 2025

Checklist
  • make test-all (UNIX) passes. CI will also test this
  • unit and/or integration tests are included (if applicable)
  • documentation is changed or added (if applicable)

Description of change

Added retry mechanism for package/DNS/command testing. Details are mentioned in issue #1034. The goss file syntax will be the following:

package:
  httpd:
    retry_count: 1      # Enables retry mechanism
    retry_delay: 10     # Delay (in seconds) before retrying the check
    installed: true
    name: httpd
    versions:
      - 2.2.15
    skip: false
dns:
  CNAME:c.dnstest.io:
    resolvable: true
    server: 208.67.222.222
    addrs:
    - "a.dnstest.io."
    retry_count: 2   # Enables retry mechanism
    retry_delay: 5.  # Delay (in seconds) before retrying the check
command:
  'go version':
    exit-status: 0
    exec: "go version"
    stdout:
    - go version go1.6 linux/amd64
    stderr: []
    timeout: 10000
    skip: false
    retry_count: 1   # Enables retry mechanism
    retry_delay: 5   # Delay (in seconds) before each retry attempt

📚 Documentation preview 📚: https://goss--1037.org.readthedocs.build/en/1037/

@j1shnu j1shnu requested a review from aelsabbahy as a code owner September 8, 2025 15:22
@j1shnu j1shnu changed the title Retry Mechanism for Package Testing #1034 Retry Mechanism for Package Testing Sep 9, 2025
@ns-mjames
Copy link

@aelsabbahy Could you help merge this pr? This is imperative for our testing env

@j1shnu j1shnu changed the title Retry Mechanism for Package Testing Retry Mechanism for Package|DNS Testing Dec 24, 2025
@j1shnu j1shnu changed the title Retry Mechanism for Package|DNS Testing Retry Mechanism for Package and DNS Tests Dec 24, 2025
@j1shnu j1shnu changed the title Retry Mechanism for Package and DNS Tests Retry Mechanism for Package, DNS and Command Tests Jan 10, 2026
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.

2 participants