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

T5791: ddclient: Adjust process handling #4267

Merged
merged 1 commit into from
Jan 4, 2025

Conversation

indrajitr
Copy link
Contributor

@indrajitr indrajitr commented Dec 29, 2024

Change Summary

  1. Avoid using process forking internally and let systemd manage the main process.
  2. Update smoketest tearDown() to wait longer to check if the process name is running.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Related PR(s)

Component(s) name

service dns dynamic

Proposed changes

How to test

Smoketest result

vyos@test-1229:~$ /usr/libexec/vyos/tests/smoke/cli/test_service_dns_dynamic.py
test_01_dyndns_service_standard (__main__.TestServiceDDNS.test_01_dyndns_service_standard) ... ok
test_02_dyndns_service_ipv6 (__main__.TestServiceDDNS.test_02_dyndns_service_ipv6) ... ok
test_03_dyndns_service_dual_stack (__main__.TestServiceDDNS.test_03_dyndns_service_dual_stack) ... ok
test_04_dyndns_rfc2136 (__main__.TestServiceDDNS.test_04_dyndns_rfc2136) ... ok
test_05_dyndns_hostname (__main__.TestServiceDDNS.test_05_dyndns_hostname) ... ok
test_06_dyndns_web_options (__main__.TestServiceDDNS.test_06_dyndns_web_options) ... ok
test_07_dyndns_dynamic_interface (__main__.TestServiceDDNS.test_07_dyndns_dynamic_interface) ... ok
test_08_dyndns_vrf (__main__.TestServiceDDNS.test_08_dyndns_vrf) ... ok

----------------------------------------------------------------------
Ran 8 tests in 330.073s

OK

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

Copy link

github-actions bot commented Dec 29, 2024

👍
No issues in PR Title / Commit Title

@c-po
Copy link
Member

c-po commented Dec 29, 2024

The main intention is to see if the rendered configuration can be loaded by the daemon and not cause a daemon crash.

@indrajitr
Copy link
Contributor Author

The main intention is to see if the rendered configuration can be loaded by the daemon and not cause a daemon crash.

Got it. Let me bump up the timeout and see. Maybe the process is taking quite a while to be active.

@indrajitr indrajitr force-pushed the ddclient-test-case-20241229 branch 2 times, most recently from 123fb29 to d3bfe67 Compare December 29, 2024 22:22
@indrajitr indrajitr force-pushed the ddclient-test-case-20241229 branch from d3bfe67 to 0c1b462 Compare December 29, 2024 22:23
@indrajitr indrajitr changed the title T5791: ddclient: Simplify 'teardown' method in smoketest T5791: ddclient: Increase timeout to test if process name is running Dec 29, 2024
@indrajitr indrajitr changed the title T5791: ddclient: Increase timeout to test if process name is running T5791: ddclient: Adjust process handling Dec 30, 2024
Copy link

CI integration ❌ failed!

Details

CI logs

  • CLI Smoketests (no interfaces) ❌ failed
  • CLI Smoketests (interfaces only) ❌ failed
  • Config tests 👍 passed
  • RAID1 tests 👍 passed
  • TPM tests 👍 passed

@c-po c-po merged commit 2d34411 into vyos:current Jan 4, 2025
15 of 18 checks passed
@c-po
Copy link
Member

c-po commented Jan 4, 2025

The problem must be something else - even with 10 seconds there are sporadic errors.

image

@indrajitr indrajitr deleted the ddclient-test-case-20241229 branch January 4, 2025 17:58
@indrajitr
Copy link
Contributor Author

#4276 might help. I cherry-picked this from ddclient-v4 where this will be the default behavior anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants