Repository navigation
fix: kusto type error on null value , cleaning up comments - #1046
Merged
Merged
Conversation
Vittoria (vittoriasalim)
marked this pull request as ready for review
February 3, 2026 09:44
Vittoria (vittoriasalim)
requested review from
Alyssa Vu (alyssa1303),
Anson Qian (anson627),
Sumanth Reddy CH (sumanthreddy29) and
xinWeiWei24
as code owners
February 3, 2026 09:44
Vittoria (vittoriasalim)
requested a review
from Lei Yao (wonderyl)
as a code owner
February 3, 2026 09:44
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a TypeError in the Kusto command generation script that occurred when attempting to parse None values as ISO dates. The fix changes default values from None to empty strings and removes outdated commented-out code.
Changes:
- Updated default values in the autoscale report template from None to empty strings to prevent type errors during Kusto ingestion
- Cleaned up commented-out configuration code related to Cilium network dataplane and private cluster setup
- Consolidated TODO comments for clarity
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| modules/python/clusterloader2/autoscale/autoscale.py | Changed None values to empty strings for group, measurement, and result fields to fix TypeError |
| scenarios/perf-eval/nap-complex/terraform-inputs/azure.tfvars | Removed commented-out network configuration code and consolidated TODO comment |
| scenarios/perf-eval/nap-complex/kubernetes/karpenter_nodepool.azure.yml | Removed commented-out startup taints configuration and simplified TODO comment |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Lei Yao (wonderyl)
approved these changes
Feb 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Program: /usr/bin/bash
│ Error Message: Traceback (most recent call last):
│ File "/mnt/vss/_work/1/s/modules/terraform/setup/table-data-connections/../../../python/kusto/generate_commands.py", line 76, in
│ main()
│ File "/mnt/vss/_work/1/s/modules/terraform/setup/table-data-connections/../../../python/kusto/generate_commands.py", line 72, in main
│ kusto_commands = base64.b64encode(generate_kusto_commands(json_object, table_name).encode("utf-8"))
│ File "/mnt/vss/_work/1/s/modules/terraform/setup/table-data-connections/../../../python/kusto/generate_commands.py", line 52, in generate_kusto_commands
│ infered_type = infer_type(value)
│ File "/mnt/vss/_work/1/s/modules/terraform/setup/table-data-connections/../../../python/kusto/generate_commands.py", line 39, in infer_type
│ isoparse(value)
│ File "/home/cloudtest/.local/lib/python3.10/site-packages/dateutil/parser/isoparser.py", line 37, in func
│ return f(self, str_in, *args, **kwargs)
│ File "/home/cloudtest/.local/lib/python3.10/site-packages/dateutil/parser/isoparser.py", line 134, in isoparse
│ components, pos = self._parse_isodate(dt_str)
│ File "/home/cloudtest/.local/lib/python3.10/site-packages/dateutil/parser/isoparser.py", line 208, in _parse_isodate
│ return self._parse_isodate_common(dt_str)
│ File "/home/cloudtest/.local/lib/python3.10/site-packages/dateutil/parser/isoparser.py", line 213, in _parse_isodate_common
│ len_str = len(dt_str)
│ TypeError: object of type 'NoneType' has no len()
│
│ State: exit status 1