Skip to content

ci/soak: doSoakTest(): name parameters#1817

Merged
alxndrsn merged 2 commits into
getodk:masterfrom
alxndrsn:soak-named-params
Apr 28, 2026
Merged

ci/soak: doSoakTest(): name parameters#1817
alxndrsn merged 2 commits into
getodk:masterfrom
alxndrsn:soak-named-params

Conversation

@alxndrsn
Copy link
Copy Markdown
Contributor

@alxndrsn alxndrsn commented Apr 25, 2026

Convert doSoakTest() function arguments to named object properties. This makes it much easier to see what each number is, which is very helpful when understanding, modifying and investigating soak test failures, changes etc.

Ref #1791

What has been done to verify that this works as intended?

These changes have been in use in multiple CI runs at #1791.

Why is this the best possible solution? Were any other approaches considered?

Just a helpful little change. #1791 adds a new param to the function, which change becomes very hard to read with non-named function params.

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

No change - just in tests.

Does this change require updates to the API documentation? If so, please update docs/api.yaml as part of this PR.

No.

Before submitting this PR, please make sure you have:

  • run make test and confirmed all checks still pass, or witnessed Github completing all checks with success
  • verified that any code from external sources are properly credited in comments or that everything is internally sourced

Convert `doSoakTest()` function arguments to named object properties.  This makes it much easier to see what each number is, which is very helpful when understanding, modifying and investigating soak test failures, changes etc.

Ref getodk#1791
@alxndrsn alxndrsn marked this pull request as ready for review April 25, 2026 07:11
Copy link
Copy Markdown
Contributor

@sadiqkhoja sadiqkhoja left a comment

Choose a reason for hiding this comment

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

I ❤️ this change. I read somewhere that anytime you've more than few arguments in function than it's time to introduce an object.

@alxndrsn alxndrsn merged commit a2ff0e2 into getodk:master Apr 28, 2026
5 checks passed
@alxndrsn alxndrsn deleted the soak-named-params branch April 28, 2026 12:36
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