Skip to content

fix: kusto type error on null value , cleaning up comments - #1046

Merged
Vittoria (vittoriasalim) merged 2 commits into
mainfrom
vitto/fix_cleaning
Feb 3, 2026
Merged

Vittoria (vittoriasalim) merged 2 commits into
mainfrom
vitto/fix_cleaning

Conversation

@vittoriasalim

Copy link
Copy Markdown
Collaborator

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

@vittoriasalim Vittoria (vittoriasalim) changed the title fix: type error reading , cleaning up comments fix: kusto type error , cleaning up comments Feb 3, 2026
@vittoriasalim
Vittoria (vittoriasalim) marked this pull request as ready for review February 3, 2026 09:44
Copilot AI review requested due to automatic review settings February 3, 2026 09:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

@vittoriasalim Vittoria (vittoriasalim) changed the title fix: kusto type error , cleaning up comments fix: kusto type error on null value , cleaning up comments Feb 3, 2026
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@vittoriasalim
Vittoria (vittoriasalim) merged commit 2b4aca9 into main Feb 3, 2026
6 checks passed
@vittoriasalim
Vittoria (vittoriasalim) deleted the vitto/fix_cleaning branch February 3, 2026 13:34
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