Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
push:
branches:
- main
- token-refresh # todo: remove hotwire
- streamfix # todo: remove hotwire
jobs:
publish:
runs-on: self-hosted
Expand Down
6 changes: 5 additions & 1 deletion internal/aws/route53.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ func (conf *Configuration) TestHostedZoneLiveness(hostedZoneName string) bool {

if err != nil {
log.Warn().Msgf("could not get record name %s - waiting 10 seconds and trying again: \nerror: %s", route53RecordName, err)
time.Sleep(10 * time.Second)
// Keep stream alive with progress indicators
for i := 0; i < 10; i++ {
time.Sleep(1 * time.Second)
log.Info().Msgf("DNS propagation check retry in %d seconds...", 10-i-1)
}
} else {
for _, ip := range ips {
// todo check ip against route53RecordValue in some capacity so we can pivot the value for testing
Expand Down
6 changes: 5 additions & 1 deletion internal/civo/civo.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ func (c *Configuration) TestDomainLiveness(domainName, domainID string) bool {

if err != nil {
log.Warn().Msgf("Could not get record name %s - waiting 10 seconds and trying again: \nerror: %s", civoRecordName, err)
time.Sleep(10 * time.Second)
// Keep stream alive with progress indicators
for i := 0; i < 10; i++ {
time.Sleep(1 * time.Second)
log.Info().Msgf("DNS propagation check retry in %d seconds...", 10-i-1)
}
} else {
for _, ip := range ips {
// todo check ip against route53RecordValue in some capacity so we can pivot the value for testing
Expand Down
6 changes: 5 additions & 1 deletion internal/cloudflare/cloudflare.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,11 @@ func (c *Configuration) TestDomainLiveness(domainName string) bool {

if err != nil {
log.Warn().Msgf("Could not get record name %s - waiting 10 seconds and trying again: \nerror: %s", record.Name, err)
time.Sleep(10 * time.Second)
// Keep stream alive with progress indicators
for i := 0; i < 10; i++ {
time.Sleep(1 * time.Second)
log.Info().Msgf("DNS propagation check retry in %d seconds...", 10-i-1)
}
} else {
for _, ip := range ips {
// todo check ip against route53RecordValue in some capacity so we can pivot the value for testing
Expand Down
6 changes: 5 additions & 1 deletion internal/digitalocean/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ func (c *Configuration) TestDomainLiveness(domainName string) bool {

if err != nil {
log.Warn().Msgf("Could not get record name %s - waiting 10 seconds and trying again: \nerror: %s", doRecordName, err)
time.Sleep(10 * time.Second)
// Keep stream alive with progress indicators
for i := 0; i < 10; i++ {
time.Sleep(1 * time.Second)
log.Info().Msgf("DNS propagation check retry in %d seconds...", 10-i-1)
}
} else {
for _, ip := range ips {
// todo check ip against route53RecordValue in some capacity so we can pivot the value for testing
Expand Down
6 changes: 5 additions & 1 deletion internal/vultr/vultr.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ func (c *Configuration) TestDomainLiveness(domainName string) bool {

if err != nil {
log.Warn().Msgf("Could not get record name %s - waiting 10 seconds and trying again: \nerror: %s", vultrRecordName, err)
time.Sleep(10 * time.Second)
// Keep stream alive with progress indicators
for i := 0; i < 10; i++ {
time.Sleep(1 * time.Second)
log.Info().Msgf("DNS propagation check retry in %d seconds...", 10-i-1)
}
} else {
for _, ip := range ips {
// todo check ip against route53RecordValue in some capacity so we can pivot the value for testing
Expand Down
6 changes: 5 additions & 1 deletion pkg/google/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ func (conf *Configuration) TestHostedZoneLiveness(hostedZoneName string) bool {

if err != nil {
log.Warn().Msgf("could not get record name %s - waiting 10 seconds and trying again: \nerror: %s", recordName, err)
time.Sleep(10 * time.Second)
// Keep stream alive with progress indicators
for i := 0; i < 10; i++ {
time.Sleep(1 * time.Second)
log.Info().Msgf("DNS propagation check retry in %d seconds...", 10-i-1)
}
} else {
for _, ip := range ips {
// todo check ip against route53RecordValue in some capacity so we can pivot the value for testing
Expand Down