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

[testing-on-gke part 4] Fixes and improvements in the test setup #2329

Merged

Conversation

gargnitingoogle
Copy link
Collaborator

@gargnitingoogle gargnitingoogle commented Aug 9, 2024

Description

  1. This removes dependence on user having to pass absolute paths for arguments in the run-script.
  2. Passes gcsfuse-mount-options, machine-type from run-script down to the python run script for better programmability rather than manipulating pod configs using SED.
  3. Uses kubectl namespace properly in the run-script.
  4. Makes output file/dir configurable.
  5. Added overall timeout on pod runs.

This is on top of #2359 (and #2319) .

This is followed up in #2348 .

Link to the issue in case of a bug fix.

NA

Testing details

  1. Manual - NA
  2. Unit tests - NA
  3. Integration tests - NA

@gargnitingoogle gargnitingoogle changed the base branch from master to garnitin/add-gke-load-testing/support-special-cases/v1 August 9, 2024 19:05
Copy link

codecov bot commented Aug 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.76%. Comparing base (3e95145) to head (c93cfac).
Report is 9 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2329      +/-   ##
==========================================
- Coverage   78.80%   78.76%   -0.05%     
==========================================
  Files         106      106              
  Lines       11668    11668              
==========================================
- Hits         9195     9190       -5     
- Misses       2003     2006       +3     
- Partials      470      472       +2     
Flag Coverage Δ
unittests 78.76% <ø> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gargnitingoogle gargnitingoogle marked this pull request as ready for review August 9, 2024 20:41
@gargnitingoogle gargnitingoogle requested review from Tulsishah and a team as code owners August 9, 2024 20:41
@gargnitingoogle gargnitingoogle requested review from ashmeenkaur and removed request for a team August 9, 2024 20:41
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/support-special-cases/v1 branch from f93aa87 to fdfc07a Compare August 12, 2024 04:21
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-run-script/v2 branch from 7240f6d to b581cbc Compare August 12, 2024 05:14
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/support-special-cases/v1 branch from fdfc07a to 2d7028e Compare August 12, 2024 06:37
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-run-script/v2 branch 5 times, most recently from bd29f19 to b292b8e Compare August 14, 2024 04:31
@gargnitingoogle gargnitingoogle changed the title Improve run-script [testing-on-gke part 5] Improve gke test-run script Aug 14, 2024
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-run-script/v2 branch from b292b8e to 867f50f Compare August 14, 2024 10:48
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/support-special-cases/v1 branch 3 times, most recently from 1576c15 to 6fd5de1 Compare August 19, 2024 06:06
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-run-script/v2 branch from 61f2418 to b201e4e Compare August 19, 2024 07:22
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/support-special-cases/v1 branch from e35a174 to bc506bc Compare August 19, 2024 09:00
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-run-script/v2 branch 2 times, most recently from 2ec75eb to a4552be Compare August 19, 2024 15:14
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/support-special-cases/v1 branch 2 times, most recently from 1dc79a2 to 120e393 Compare August 20, 2024 05:42
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-run-script/v2 branch from baa90a6 to 4c995cc Compare August 29, 2024 04:21
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-run-script/v2 branch 4 times, most recently from ae680fe to e85ce99 Compare September 3, 2024 07:17
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-run-script/v2 branch from e85ce99 to 6725598 Compare September 9, 2024 09:28
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-run-script/v2 branch 2 times, most recently from 9b50a76 to d29b830 Compare September 16, 2024 02:53
Use the give branch i.e. gcsfuse_branch
env var only when cloning code afresh.
If user passed gcsfuse_src_dir, don't
checkout gcsfuse_branch on it.
... from run-gke-tests.sh to run_tests.py.
This is needed as helm takes comma(,)
in the helm argument values as a separator
for values. This is a problem for gcsfuse-mount-options
as they may contain commas and are passed to helm as
a single argument. So it is necessary to
escape them while passing the value to helm.
Remove some commented out, unnecessary lines.
Move CSI code fetch dependency to csi-custom-driver-build path.
Remove some unnecessary function calls.
* Fix some docstrings
* Add some missing input checks
1. Remove check of pre-existence of implicit workload_config/output_dir.
2. Minor redundant code removal
Add an overall pod-timeout to
kill the run if the pods fail or
get stuck somehow.
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-run-script/v2 branch from d29b830 to c93cfac Compare September 17, 2024 07:10
@gargnitingoogle gargnitingoogle merged commit 9209696 into master Sep 18, 2024
12 checks 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.

2 participants