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

[CWS] fix unmarshalling of regular int to time.Duration #31769

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

paulcacheux
Copy link
Contributor

What does this PR do?

As opposed to json that unmarshals numbers to float64, yaml will unmarshal them to int. This PR fixes this issue in HumanReadableDuration.

Motivation

Describe how you validated your changes

Possible Drawbacks / Trade-offs

Additional Notes

@paulcacheux paulcacheux added changelog/no-changelog team/agent-security qa/done QA done before merge and regressions are covered by tests labels Dec 4, 2024
@paulcacheux paulcacheux requested a review from a team as a code owner December 4, 2024 21:06
@github-actions github-actions bot added component/system-probe short review PR is simple enough to be reviewed quickly labels Dec 4, 2024
@paulcacheux paulcacheux changed the title [CWS] fix unmarshalling of regualar int to time.Duration [CWS] fix unmarshalling of regular int to time.Duration Dec 4, 2024
@agent-platform-auto-pr
Copy link
Contributor

Test changes on VM

Use this command from test-infra-definitions to manually test this PR changes on a VM:

inv aws.create-vm --pipeline-id=50362160 --os-family=ubuntu

Note: This applies to commit c4f4c16

@paulcacheux
Copy link
Contributor Author

/merge

@dd-devflow
Copy link

dd-devflow bot commented Dec 5, 2024

Devflow running: /merge

View all feedbacks in Devflow UI.


2024-12-05 08:19:52 UTC ℹ️ MergeQueue: pull request added to the queue

The median merge time in main is 24m.

@dd-mergequeue dd-mergequeue bot merged commit fef1eb7 into main Dec 5, 2024
257 checks passed
@dd-mergequeue dd-mergequeue bot deleted the paulcacheux/fix-ttl-v4 branch December 5, 2024 08:44
@github-actions github-actions bot added this to the 7.62.0 milestone Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/no-changelog component/system-probe qa/done QA done before merge and regressions are covered by tests short review PR is simple enough to be reviewed quickly team/agent-security
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants