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 independent 6.8] Add gsheet utilities #2528

Open
wants to merge 4 commits into
base: garnitin/add-gke-load-testing/improvements-in-run-script
Choose a base branch
from

Conversation

gargnitingoogle
Copy link
Collaborator

@gargnitingoogle gargnitingoogle commented Sep 24, 2024

Description

Add utilities for gsheet

  1. Appends given tabular data to the given gsheet id and worksheet name.
  2. Returns url for a gsheet given its ID.
  3. Adds unit tests for the above utilities.

This is on top of #2498 and is followed in #2524 .

Link to the issue in case of a bug fix.

NA

Testing details

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

@kislaykishore kislaykishore requested review from a team, kislaykishore and tritone and removed request for a team and kislaykishore September 24, 2024 09:06
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-gsheet-utility branch from 4fd500c to 87b8aac Compare September 24, 2024 09:06
@kislaykishore kislaykishore requested a review from a team September 24, 2024 09:06
Copy link

codecov bot commented Sep 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.86%. Comparing base (c5cc97f) to head (87b8aac).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2528      +/-   ##
==========================================
- Coverage   78.87%   78.86%   -0.02%     
==========================================
  Files         106      106              
  Lines       11690    11696       +6     
==========================================
+ Hits         9221     9224       +3     
- Misses       1990     1991       +1     
- Partials      479      481       +2     
Flag Coverage Δ
unittests 78.86% <ø> (-0.02%) ⬇️

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 force-pushed the garnitin/add-gke-load-testing/add-gsheet-utility branch from 87b8aac to 3a6f7ab Compare September 24, 2024 15:45
@gargnitingoogle gargnitingoogle changed the base branch from master to garnitin/add-gke-load-testing/improvements-in-run-script September 24, 2024 15:47
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/improvements-in-run-script branch from 8e19d51 to ecdee7c Compare September 25, 2024 07:21
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-gsheet-utility branch from 3a6f7ab to 172032d Compare September 25, 2024 07:21
@gargnitingoogle gargnitingoogle changed the title [testing-on-gke part indepdent] Add gsheet utilities [testing-on-gke part independent] Add gsheet utilities Sep 25, 2024
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/improvements-in-run-script branch from ecdee7c to 52dd115 Compare September 25, 2024 12:33
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-gsheet-utility branch from 172032d to 390fe46 Compare September 25, 2024 12:33
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/improvements-in-run-script branch from 52dd115 to e875e2c Compare September 25, 2024 13:45
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-gsheet-utility branch 2 times, most recently from b081112 to 3ed138f Compare September 25, 2024 14:14
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/improvements-in-run-script branch from bdf6b44 to 60aafb2 Compare September 27, 2024 04:59
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-gsheet-utility branch from 3ed138f to 9d14972 Compare September 27, 2024 04:59
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/improvements-in-run-script branch from 60aafb2 to 0b97cc6 Compare September 27, 2024 06:12
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-gsheet-utility branch from 9d14972 to 4b551a4 Compare September 27, 2024 06:12
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-gsheet-utility branch from 2bf79fa to eb09af2 Compare September 27, 2024 09:31
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/improvements-in-run-script branch from fc9e744 to e308a05 Compare September 27, 2024 09:44
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-gsheet-utility branch from eb09af2 to 78240a9 Compare September 27, 2024 09:44
Returns exit-code which would be non-zero for error.
"""
result = subprocess.run(
[word for word in command.split(" ") if (word and not str.isspace(word))],
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Suggested change
[word for word in command.split(" ") if (word and not str.isspace(word))],
[word for word in command.split(" ") if word and word.strip()],

@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/improvements-in-run-script branch from e308a05 to 098cd78 Compare September 27, 2024 12:45
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-gsheet-utility branch from 78240a9 to 18c2f27 Compare September 27, 2024 12:45
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/improvements-in-run-script branch from 098cd78 to 4f58431 Compare September 27, 2024 13:37
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-gsheet-utility branch from 18c2f27 to 1a38752 Compare September 27, 2024 13:37
@gargnitingoogle gargnitingoogle changed the title [testing-on-gke part independent] Add gsheet utilities [testing-on-gke part independent 6.8] Add gsheet utilities Sep 27, 2024
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/improvements-in-run-script branch from 4f58431 to 53858f6 Compare September 27, 2024 14:59
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-gsheet-utility branch from 1a38752 to f524114 Compare September 27, 2024 14:59
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/improvements-in-run-script branch from 53858f6 to 4970493 Compare September 30, 2024 04:42
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-gsheet-utility branch from f524114 to e2ff044 Compare September 30, 2024 04:42
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/improvements-in-run-script branch from 4970493 to b5fb15b Compare September 30, 2024 05:05
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-gsheet-utility branch from e2ff044 to 3af14bf Compare September 30, 2024 05:05

class GsheetTest(unittest.TestCase):

# @classmethod
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

remove this commented out code

@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/improvements-in-run-script branch from b5fb15b to d5053d3 Compare October 2, 2024 23:35
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-gsheet-utility branch from 3af14bf to 3d46fbd Compare October 2, 2024 23:35
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/improvements-in-run-script branch from d5053d3 to 9329aae Compare October 3, 2024 00:13
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-gsheet-utility branch from 3d46fbd to 2dde58b Compare October 3, 2024 00:13
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/improvements-in-run-script branch from 9329aae to b4db597 Compare October 3, 2024 04:08
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-gsheet-utility branch from 2dde58b to 6b4bfa1 Compare October 3, 2024 04:08
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/improvements-in-run-script branch from b4db597 to d141ea7 Compare October 3, 2024 04:56
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-gsheet-utility branch 2 times, most recently from b1f82bc to 89a9ada Compare October 3, 2024 17:47
Utilities:
1. Append given tabular data to the given gsheet
   id and worksheet name.
2. Return url for a gsheet given its ID.
3. Adds unit tests for the above utilities.
@gargnitingoogle gargnitingoogle force-pushed the garnitin/add-gke-load-testing/add-gsheet-utility branch from 89a9ada to 1fcf030 Compare October 4, 2024 05:37
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.

1 participant