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

Add device-level IO limit options #262

Merged
merged 2 commits into from
Feb 6, 2024

Conversation

bradleyayers
Copy link
Contributor

The Docker run options --device-read-bps, --device-read-iops, --device-write-bps, --device-write-iops can now be set.

The Docker run options `--device-read-bps`, `--device-read-iops`,
`--device-write-bps`, `--device-write-iops` can now be set.
Copy link
Contributor

@toote toote left a comment

Choose a reason for hiding this comment

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

Great implementation!

Would you mind adding tests for the options added so that we can merge it with confidence that future changes will not break it? :)

@pzeballos
Copy link
Contributor

Hi @bradleyayers! Tests are still failing, are you able to take a look? Thanks!

@bradleyayers
Copy link
Contributor Author

I've pushed a new commit… I had some trouble writing tests:

  • I couldn't find any instructions on how to run bats e.g. in the readme
  • I installed bats and ran bats tests/ but it failed not being able to load load "${BATS_PLUGIN_PATH}/load.bash"
  • When I push a commit to my branch the CI doesn't run because it needs approval to start

Ideally I'd be able to test and make sure it's all good before requesting a review, so apologies for the PR churn.

@bradleyayers
Copy link
Contributor Author

@toote ok I think it might be working now

@toote
Copy link
Contributor

toote commented Feb 6, 2024

I've pushed a new commit… I had some trouble writing tests:

  • I couldn't find any instructions on how to run bats e.g. in the readme
  • I installed bats and ran bats tests/ but it failed not being able to load load "${BATS_PLUGIN_PATH}/load.bash"

The plugin's documentation about development shows you how to do that either using the bk cli tool or the plugin tester (that runs bats)

  • When I push a commit to my branch the CI doesn't run because it needs approval to start

That is a security measure on purpose :)

Ideally I'd be able to test and make sure it's all good before requesting a review, so apologies for the PR churn.

Any improvement is more than welcome and efforts to comply with our review is extremely appreciated ❤️ In this process we all get better :)

@pzeballos pzeballos merged commit 18a296b into buildkite-plugins:master Feb 6, 2024
1 check passed
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.

3 participants