instance_id
stringlengths
10
57
base_commit
stringlengths
40
40
created_at
stringdate
2014-04-30 14:58:36
2025-04-30 20:14:11
environment_setup_commit
stringlengths
40
40
hints_text
stringlengths
0
273k
patch
stringlengths
251
7.06M
problem_statement
stringlengths
11
52.5k
repo
stringlengths
7
53
test_patch
stringlengths
231
997k
meta
dict
version
stringclasses
864 values
install_config
dict
requirements
stringlengths
93
34.2k
environment
stringlengths
760
20.5k
FAIL_TO_PASS
listlengths
1
9.39k
FAIL_TO_FAIL
listlengths
0
2.69k
PASS_TO_PASS
listlengths
0
7.87k
PASS_TO_FAIL
listlengths
0
192
license_name
stringclasses
56 values
docker_image
stringlengths
42
89
image_name
stringlengths
42
89
Azure__WALinuxAgent-317
2455e86bc0dc4f5349370c58fd5a4516c83a2b2e
2016-07-12 21:30:35
2455e86bc0dc4f5349370c58fd5a4516c83a2b2e
msftclas: Hi __@brendandixon__, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! <span>You've already signed the contribution license agreement. Thanks!</span> <p>The agreement was validated by Microsoft and real humans are currently evaluati...
diff --git a/azurelinuxagent/common/version.py b/azurelinuxagent/common/version.py index 4f3e5972..d529bb86 100644 --- a/azurelinuxagent/common/version.py +++ b/azurelinuxagent/common/version.py @@ -66,6 +66,9 @@ AGENT_NAME_PATTERN = re.compile(AGENT_PATTERN) AGENT_DIR_PATTERN = re.compile(".*/{0}".format(AGENT_PATTER...
`systemctl stop waagent` hangs Reproes on Ubuntu 16.04 as well as CentOS 7. `systemctl stop walinuxagent` command hangs for a long time, although it eventually succeeds like after maybe 30-40 seconds. It used to be instant. I think it's related to the signal handling behavior that has been recently changed.
Azure/WALinuxAgent
diff --git a/tests/ga/test_update.py b/tests/ga/test_update.py index 36241b16..49006606 100644 --- a/tests/ga/test_update.py +++ b/tests/ga/test_update.py @@ -134,6 +134,16 @@ class UpdateTestCase(AgentTestCase): v.sort(reverse=True) return v + def get_error_file(self, error_data=NO_ERROR): + ...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 1, "test_score": 3 }, "num_modified_files": 4 }
unknown
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "nose", "pyasn1", "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.6", ...
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work certifi==2021.5.30 importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work nose...
name: WALinuxAgent channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - attrs=21.4.0=pyhd3eb1b0_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - impo...
[ "tests/ga/test_update.py::TestGuestAgentError::test_str", "tests/ga/test_update.py::TestGuestAgent::test_creation", "tests/ga/test_update.py::TestUpdate::test_run_latest_creates_only_one_signal_handler" ]
[]
[ "tests/ga/test_update.py::TestGuestAgentError::test_clear", "tests/ga/test_update.py::TestGuestAgentError::test_creation", "tests/ga/test_update.py::TestGuestAgentError::test_load_preserves_error_state", "tests/ga/test_update.py::TestGuestAgentError::test_mark_failure", "tests/ga/test_update.py::TestGuestAg...
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-321
9930df6600a061bcc5618b427ffa23cff5943f46
2016-07-13 19:17:07
9930df6600a061bcc5618b427ffa23cff5943f46
msftclas: Hi __@brendandixon__, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! <span>You've already signed the contribution license agreement. Thanks!</span> <p>The agreement was validated by Microsoft and real humans are currently evaluati...
diff --git a/azurelinuxagent/common/version.py b/azurelinuxagent/common/version.py index 222a7208..357d30ff 100644 --- a/azurelinuxagent/common/version.py +++ b/azurelinuxagent/common/version.py @@ -50,7 +50,7 @@ def get_distro(): AGENT_NAME = "WALinuxAgent" AGENT_LONG_NAME = "Azure Linux Agent" -AGENT_VERSION = '2...
[2.1.5.rc6] recycles indefinitely when child process crashes When I use 2.1.5rc6 code (9930df6600a061bcc5618b427ffa23cff5943f46) and pull in update for 2.1.5rc6 , it starts just fine and stops just fine. (so #297 is resolved) However when I kill the child process with SIGSEGV signal (pid 9215 below) ``` # pstree...
Azure/WALinuxAgent
diff --git a/tests/ga/test_update.py b/tests/ga/test_update.py index 49006606..74804fb9 100644 --- a/tests/ga/test_update.py +++ b/tests/ga/test_update.py @@ -627,7 +627,6 @@ class TestUpdate(UpdateTestCase): if versions is None or len(versions) <= 0: versions = [latest_version] - self.up...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_hyperlinks", "has_issue_reference", "has_git_commit_hash", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 2, "t...
unknown
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "nose", "pyasn1", "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.6", ...
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work certifi==2021.5.30 importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work nose...
name: WALinuxAgent channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - attrs=21.4.0=pyhd3eb1b0_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - impo...
[ "tests/ga/test_update.py::TestUpdate::test_ensure_latest_agent_includes_old_agents", "tests/ga/test_update.py::TestUpdate::test_run_latest_polling_stops_at_failure", "tests/ga/test_update.py::TestUpdate::test_run_latest_polling_stops_at_success", "tests/ga/test_update.py::TestUpdate::test_run_latest_polls_and...
[]
[ "tests/ga/test_update.py::TestGuestAgentError::test_clear", "tests/ga/test_update.py::TestGuestAgentError::test_creation", "tests/ga/test_update.py::TestGuestAgentError::test_load_preserves_error_state", "tests/ga/test_update.py::TestGuestAgentError::test_mark_failure", "tests/ga/test_update.py::TestGuestAg...
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-352
2de3f63e6f35e3c9ed51efae4949b3ccd0d2156c
2016-08-08 23:54:57
2de3f63e6f35e3c9ed51efae4949b3ccd0d2156c
diff --git a/azurelinuxagent/pa/deprovision/default.py b/azurelinuxagent/pa/deprovision/default.py index b570c318..3a916e21 100644 --- a/azurelinuxagent/pa/deprovision/default.py +++ b/azurelinuxagent/pa/deprovision/default.py @@ -74,6 +74,11 @@ class DeprovisionHandler(object): files_to_del = ['/root/.bash_hi...
[2.1.5]waagent doesn't delete /etc/resolv.conf during deprovisioning Description of problem: After deprovisioning, the /etc/resolv.conf is not deleted. Version-Release number of selected component (if applicable): WALinuxAgent-2.1.5 RHEL Version: RHEL-7.3 internal build How reproducible: 100% Steps to R...
Azure/WALinuxAgent
diff --git a/tests/pa/test_deprovision.py b/tests/pa/test_deprovision.py new file mode 100644 index 00000000..be349153 --- /dev/null +++ b/tests/pa/test_deprovision.py @@ -0,0 +1,48 @@ +# Copyright 2016 Microsoft Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this f...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 1, "test_score": 2 }, "num_modified_files": 2 }
unknown
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "nose", "pyasn1", "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.6", ...
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work certifi==2021.5.30 importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work nose...
name: WALinuxAgent channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - attrs=21.4.0=pyhd3eb1b0_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - impo...
[ "tests/pa/test_deprovision.py::TestDeprovision::test_deprovision", "tests/pa/test_deprovision.py::TestDeprovision::test_deprovision_ubuntu" ]
[]
[]
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-403
d0392908c8a8c66f41183696c0dbe5dfc3d34acc
2016-08-31 22:29:00
d0392908c8a8c66f41183696c0dbe5dfc3d34acc
diff --git a/azurelinuxagent/common/protocol/wire.py b/azurelinuxagent/common/protocol/wire.py index 287da33c..29a1663f 100644 --- a/azurelinuxagent/common/protocol/wire.py +++ b/azurelinuxagent/common/protocol/wire.py @@ -269,7 +269,7 @@ def ext_status_to_v1(ext_name, ext_status): "timestampUTC": timestamp ...
[2.1.5] AutoUpdate WALA error on RHEL-6.8 Description of problem: waagent fails to run the AutoUpdated WALA process. Version-Release number of selected component (if applicable): WALinuxAgent-2.1.5 RHEL Version: RHEL-6.8 Python Version: 2.6.6 How reproducible: 100% Steps to Reproduce: 1. Prepare a RHEL...
Azure/WALinuxAgent
diff --git a/tests/ga/test_update.py b/tests/ga/test_update.py index f4b33207..0e07119d 100644 --- a/tests/ga/test_update.py +++ b/tests/ga/test_update.py @@ -438,7 +438,8 @@ class TestGuestAgent(UpdateTestCase): agent = GuestAgent(path=self.agent_path) agent._unpack() agent._load_manifest() ...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 5 }
unknown
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "nose", "pyasn1", "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.6", ...
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work certifi==2021.5.30 importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work nose...
name: WALinuxAgent channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - attrs=21.4.0=pyhd3eb1b0_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - impo...
[ "tests/ga/test_update.py::TestUpdate::test_run_latest" ]
[]
[ "tests/ga/test_update.py::TestGuestAgentError::test_clear", "tests/ga/test_update.py::TestGuestAgentError::test_creation", "tests/ga/test_update.py::TestGuestAgentError::test_load_preserves_error_state", "tests/ga/test_update.py::TestGuestAgentError::test_mark_failure", "tests/ga/test_update.py::TestGuestAg...
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-542
960d64ae448a12075307e0ea2d3c38cb2124fc13
2017-01-10 21:37:00
6e9b985c1d7d564253a1c344bab01b45093103cd
diff --git a/azurelinuxagent/common/osutil/redhat.py b/azurelinuxagent/common/osutil/redhat.py index 8e86f6ec..fef9e152 100644 --- a/azurelinuxagent/common/osutil/redhat.py +++ b/azurelinuxagent/common/osutil/redhat.py @@ -84,7 +84,8 @@ class Redhat6xOSUtil(DefaultOSUtil): def set_dhcp_hostname(self, hostname): ...
[2.2.0+]Fail to send hostname to DHCP server during provisioning in RHEL-7 Description of problem: In RHEL-7, if NetworkManager is enabled, the hostname is not sent to DHCP server during provisioning, so that the VM internal DNS is not set to the DNS server. Version-Release number of selected component (if applicab...
Azure/WALinuxAgent
diff --git a/tests/utils/test_file_util.py b/tests/utils/test_file_util.py index f16f4099..76fb15ba 100644 --- a/tests/utils/test_file_util.py +++ b/tests/utils/test_file_util.py @@ -15,13 +15,12 @@ # Requires Python 2.4+ and Openssl 1.0+ # -from tests.tools import * import uuid -import unittest -import os -import...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 0, "test_score": 0 }, "num_modified_files": 3 }
2.2
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "", "pip_packages": [ "pyasn1", "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.4", "reqs_path": null...
attrs==22.2.0 certifi==2021.5.30 importlib-metadata==4.8.3 iniconfig==1.1.1 packaging==21.3 pluggy==1.0.0 py==1.11.0 pyasn1==0.5.1 pyparsing==3.1.4 pytest==7.0.1 tomli==1.2.3 typing_extensions==4.1.1 -e git+https://github.com/Azure/WALinuxAgent.git@960d64ae448a12075307e0ea2d3c38cb2124fc13#egg=WALinuxAgent zipp==3.6.0
name: WALinuxAgent channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 ...
[ "tests/utils/test_file_util.py::TestFileOperations::test_update_conf_file" ]
[]
[ "tests/utils/test_file_util.py::TestFileOperations::test_append_file", "tests/utils/test_file_util.py::TestFileOperations::test_get_all_files", "tests/utils/test_file_util.py::TestFileOperations::test_get_last_path_element", "tests/utils/test_file_util.py::TestFileOperations::test_read_write_file", "tests/u...
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-602
d3a25f6cba37f8f18330d1a55500a4648d22dc49
2017-03-03 23:01:11
6e9b985c1d7d564253a1c344bab01b45093103cd
brendandixon: LGTM
diff --git a/azurelinuxagent/common/protocol/hostplugin.py b/azurelinuxagent/common/protocol/hostplugin.py index 4c4c2290..bdae56e2 100644 --- a/azurelinuxagent/common/protocol/hostplugin.py +++ b/azurelinuxagent/common/protocol/hostplugin.py @@ -80,10 +80,10 @@ class HostPluginProtocol(object): def get_artifact_r...
Unhandled error ``` 2017/02/06 19:09:15.537324 ERROR get API versions failed with [(000009)HTTP GET failed] 2017/02/06 19:09:15.537516 ERROR Event: name=WALA, op=InitializeHostPlugin, message= 2017/02/06 19:09:15.538399 ERROR host plugin channel is not available 2017/02/06 19:09:15.545516 WARNING Agent WALinuxAgent...
Azure/WALinuxAgent
diff --git a/tests/ga/test_update.py b/tests/ga/test_update.py index a431a9b6..5277e594 100644 --- a/tests/ga/test_update.py +++ b/tests/ga/test_update.py @@ -17,30 +17,10 @@ from __future__ import print_function -import copy -import glob -import json -import os -import platform -import random -import re -import s...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 1 }, "num_modified_files": 6 }
2.2
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pyasn1", "nose", "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.4", ...
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work certifi==2021.5.30 importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work nose...
name: WALinuxAgent channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - attrs=21.4.0=pyhd3eb1b0_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - impo...
[ "tests/ga/test_update.py::TestGuestAgent::test_download_fallback" ]
[]
[ "tests/ga/test_update.py::TestGuestAgentError::test_clear", "tests/ga/test_update.py::TestGuestAgentError::test_creation", "tests/ga/test_update.py::TestGuestAgentError::test_load_preserves_error_state", "tests/ga/test_update.py::TestGuestAgentError::test_mark_failure", "tests/ga/test_update.py::TestGuestAg...
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-603
d3a25f6cba37f8f18330d1a55500a4648d22dc49
2017-03-03 23:32:44
6e9b985c1d7d564253a1c344bab01b45093103cd
brendandixon: LGTM
diff --git a/azurelinuxagent/common/protocol/hostplugin.py b/azurelinuxagent/common/protocol/hostplugin.py index 4c4c2290..bdae56e2 100644 --- a/azurelinuxagent/common/protocol/hostplugin.py +++ b/azurelinuxagent/common/protocol/hostplugin.py @@ -80,10 +80,10 @@ class HostPluginProtocol(object): def get_artifact_r...
Timing Issue with cloud-init and host keys Under some circumstances, provisioning can fail waiting for cloud-init to regenerate SSH host keys: ``` 2017/02/08 23:03:23.712479 INFO Wait for ssh host key to be generated. 2017/02/08 23:03:23.756726 ERROR run cmd 'ssh-keygen -lf /etc/ssh/ssh_host_rsa_key.pub' failed 201...
Azure/WALinuxAgent
diff --git a/tests/ga/test_update.py b/tests/ga/test_update.py index a431a9b6..5277e594 100644 --- a/tests/ga/test_update.py +++ b/tests/ga/test_update.py @@ -17,30 +17,10 @@ from __future__ import print_function -import copy -import glob -import json -import os -import platform -import random -import re -import s...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 3, "issue_text_score": 1, "test_score": 2 }, "num_modified_files": 7 }
2.2
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "nose", "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.4", "reqs_path": ...
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work certifi==2021.5.30 importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work nose...
name: WALinuxAgent channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - attrs=21.4.0=pyhd3eb1b0_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - impo...
[ "tests/ga/test_update.py::TestGuestAgent::test_download_fallback" ]
[]
[ "tests/ga/test_update.py::TestGuestAgentError::test_clear", "tests/ga/test_update.py::TestGuestAgentError::test_creation", "tests/ga/test_update.py::TestGuestAgentError::test_load_preserves_error_state", "tests/ga/test_update.py::TestGuestAgentError::test_mark_failure", "tests/ga/test_update.py::TestGuestAg...
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-638
7676bf85131673d4a02dcc43b18cdf24bb3a36ab
2017-03-30 23:31:41
6e9b985c1d7d564253a1c344bab01b45093103cd
diff --git a/azurelinuxagent/common/osutil/factory.py b/azurelinuxagent/common/osutil/factory.py index acd7f6ed..eee9f97a 100644 --- a/azurelinuxagent/common/osutil/factory.py +++ b/azurelinuxagent/common/osutil/factory.py @@ -76,6 +76,9 @@ def get_osutil(distro_name=DISTRO_NAME, else: return Redh...
Host plugin fallback should be sticky If we detect the connection to storage is not available, we should keep this state and continue using the host plugin.
Azure/WALinuxAgent
diff --git a/tests/protocol/test_hostplugin.py b/tests/protocol/test_hostplugin.py index 078af706..8ebb468c 100644 --- a/tests/protocol/test_hostplugin.py +++ b/tests/protocol/test_hostplugin.py @@ -113,21 +113,24 @@ class TestHostPlugin(AgentTestCase): def test_fallback(self): """ - Validate fal...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 0, "test_score": 3 }, "num_modified_files...
2.2
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "nose", "pyasn1", "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.6", ...
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work certifi==2021.5.30 importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work nose...
name: WALinuxAgent channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - attrs=21.4.0=pyhd3eb1b0_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - impo...
[ "tests/protocol/test_hostplugin.py::TestHostPlugin::test_fallback", "tests/protocol/test_wire.py::TestWireProtocolGetters::test_upload_status_blob_host_ga_plugin" ]
[ "tests/protocol/test_wire.py::TestWireProtocolGetters::test_getters", "tests/protocol/test_wire.py::TestWireProtocolGetters::test_getters_ext_no_public", "tests/protocol/test_wire.py::TestWireProtocolGetters::test_getters_ext_no_settings", "tests/protocol/test_wire.py::TestWireProtocolGetters::test_getters_no...
[ "tests/protocol/test_hostplugin.py::TestHostPlugin::test_no_fallback", "tests/protocol/test_hostplugin.py::TestHostPlugin::test_validate_block_blob", "tests/protocol/test_hostplugin.py::TestHostPlugin::test_validate_get_extension_artifacts", "tests/protocol/test_hostplugin.py::TestHostPlugin::test_validate_ht...
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-642
c6704cbad83b93763cf2403a77197559a67b9dca
2017-03-31 23:16:29
6e9b985c1d7d564253a1c344bab01b45093103cd
diff --git a/azurelinuxagent/common/event.py b/azurelinuxagent/common/event.py index 9265820a..fb2c97c7 100644 --- a/azurelinuxagent/common/event.py +++ b/azurelinuxagent/common/event.py @@ -65,8 +65,17 @@ class EventLogger(object): if not os.path.exists(self.event_dir): os.mkdir(self.event_dir) ...
Agent crash should log traceback When the extension handler crashes we get a generic 'agent crashed', we should log a traceback here.
Azure/WALinuxAgent
diff --git a/tests/common/test_event.py b/tests/common/test_event.py new file mode 100644 index 00000000..726474cd --- /dev/null +++ b/tests/common/test_event.py @@ -0,0 +1,90 @@ +# Copyright 2017 Microsoft Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file ex...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 0, "test_score": 3 }, "num_modified_files...
2.2
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pyasn1", "nose", "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.4", ...
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work certifi==2021.5.30 importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work nose...
name: WALinuxAgent channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - attrs=21.4.0=pyhd3eb1b0_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - impo...
[ "tests/common/test_event.py::TestEvent::test_save_event_cleanup", "tests/common/test_event.py::TestEvent::test_save_event_rollover" ]
[]
[ "tests/common/test_event.py::TestEvent::test_save_event", "tests/ga/test_update.py::TestGuestAgentError::test_clear", "tests/ga/test_update.py::TestGuestAgentError::test_creation", "tests/ga/test_update.py::TestGuestAgentError::test_load_preserves_error_state", "tests/ga/test_update.py::TestGuestAgentError:...
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-748
9bed39863b187154afbb805b74f647a484603f81
2017-06-06 19:23:36
6e9b985c1d7d564253a1c344bab01b45093103cd
diff --git a/azurelinuxagent/common/protocol/hostplugin.py b/azurelinuxagent/common/protocol/hostplugin.py index 464fd354..bf62cb54 100644 --- a/azurelinuxagent/common/protocol/hostplugin.py +++ b/azurelinuxagent/common/protocol/hostplugin.py @@ -288,12 +288,23 @@ class HostPluginProtocol(object): @staticmet...
2.2.11 on CentOS 6.9 - HostGAPlugin: Exception Put VM status: 'ascii' codec can't encode characters in position 83-85: ordinal not in range(128) Hi Guys, I have not been able to reproduce this issue myself but customer tried multiple times reinstalling the waagent and we are seeing these ascii codec errors in the lo...
Azure/WALinuxAgent
diff --git a/tests/protocol/test_hostplugin.py b/tests/protocol/test_hostplugin.py index e203615a..b18b6914 100644 --- a/tests/protocol/test_hostplugin.py +++ b/tests/protocol/test_hostplugin.py @@ -19,7 +19,7 @@ import base64 import json import sys - +from azurelinuxagent.common.future import ustr if sys.versio...
{ "commit_name": "merge_commit", "failed_lite_validators": [], "has_test_patch": true, "is_lite": true, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 1 }
2.2
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "nose", "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.4", "reqs_path": ...
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work certifi==2021.5.30 importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work nose...
name: WALinuxAgent channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - attrs=21.4.0=pyhd3eb1b0_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - impo...
[ "tests/protocol/test_hostplugin.py::TestHostPlugin::test_read_response_bytes", "tests/protocol/test_hostplugin.py::TestHostPlugin::test_read_response_error" ]
[]
[ "tests/protocol/test_hostplugin.py::TestHostPlugin::test_fallback", "tests/protocol/test_hostplugin.py::TestHostPlugin::test_fallback_failure", "tests/protocol/test_hostplugin.py::TestHostPlugin::test_no_fallback", "tests/protocol/test_hostplugin.py::TestHostPlugin::test_put_status_error_reporting", "tests/...
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-951
ab261b5f2ed0dfce4dd94adf924e68e0aaff5e7b
2017-11-28 01:19:07
6e9b985c1d7d564253a1c344bab01b45093103cd
boumenot: Let me know if this is the style of unit test you were thinking of.
diff --git a/azurelinuxagent/agent.py b/azurelinuxagent/agent.py index e99f7bed..87ab3c14 100644 --- a/azurelinuxagent/agent.py +++ b/azurelinuxagent/agent.py @@ -144,7 +144,7 @@ def main(args=[]): if command == "version": version() elif command == "help": - usage() + print(usage()) ...
WALA usage prompt lacks of " waagent -show-configuration" We can perform "waagent -show-configuration" to get current WALA configuration,but "waagent -help"lacks of this usage prompt.
Azure/WALinuxAgent
diff --git a/tests/test_agent.py b/tests/test_agent.py index 51b157dd..95994dba 100644 --- a/tests/test_agent.py +++ b/tests/test_agent.py @@ -15,9 +15,7 @@ # Requires Python 2.4+ and Openssl 1.0+ # -import mock import os.path -import sys from azurelinuxagent.agent import * from azurelinuxagent.common.conf imp...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 1, "test_score": 2 }, "num_modified_files": 1 }
2.2
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pyasn1", "nose", "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python"...
attrs==22.2.0 certifi==2021.5.30 importlib-metadata==4.8.3 iniconfig==1.1.1 nose==1.3.7 packaging==21.3 pluggy==1.0.0 py==1.11.0 pyasn1==0.5.1 pyparsing==3.1.4 pytest==7.0.1 tomli==1.2.3 typing_extensions==4.1.1 -e git+https://github.com/Azure/WALinuxAgent.git@ab261b5f2ed0dfce4dd94adf924e68e0aaff5e7b#egg=WALinuxAgent z...
name: WALinuxAgent channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 ...
[ "tests/test_agent.py::TestAgent::test_agent_usage_message" ]
[]
[ "tests/test_agent.py::TestAgent::test_accepts_configuration_path", "tests/test_agent.py::TestAgent::test_agent_accepts_configuration_path", "tests/test_agent.py::TestAgent::test_agent_does_not_pass_configuration_path", "tests/test_agent.py::TestAgent::test_agent_ensures_extension_log_directory", "tests/test...
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-954
b943cbc7067fbb8500a6a2ca1c7588f803ff7c81
2017-11-29 00:43:30
6e9b985c1d7d564253a1c344bab01b45093103cd
diff --git a/azurelinuxagent/common/event.py b/azurelinuxagent/common/event.py index 108cf009..af4dee6c 100644 --- a/azurelinuxagent/common/event.py +++ b/azurelinuxagent/common/event.py @@ -63,6 +63,7 @@ class WALAEventOperation: Partition = "Partition" ProcessGoalState = "ProcessGoalState" Provision = ...
Telemetry Event to Report Detected CPU and Memory There are cases where customers are paying for X CPUs and Y Memory, but they are not actually getting it. This is due to their kernel being improperly configured, or just being too old. The telemetry we have reports what Hyper-V gave the customer, which only tells half ...
Azure/WALinuxAgent
diff --git a/tests/pa/test_provision.py b/tests/pa/test_provision.py index 7045fccf..ab0a9102 100644 --- a/tests/pa/test_provision.py +++ b/tests/pa/test_provision.py @@ -15,9 +15,13 @@ # Requires Python 2.4+ and Openssl 1.0+ # +import json +import socket + import azurelinuxagent.common.utils.fileutil as fileutil ...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 1, "test_score": 2 }, "num_modified_files": 3 }
2.2
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pyasn1", "pip_packages": [ "nose", "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.4", "reqs_path": ...
attrs==22.2.0 certifi==2021.5.30 importlib-metadata==4.8.3 iniconfig==1.1.1 nose==1.3.7 packaging==21.3 pluggy==1.0.0 py==1.11.0 pyasn1 @ file:///Users/ktietz/demo/mc3/conda-bld/pyasn1_1629708007385/work pyparsing==3.1.4 pytest==7.0.1 tomli==1.2.3 typing_extensions==4.1.1 -e git+https://github.com/Azure/WALinuxAgent.gi...
name: WALinuxAgent channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 ...
[ "tests/pa/test_provision.py::TestProvision::test_provision_telemetry_success" ]
[]
[ "tests/pa/test_provision.py::TestProvision::test_customdata", "tests/pa/test_provision.py::TestProvision::test_is_provisioned_is_provisioned", "tests/pa/test_provision.py::TestProvision::test_is_provisioned_not_deprovisioned", "tests/pa/test_provision.py::TestProvision::test_is_provisioned_not_provisioned", ...
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-986
30e638ddab04bd4ec473fe8369a86f64e717776e
2018-01-03 23:14:09
6e9b985c1d7d564253a1c344bab01b45093103cd
diff --git a/azurelinuxagent/ga/env.py b/azurelinuxagent/ga/env.py index 0456cb06..26487818 100644 --- a/azurelinuxagent/ga/env.py +++ b/azurelinuxagent/ga/env.py @@ -86,7 +86,7 @@ class EnvHandler(object): version=CURRENT_VERSION, op=WALAEventOperation.Firewall, ...
Update provisioning signal We use the same signal today to indicate provision success/failure between cloud-init and agent based provisioning. We should clarify how to distinguish these.
Azure/WALinuxAgent
diff --git a/tests/pa/test_provision.py b/tests/pa/test_provision.py index ab0a9102..2c2d2c9b 100644 --- a/tests/pa/test_provision.py +++ b/tests/pa/test_provision.py @@ -151,7 +151,7 @@ class TestProvision(AgentTestCase): ph.run() - call1 = call("Provision succeeded", duration=ANY, is_success=True)...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 2 }, "num_modified_files...
2.2
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pyasn1", "nose", "nose-cov", "pytest" ], "pre_install": null, "python": "3.4", "reqs_path": null, "test_cmd": "p...
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work certifi==2021.5.30 cov-core==1.15.0 coverage==6.2 importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work more-itertools @ file:///tmp/build/80754af9/more-it...
name: WALinuxAgent channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - attrs=21.4.0=pyhd3eb1b0_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - impo...
[ "tests/pa/test_provision.py::TestProvision::test_provision_telemetry_success" ]
[]
[ "tests/pa/test_provision.py::TestProvision::test_customdata", "tests/pa/test_provision.py::TestProvision::test_is_provisioned_is_provisioned", "tests/pa/test_provision.py::TestProvision::test_is_provisioned_not_deprovisioned", "tests/pa/test_provision.py::TestProvision::test_is_provisioned_not_provisioned", ...
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-987
30e638ddab04bd4ec473fe8369a86f64e717776e
2018-01-03 23:27:34
6e9b985c1d7d564253a1c344bab01b45093103cd
diff --git a/azurelinuxagent/common/protocol/restapi.py b/azurelinuxagent/common/protocol/restapi.py index 275cedb0..540ec5d9 100644 --- a/azurelinuxagent/common/protocol/restapi.py +++ b/azurelinuxagent/common/protocol/restapi.py @@ -321,9 +321,9 @@ class Protocol(DataContract): def get_artifacts_profile(self): ...
[2.2.14] HostGAPlugin still use proxy while auto-updating Hi there, I saw there was an issue #769 "HostGAPlugin requests should never go through proxy". But currently it seems that only the blob status upload traffic can ignore the proxy when proxy is misconfigured. For the auto-update feature, only the manifest fil...
Azure/WALinuxAgent
diff --git a/tests/pa/test_provision.py b/tests/pa/test_provision.py index ab0a9102..2c2d2c9b 100644 --- a/tests/pa/test_provision.py +++ b/tests/pa/test_provision.py @@ -151,7 +151,7 @@ class TestProvision(AgentTestCase): ph.run() - call1 = call("Provision succeeded", duration=ANY, is_success=True)...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_issue_reference", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 0, "test_score": 3 }, "num_...
2.2
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "", "pip_packages": [ "pyasn1", "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.4", "reqs_path": null...
attrs==22.2.0 certifi==2021.5.30 importlib-metadata==4.8.3 iniconfig==1.1.1 packaging==21.3 pluggy==1.0.0 py==1.11.0 pyasn1==0.5.1 pyparsing==3.1.4 pytest==7.0.1 tomli==1.2.3 typing_extensions==4.1.1 -e git+https://github.com/Azure/WALinuxAgent.git@30e638ddab04bd4ec473fe8369a86f64e717776e#egg=WALinuxAgent zipp==3.6.0
name: WALinuxAgent channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 ...
[ "tests/pa/test_provision.py::TestProvision::test_provision_telemetry_success" ]
[]
[ "tests/pa/test_provision.py::TestProvision::test_customdata", "tests/pa/test_provision.py::TestProvision::test_is_provisioned_is_provisioned", "tests/pa/test_provision.py::TestProvision::test_is_provisioned_not_deprovisioned", "tests/pa/test_provision.py::TestProvision::test_is_provisioned_not_provisioned", ...
[]
Apache License 2.0
null
null
Azure__WALinuxAgent-988
30e638ddab04bd4ec473fe8369a86f64e717776e
2018-01-04 19:04:14
6e9b985c1d7d564253a1c344bab01b45093103cd
diff --git a/azurelinuxagent/common/protocol/restapi.py b/azurelinuxagent/common/protocol/restapi.py index 275cedb0..540ec5d9 100644 --- a/azurelinuxagent/common/protocol/restapi.py +++ b/azurelinuxagent/common/protocol/restapi.py @@ -321,9 +321,9 @@ class Protocol(DataContract): def get_artifacts_profile(self): ...
Socket timeout causes blacklist Found in logs, we need to handle this case more gracefully: ``` 2017/11/17 11:47:16.626326 WARNING Agent WALinuxAgent-2.2.18 failed with exception: The read operation timed out 2017/11/17 11:47:16.705491 WARNING Traceback (most recent call last): File "bin/WALinuxAgent-2.2.18-py2.7...
Azure/WALinuxAgent
diff --git a/tests/ga/test_update.py b/tests/ga/test_update.py index 88535f5b..a40278c7 100644 --- a/tests/ga/test_update.py +++ b/tests/ga/test_update.py @@ -387,6 +387,30 @@ class TestGuestAgent(UpdateTestCase): self.assertTrue(agent.is_blacklisted) self.assertEqual(agent.is_blacklisted, agent.error...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 8 }
2.2
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pyasn1", "nose", "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.4", ...
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work certifi==2021.5.30 importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work nose...
name: WALinuxAgent channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - attrs=21.4.0=pyhd3eb1b0_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - impo...
[ "tests/ga/test_update.py::TestGuestAgent::test_ioerror_not_blacklisted", "tests/pa/test_provision.py::TestProvision::test_provision_telemetry_success" ]
[]
[ "tests/ga/test_update.py::TestGuestAgentError::test_clear", "tests/ga/test_update.py::TestGuestAgentError::test_creation", "tests/ga/test_update.py::TestGuestAgentError::test_mark_failure", "tests/ga/test_update.py::TestGuestAgentError::test_mark_failure_permanent", "tests/ga/test_update.py::TestGuestAgentE...
[]
Apache License 2.0
null
null
Azure__autorest.python-475
4793bd7b9ddc25a241cd54538b4c5750f915b3d2
2020-03-07 00:01:55
b25e4602ecfa5e7f5d13fc4043848b1720b995de
diff --git a/autorest/codegen/models/parameter_list.py b/autorest/codegen/models/parameter_list.py index 5f1c8b94f..500a776b3 100644 --- a/autorest/codegen/models/parameter_list.py +++ b/autorest/codegen/models/parameter_list.py @@ -115,16 +115,17 @@ class ParameterList(MutableSequence): or parameter.i...
argument order syntax error Using > AutoRest code generation utility [cli version: 3.0.6187; node: v10.13.0, max-memory: 8192 gb] With: Autorest for Python v5.0.0 - 20200228.1 And Swagger: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/search/data-plane/Microsoft.Azure...
Azure/autorest.python
diff --git a/test/unittests/test_parameter_ordering.py b/test/unittests/test_parameter_ordering.py new file mode 100644 index 000000000..ce4e06df7 --- /dev/null +++ b/test/unittests/test_parameter_ordering.py @@ -0,0 +1,59 @@ +import pytest +from autorest.codegen.models import Parameter, AnySchema +from autorest.codege...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 0, "test_score": 0 }, "num_modified_files": 1 }
5.0
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": null, "pre_install": null, "python": "3.7", "reqs_path": [ "dev_requirements.txt" ], "test_cmd": "pytest --no-he...
astroid==2.3.3 -e git+https://github.com/Azure/autorest.python.git@4793bd7b9ddc25a241cd54538b4c5750f915b3d2#egg=autorest black==23.3.0 cachetools==5.5.2 certifi @ file:///croot/certifi_1671487769961/work/certifi chardet==5.2.0 click==8.1.8 colorama==0.4.6 distlib==0.3.9 docutils==0.20.1 exceptiongroup==1.2.2 filelock==...
name: autorest.python channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_...
[ "test/unittests/test_parameter_ordering.py::test_sort_required_parameters" ]
[]
[ "test/unittests/test_parameter_ordering.py::test_sort_required_and_non_required_parameters" ]
[]
MIT License
swerebench/sweb.eval.x86_64.azure_1776_autorest.python-475
swerebench/sweb.eval.x86_64.azure_1776_autorest.python-475
Azure__autorest.python-545
3322ab3a1c793c8fdaf2dc7d391c3c1e2eca2852
2020-04-03 15:44:35
b25e4602ecfa5e7f5d13fc4043848b1720b995de
diff --git a/ChangeLog.md b/ChangeLog.md index cb8b2555c..0c66ad340 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,5 +1,11 @@ # Change Log +### Current + +**Bug Fixes** + +- Fixes parameter ordering so parameters with default values are all ordered at the end #545 + ### 2020-04-01 - 5.0.0-dev.20200401.1 Model...
default value followed by non default value in operation signature if you change cost management service swagger like this <img width="770" alt="Screen Shot 2020-04-03 at 10 40 18 AM" src="https://user-images.githubusercontent.com/43154838/78372652-8760c900-7597-11ea-957f-8abf14e4582c.png"> code gen generates: <img ...
Azure/autorest.python
diff --git a/test/unittests/test_parameter_ordering.py b/test/unittests/test_parameter_ordering.py index ce4e06df7..06a8739d3 100644 --- a/test/unittests/test_parameter_ordering.py +++ b/test/unittests/test_parameter_ordering.py @@ -1,13 +1,15 @@ import pytest from autorest.codegen.models import Parameter, AnySchema ...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_media", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 3, "test_score": 0 }, "num_modified_f...
5.0
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": null, "pre_install": null, "python": "3.7", "reqs_path": [ "dev_requirements.txt" ], "test_cmd": "pytest --no-he...
astroid==2.3.3 -e git+https://github.com/Azure/autorest.python.git@3322ab3a1c793c8fdaf2dc7d391c3c1e2eca2852#egg=autorest black==23.3.0 cachetools==5.5.2 certifi @ file:///croot/certifi_1671487769961/work/certifi chardet==5.2.0 click==8.1.8 colorama==0.4.6 distlib==0.3.9 docutils==0.20.1 exceptiongroup==1.2.2 filelock==...
name: autorest.python channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_...
[ "test/unittests/test_parameter_ordering.py::test_sort_parameters_with_default_value_from_schema" ]
[]
[ "test/unittests/test_parameter_ordering.py::test_sort_required_parameters", "test/unittests/test_parameter_ordering.py::test_sort_required_and_non_required_parameters" ]
[]
MIT License
swerebench/sweb.eval.x86_64.azure_1776_autorest.python-545
swerebench/sweb.eval.x86_64.azure_1776_autorest.python-545
Azure__azure-cli-1160
98572bac3cdff9eb2d106140cdf352a6d2979162
2016-10-25 17:25:42
1576ec67f5029db062579da230902a559acbb9fe
diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_actions.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_actions.py index 78fb78969..0f91655a8 100644 --- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_actions.py +++ b/src/command_modules/azure-cli-vm/azur...
ACS create fails with no username --admin-username defaults to 'root' which is not allowed: $ az acs create --resource-group rgacsazcli --orchestrator-type DCOS --name rgacsazcli --dns-name-prefix rgacsazcli Error loading command module 'iot' At least one resource deployment operation failed. Please list deploymen...
Azure/azure-cli
diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py index 4576239d4..7877af690 100644 --- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py +...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 1, "test_score": 3 }, "num_modified_files": 2 }
0.1
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc libssl-dev libffi-dev" ], "...
adal==0.4.1 applicationinsights==0.10.0 argcomplete==1.3.0 astroid==1.4.9 attrs==22.2.0 -e git+https://github.com/Azure/azure-cli.git@98572bac3cdff9eb2d106140cdf352a6d2979162#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@98572bac3cdff9eb2d106140cdf352a6d2979162#egg=azure_cli_acr...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py::AzureContainerServiceScenarioTest::test_acs_create_update" ]
[ "src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py::VMImageListByAliasesScenarioTest::test_vm_image_list_by_alias", "src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py::VMOpenPortTest::test_vm_open_port", "src/command_modules/azure-cli-v...
[ "src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py::VMUsageScenarioTest::test_vm_usage", "src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py::VMImageListThruServiceScenarioTest::test_vm_images_list_thru_services", "src/command_modules/az...
[]
MIT License
null
null
Azure__azure-cli-1197
81372d0c3f60828a26c18c61169bb6e8eb47f995
2016-11-01 00:35:23
1576ec67f5029db062579da230902a559acbb9fe
tjprescott: Also, one thing I've tried to do is when I "touch" a module I do a quick look through help to make sure there is acceptable help text for all commands and groups since we have a lot of gaps and help reflected from sloppy SDK docstrings. In this case it looks like it's just `az account list-locations` missin...
diff --git a/src/azure-cli-core/azure/cli/core/_profile.py b/src/azure-cli-core/azure/cli/core/_profile.py index 01de246c9..c45f90b50 100644 --- a/src/azure-cli-core/azure/cli/core/_profile.py +++ b/src/azure-cli-core/azure/cli/core/_profile.py @@ -167,17 +167,16 @@ class Profile(object): self._cache_subscri...
How do I view the current account? `az account show` is not valid... `azure account show` let's me see my active subscription... what's the equivalent in `azure-cli`? IMO, `az account show` should just work
Azure/azure-cli
diff --git a/src/azure-cli-core/azure/cli/core/tests/test_profile.py b/src/azure-cli-core/azure/cli/core/tests/test_profile.py index 64a05fd98..8d5fa3b31 100644 --- a/src/azure-cli-core/azure/cli/core/tests/test_profile.py +++ b/src/azure-cli-core/azure/cli/core/tests/test_profile.py @@ -10,6 +10,7 @@ import mock from...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 1, "test_score": ...
0.1
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc libssl-dev libffi-dev" ], "...
adal==0.4.2 applicationinsights==0.10.0 argcomplete==1.3.0 astroid==1.4.9 attrs==22.2.0 -e git+https://github.com/Azure/azure-cli.git@81372d0c3f60828a26c18c61169bb6e8eb47f995#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@81372d0c3f60828a26c18c61169bb6e8eb47f995#egg=azure_cli_acr...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/azure-cli-core/azure/cli/core/tests/test_profile.py::Test_Profile::test_get_subscription" ]
[]
[ "src/azure-cli-core/azure/cli/core/tests/test_profile.py::Test_Profile::test_create_token_cache", "src/azure-cli-core/azure/cli/core/tests/test_profile.py::Test_Profile::test_credscache_add_new_sp_creds", "src/azure-cli-core/azure/cli/core/tests/test_profile.py::Test_Profile::test_credscache_load_tokens_and_sp_...
[]
MIT License
null
null
Azure__azure-cli-1378
119d95b3fb6b68782d11fb8e7934b568cdc1a24a
2016-11-18 18:55:43
1576ec67f5029db062579da230902a559acbb9fe
mention-bot: @tjprescott, thanks for your PR! By analyzing the history of the files in this pull request, we identified @BurtBiel, @derekbekoe and @yugangw-msft to be potential reviewers.
diff --git a/.mention-bot b/.mention-bot new file mode 100644 index 000000000..0557e188a --- /dev/null +++ b/.mention-bot @@ -0,0 +1,12 @@ +{ + "maxReviewers: 5, + "userBlacklist": ["BurtBiel"], + "assignToReviewer": true, + "fallbackNotifyForPaths": [ + { + "name": "JasonRShaver", + "files": ["doc/**"...
Cannot use storage data-plane commands with other clouds Due to a bug in azure-storage (https://github.com/Azure/azure-storage-python/issues/229), using storage data-plane commands with a different cloud will hang/not terminate. Repro with: 1. Point the CLI to a different cloud. 2. `export AZURE_STORAGE_CONNECTION_STR...
Azure/azure-cli
diff --git a/src/azure-cli-core/azure/cli/core/tests/test_output.py b/src/azure-cli-core/azure/cli/core/tests/test_output.py index 19babaf83..37ae2bbf0 100644 --- a/src/azure-cli-core/azure/cli/core/tests/test_output.py +++ b/src/azure-cli-core/azure/cli/core/tests/test_output.py @@ -40,6 +40,19 @@ class TestOutput(uni...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_added_files", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 0, "tes...
0.1
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc libssl-dev libffi-dev" ], "...
adal==0.4.2 applicationinsights==0.10.0 argcomplete==1.3.0 astroid==1.4.9 attrs==22.2.0 -e git+https://github.com/Azure/azure-cli.git@119d95b3fb6b68782d11fb8e7934b568cdc1a24a#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@119d95b3fb6b68782d11fb8e7934b568cdc1a24a#egg=azure_cli_acr...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/azure-cli-core/azure/cli/core/tests/test_output.py::TestOutput::test_out_json_from_ordered_dict", "src/azure-cli-core/azure/cli/core/tests/test_profile.py::Test_Profile::test_get_expanded_subscription_info", "src/azure-cli-core/azure/cli/core/tests/test_profile.py::Test_Profile::test_get_expanded_subscript...
[ "src/command_modules/azure-cli-appservice/azure/cli/command_modules/appservice/tests/test_webapp_commands.py::WebappBasicE2ETest::test_webapp_e2e", "src/command_modules/azure-cli-appservice/azure/cli/command_modules/appservice/tests/test_webapp_commands.py::AppServiceBadErrorPolishTest::test_appservice_error_poli...
[ "src/azure-cli-core/azure/cli/core/tests/test_output.py::TestOutput::test_out_boolean_valid", "src/azure-cli-core/azure/cli/core/tests/test_output.py::TestOutput::test_out_json_byte", "src/azure-cli-core/azure/cli/core/tests/test_output.py::TestOutput::test_out_json_byte_empty", "src/azure-cli-core/azure/cli/...
[]
MIT License
null
null
Azure__azure-cli-1386
bbc03164b553b8b4166b54239d46c525abe6c2e7
2016-11-18 22:45:09
1576ec67f5029db062579da230902a559acbb9fe
mention-bot: @yugangw-msft, thanks for your PR! By analyzing the history of the files in this pull request, we identified @derekbekoe, @johanste and @tjprescott to be potential reviewers.
diff --git a/.mention-bot b/.mention-bot new file mode 100644 index 000000000..0557e188a --- /dev/null +++ b/.mention-bot @@ -0,0 +1,12 @@ +{ + "maxReviewers: 5, + "userBlacklist": ["BurtBiel"], + "assignToReviewer": true, + "fallbackNotifyForPaths": [ + { + "name": "JasonRShaver", + "files": ["doc/**"...
'Circular reference detected' in query on az vm get-instance-view ``` az vm get-instance-view --resource-group 'RGROUP' --name Name --query '{UUU: name, VVV: instanceView.statuses[1].code}'` ``` Throws an execption: ``` Circular reference detected Traceback (most recent call last): File "/opt/az/local/lib/...
Azure/azure-cli
diff --git a/src/azure-cli-core/azure/cli/core/tests/test_output.py b/src/azure-cli-core/azure/cli/core/tests/test_output.py index 19babaf83..37ae2bbf0 100644 --- a/src/azure-cli-core/azure/cli/core/tests/test_output.py +++ b/src/azure-cli-core/azure/cli/core/tests/test_output.py @@ -40,6 +40,19 @@ class TestOutput(uni...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_added_files", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 0, "test_score": 3 }, "nu...
0.1
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc libssl-dev libffi-dev" ], "...
adal==0.4.2 applicationinsights==0.10.0 argcomplete==1.3.0 astroid==1.4.9 attrs==22.2.0 -e git+https://github.com/Azure/azure-cli.git@bbc03164b553b8b4166b54239d46c525abe6c2e7#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@bbc03164b553b8b4166b54239d46c525abe6c2e7#egg=azure_cli_acr...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/azure-cli-core/azure/cli/core/tests/test_output.py::TestOutput::test_out_json_from_ordered_dict", "src/azure-cli-core/azure/cli/core/tests/test_profile.py::Test_Profile::test_get_expanded_subscription_info", "src/azure-cli-core/azure/cli/core/tests/test_profile.py::Test_Profile::test_get_expanded_subscript...
[]
[ "src/azure-cli-core/azure/cli/core/tests/test_output.py::TestOutput::test_out_boolean_valid", "src/azure-cli-core/azure/cli/core/tests/test_output.py::TestOutput::test_out_json_byte", "src/azure-cli-core/azure/cli/core/tests/test_output.py::TestOutput::test_out_json_byte_empty", "src/azure-cli-core/azure/cli/...
[]
MIT License
null
null
Azure__azure-cli-1423
c56c791d01985f1209d30849b55922d1adac85b5
2016-11-23 01:05:31
1576ec67f5029db062579da230902a559acbb9fe
mention-bot: @brendandburns, thanks for your PR! By analyzing the history of the files in this pull request, we identified @yugangw-msft, @tjprescott and @derekbekoe to be potential reviewers. tjprescott: @brendandburns this issue applies more generally to the CLI. See issue #1419. I think it can fixed more generally b...
diff --git a/src/azure-cli-core/azure/cli/core/application.py b/src/azure-cli-core/azure/cli/core/application.py index 0bc115f74..caab463a1 100644 --- a/src/azure-cli-core/azure/cli/core/application.py +++ b/src/azure-cli-core/azure/cli/core/application.py @@ -6,6 +6,7 @@ from collections import defaultdict import sy...
CLI inconsistency -- to specify a parameters file, one must not use equal sign If you use an equal sign between --parameters and the actual file path, you end up with the following: ``` az resource group deployment create --resource-group=jmsdcosrg --template-file=./output/azuredeploy.json --parameters="@./output/a...
Azure/azure-cli
diff --git a/src/azure-cli-core/azure/cli/core/tests/test_application.py b/src/azure-cli-core/azure/cli/core/tests/test_application.py index aef479668..252fd558a 100644 --- a/src/azure-cli-core/azure/cli/core/tests/test_application.py +++ b/src/azure-cli-core/azure/cli/core/tests/test_application.py @@ -5,10 +5,14 @@ ...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 0, "test_score": 0 }, "num_modified_files": 2 }
0.1
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc libssl-dev libffi-dev" ], "...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.3.0 astroid==1.4.9 attrs==22.2.0 -e git+https://github.com/Azure/azure-cli.git@c56c791d01985f1209d30849b55922d1adac85b5#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@c56c791d01985f1209d30849b55922d1adac85b5#egg=azure_cli_acr...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/azure-cli-core/azure/cli/core/tests/test_application.py::TestApplication::test_expand_file_prefixed_files" ]
[]
[ "src/azure-cli-core/azure/cli/core/tests/test_application.py::TestApplication::test_application_register_and_call_handlers", "src/azure-cli-core/azure/cli/core/tests/test_application.py::TestApplication::test_list_value_parameter" ]
[]
MIT License
null
null
Azure__azure-cli-15184
00cf5e3b3ecadfa43d4b1bee8c5c2d352626d227
2020-09-16 07:19:50
7bdd6dbf9a96932bd86c1f97a838fa7babf16fbf
yonzhan: Core jiasli: Unfortunately, due an incorrect `credential_scopes` managing logic in existing SDKs (https://github.com/Azure/azure-sdk-for-python/issues/12947), even though the bug has been fixed in https://github.com/Azure/autorest.python/pull/745, merging this PR will break all commands using **Track 2 SDKs wi...
diff --git a/src/azure-cli-core/azure/cli/core/_profile.py b/src/azure-cli-core/azure/cli/core/_profile.py index 3dee2b626..79e08e5c9 100644 --- a/src/azure-cli-core/azure/cli/core/_profile.py +++ b/src/azure-cli-core/azure/cli/core/_profile.py @@ -559,26 +559,35 @@ class Profile: external_tenants_...
{Core} AdalAuthentication doesn't honor `scopes` for Track 2 SDK **Describe the bug** In Track 2 SDK, `scopes` (`resource`) is managed by SDK, instead of Azure CLI. For example, in [`AzureAppConfigurationClient`](https://github.com/Azure/azure-sdk-for-python/blob/022bc80f2bc645d8d82d647620376fcea2229522/sdk/appconfi...
Azure/azure-cli
diff --git a/src/azure-cli-core/azure/cli/core/tests/test_util.py b/src/azure-cli-core/azure/cli/core/tests/test_util.py index 821a35370..84a57be1e 100644 --- a/src/azure-cli-core/azure/cli/core/tests/test_util.py +++ b/src/azure-cli-core/azure/cli/core/tests/test_util.py @@ -377,6 +377,29 @@ class TestUtils(unittest.T...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 1, "test_score": 3 }, "num_modified_files": 6 }
2.14
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.7", "req...
adal==1.2.7 antlr4-python3-runtime==4.7.2 applicationinsights==0.11.10 argcomplete==1.12.3 astroid==2.15.8 azure-appconfiguration==1.1.1 azure-batch==9.0.0 -e git+https://github.com/Azure/azure-cli.git@00cf5e3b3ecadfa43d4b1bee8c5c2d352626d227#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azur...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/azure-cli-core/azure/cli/core/tests/test_util.py::TestUtils::test_resource_to_scopes", "src/azure-cli-core/azure/cli/core/tests/test_util.py::TestUtils::test_scopes_to_resource" ]
[]
[ "src/azure-cli-core/azure/cli/core/tests/test_util.py::TestUtils::test_can_launch_browser", "src/azure-cli-core/azure/cli/core/tests/test_util.py::TestUtils::test_configured_default_setter", "src/azure-cli-core/azure/cli/core/tests/test_util.py::TestUtils::test_get_az_user_agent", "src/azure-cli-core/azure/cl...
[]
MIT License
null
null
Azure__azure-cli-1876
62dab24154f910ff7f3ef2b6b3783945b58e9098
2017-01-26 00:16:00
1576ec67f5029db062579da230902a559acbb9fe
diff --git a/src/azure-cli-core/azure/cli/core/_util.py b/src/azure-cli-core/azure/cli/core/_util.py index c194599bc..379152887 100644 --- a/src/azure-cli-core/azure/cli/core/_util.py +++ b/src/azure-cli-core/azure/cli/core/_util.py @@ -94,21 +94,27 @@ def get_json_object(json_string): def get_file_json(file_path,...
"@file support": should handle the BOM on file loading Otherwise, using `@<parameter-file>` will return an invalid json string for the command to use. Since json file is the main file type, so the core layer should handle it. CLI already have [the logic](https://github.com/Azure/azure-cli/blob/master/src/azure-cli-cor...
Azure/azure-cli
diff --git a/src/azure-cli-core/azure/cli/core/tests/test_application.py b/src/azure-cli-core/azure/cli/core/tests/test_application.py index 42f09f10f..2142b0515 100644 --- a/src/azure-cli-core/azure/cli/core/tests/test_application.py +++ b/src/azure-cli-core/azure/cli/core/tests/test_application.py @@ -87,13 +87,21 @@...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 2 }
0.1
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc libssl-dev libffi-dev" ], "...
adal==1.2.7 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==1.4.9 attrs==22.2.0 autopep8==1.2.4 azure-batch==1.1.0 -e git+https://github.com/Azure/azure-cli.git@62dab24154f910ff7f3ef2b6b3783945b58e9098#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@62dab24154f910ff7f3ef2b...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/azure-cli-core/azure/cli/core/tests/test_application.py::TestApplication::test_expand_file_prefixed_files" ]
[]
[ "src/azure-cli-core/azure/cli/core/tests/test_application.py::TestApplication::test_application_register_and_call_handlers", "src/azure-cli-core/azure/cli/core/tests/test_application.py::TestApplication::test_list_value_parameter" ]
[]
MIT License
swerebench/sweb.eval.x86_64.azure_1776_azure-cli-1876
swerebench/sweb.eval.x86_64.azure_1776_azure-cli-1876
Azure__azure-cli-2053
27816f4891c85592ad6f06bcc94008fa7d144b69
2017-02-13 16:48:43
1576ec67f5029db062579da230902a559acbb9fe
diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_help.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_help.py index 8f73d9966..540d6aab1 100644 --- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_help.py +++ b/src/command_modules/azure-cli-vm/azure/cli/com...
VM Access: command renaming This is polishing like change regarding 4 existing commands under `vm access`, including `delete-linux-user`, `reset-linux-ssh`, `reset-windows-admin`, `set-linux-user`. The naming oddness reflects the service function difference between windows and linux vm, particularly on windows vm, you ...
Azure/azure-cli
diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/test_vm_create_state_modifications.yaml b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/recordings/test_vm_create_state_modifications.yaml index 4d2a3c12b..02382f28f 100644 --- a/src/command_modules/azure-c...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": -1, "issue_text_score": 0, "test_score": -1 }, "num_modified_files": 4 }
0.1
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc libssl-dev libffi-dev" ], "...
adal==1.2.7 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==1.4.9 attrs==22.2.0 autopep8==1.2.4 azure-batch==1.1.0 -e git+https://github.com/Azure/azure-cli.git@27816f4891c85592ad6f06bcc94008fa7d144b69#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@27816f4891c85592ad6f06b...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py::VMCreateAndStateModificationsScenarioTest::test_vm_create_state_modifications" ]
[ "src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py::VMAvailSetScenarioTest::test_vm_availset" ]
[ "src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py::VMImageListByAliasesScenarioTest::test_vm_image_list_by_alias", "src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_commands.py::VMUsageScenarioTest::test_vm_usage", "src/command_modules/azure-cli-...
[]
MIT License
swerebench/sweb.eval.x86_64.azure_1776_azure-cli-2053
swerebench/sweb.eval.x86_64.azure_1776_azure-cli-2053
Azure__azure-cli-2078
efeceb146b93793ee93b2dc07e14ac58a782b45a
2017-02-14 22:35:29
1576ec67f5029db062579da230902a559acbb9fe
diff --git a/scripts/automation/commandlint/__init__.py b/scripts/automation/commandlint/__init__.py new file mode 100644 index 000000000..433670bfb --- /dev/null +++ b/scripts/automation/commandlint/__init__.py @@ -0,0 +1,6 @@ +# -----------------------------------------------------------------------------------------...
[Storage] `storage account update` does not expose Generic Update arguments Recommend to support to add 1 tag, or support JSON input for the --tags. Here is the current script to add one tag. ``` NEW_TAGS=$(az storage account show -g "$resourceGroup" -n "$storageAccount" | jq -r "[.tags + {\"$key\": \"$value\"} | to...
Azure/azure-cli
diff --git a/src/azure-cli-core/azure/cli/core/test_utils/vcr_test_base.py b/src/azure-cli-core/azure/cli/core/test_utils/vcr_test_base.py index 55fd812cd..1db69b991 100644 --- a/src/azure-cli-core/azure/cli/core/test_utils/vcr_test_base.py +++ b/src/azure-cli-core/azure/cli/core/test_utils/vcr_test_base.py @@ -36,7 +3...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": -1, "issue_text_score": 1, "test_score": -1 }, "num_modified_files": 8 }
0.1
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc libssl-dev libffi-dev" ], "...
adal==1.2.7 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==1.4.9 attrs==22.2.0 autopep8==1.2.4 azure-batch==1.1.0 -e git+https://github.com/Azure/azure-cli.git@efeceb146b93793ee93b2dc07e14ac58a782b45a#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@efeceb146b93793ee93b2dc...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/command_modules/azure-cli-appservice/azure/cli/command_modules/appservice/tests/test_webapp_commands.py::WebappBackupConfigScenarioTest::test_webapp_backup_config", "src/command_modules/azure-cli-appservice/azure/cli/command_modules/appservice/tests/test_webapp_commands.py::WebappBackupRestoreScenarioTest::t...
[ "src/command_modules/azure-cli-appservice/azure/cli/command_modules/appservice/tests/test_webapp_commands.py::WebappBasicE2ETest::test_webapp_e2e", "src/command_modules/azure-cli-appservice/azure/cli/command_modules/appservice/tests/test_webapp_commands.py::AppServiceBadErrorPolishTest::test_appservice_error_poli...
[ "src/command_modules/azure-cli-appservice/azure/cli/command_modules/appservice/tests/test_webapp_commands.py::WebappConfigureTest::test_webapp_config", "src/command_modules/azure-cli-appservice/azure/cli/command_modules/appservice/tests/test_webapp_commands.py::WebappScaleTest::test_webapp_scale", "src/command_...
[]
MIT License
null
null
Azure__azure-cli-2112
2a8d8fca411fe8422c7cee557943ae4c9f256bfc
2017-02-16 22:58:00
1576ec67f5029db062579da230902a559acbb9fe
tjprescott: **az network dns -h** ``` Group az network dns: Host your DNS domain in Azure. Subgroups: record-set: Manage DNS records and record sets. zone : Manage DNS zones. ``` **az network dns record-set -h** ``` Group az network dns record-set: Manage DNS records and record sets....
diff --git a/src/azure-cli/setup.py b/src/azure-cli/setup.py index d6bb60adc..a400fd7f7 100644 --- a/src/azure-cli/setup.py +++ b/src/azure-cli/setup.py @@ -44,20 +44,25 @@ CLASSIFIERS = [ ] DEPENDENCIES = [ - 'azure-cli-acr', 'azure-cli-acs', 'azure-cli-appservice', - 'azure-cli-core', - 'azure-...
[DNS] Change 'az network dns record update-soa' to 'az network dns record soa update' Under 'az network dns record', we have a bunch of subgroups (one for each record type) followed by a one-off command 'update-soa'. The SOA record set is a bit of a special case, in that it can be edited but doesn't support add/remo...
Azure/azure-cli
diff --git a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/recordings/test_network_dns.yaml b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/recordings/test_network_dns.yaml index f3b2a954e..0ae2c3dab 100644 --- a/src/command_modules/azure-cli-network/azure...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": -1, "issue_text_score": 0, "test_score": -1 }, "num_modified_files": 7 }
0.1
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc libssl-dev libffi-dev" ], "...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==1.4.9 attrs==22.2.0 autopep8==1.2.4 azure-batch==1.1.0 -e git+https://github.com/Azure/azure-cli.git@2a8d8fca411fe8422c7cee557943ae4c9f256bfc#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@2a8d8fca411fe8422c7cee5...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/test_network_commands.py::NetworkDnsScenarioTest::test_network_dns" ]
[]
[ "src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/test_network_commands.py::NetworkMultiIdsShowScenarioTest::test_multi_id_show", "src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/test_network_commands.py::NetworkUsageListScenarioTest::test_network_usage_l...
[]
MIT License
null
null
Azure__azure-cli-2214
01bbaf048c7669c024ece5e84c9360d829624574
2017-02-22 21:17:11
1576ec67f5029db062579da230902a559acbb9fe
diff --git a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/commands.py b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/commands.py index 0e5118830..3b6e72876 100644 --- a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/commands.py +++ b/src/com...
[DNS] Deleting a record requires a confirmation prompt Deleting a record set is a potentially catastrophic operation. For this reason, in the Portal, PowerShell, and CLI1.0, the operation has a confirmation prompt. We need to add a similar confirmation prompt in CLI2.0. This applies to both `az network dns record...
Azure/azure-cli
diff --git a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/test_network_commands.py b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/test_network_commands.py index c7c490fd5..1b0d4e81d 100644 --- a/src/command_modules/azure-cli-network/azure/cli/command_mod...
{ "commit_name": "merge_commit", "failed_lite_validators": [], "has_test_patch": true, "is_lite": true, "llm_score": { "difficulty_score": 0, "issue_text_score": 0, "test_score": 2 }, "num_modified_files": 1 }
0.1
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc libssl-dev libffi-dev" ], "...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==1.4.9 attrs==22.2.0 autopep8==1.2.4 azure-batch==1.1.0 -e git+https://github.com/Azure/azure-cli.git@01bbaf048c7669c024ece5e84c9360d829624574#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@01bbaf048c7669c024ece5e...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/test_network_commands.py::NetworkDnsScenarioTest::test_network_dns" ]
[]
[ "src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/test_network_commands.py::NetworkMultiIdsShowScenarioTest::test_multi_id_show", "src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/test_network_commands.py::NetworkUsageListScenarioTest::test_network_usage_l...
[]
MIT License
swerebench/sweb.eval.x86_64.azure_1776_azure-cli-2214
swerebench/sweb.eval.x86_64.azure_1776_azure-cli-2214
Azure__azure-cli-2345
23b3145b4623edf2648ee28a101175199d92cb1c
2017-03-01 22:32:27
eb12ac454cbe1ddb59c86cdf2045e1912660e750
codecov-io: # [Codecov](https://codecov.io/gh/Azure/azure-cli/pull/2345?src=pr&el=h1) Report > Merging [#2345](https://codecov.io/gh/Azure/azure-cli/pull/2345?src=pr&el=desc) into [master](https://codecov.io/gh/Azure/azure-cli/commit/23b3145b4623edf2648ee28a101175199d92cb1c?src=pr&el=desc) will **increase** coverage by...
diff --git a/azure-cli.pyproj b/azure-cli.pyproj index 6a88538e3..c714d3247 100644 --- a/azure-cli.pyproj +++ b/azure-cli.pyproj @@ -333,6 +333,9 @@ <Compile Include="command_modules\azure-cli-network\azure\cli\command_modules\network\mgmt_vnet_gateway\lib\version.py" /> <Compile Include="command_modules\azur...
az network nic ip-config address-pool add command fails Using the cli 2.0 to bind a nic to an address pool with the following command produces this error: command: az network nic ip-config address-pool add \ --resource-group ${resource_group} \ --nic-name ${nic_name} \ --lb-name ${lb_name} \ -...
Azure/azure-cli
diff --git a/src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/test_network_unit_tests.py b/src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/test_network_unit_tests.py new file mode 100644 index 000000000..66ab9a44d --- /dev/null +++ b/src/command_modules/azure-c...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 0, "test_score": 2 }, "num_modified_files": 2 }
2.0
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.5", "req...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==1.4.9 attrs==22.2.0 autopep8==1.2.4 azure-batch==1.1.0 -e git+https://github.com/Azure/azure-cli.git@23b3145b4623edf2648ee28a101175199d92cb1c#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@23b3145b4623edf2648ee28...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/test_network_unit_tests.py::Test_Network_Unit_Tests::test_network_get_nic_ip_config", "src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/test_network_unit_tests.py::Test_Network_Unit_Tests::test_network_upse...
[]
[]
[]
MIT License
null
null
Azure__azure-cli-2346
23b3145b4623edf2648ee28a101175199d92cb1c
2017-03-01 23:41:49
eb12ac454cbe1ddb59c86cdf2045e1912660e750
codecov-io: # [Codecov](https://codecov.io/gh/Azure/azure-cli/pull/2346?src=pr&el=h1) Report > Merging [#2346](https://codecov.io/gh/Azure/azure-cli/pull/2346?src=pr&el=desc) into [master](https://codecov.io/gh/Azure/azure-cli/commit/23b3145b4623edf2648ee28a101175199d92cb1c?src=pr&el=desc) will **decrease** coverage by...
diff --git a/azure-cli.pyproj b/azure-cli.pyproj index 6a88538e3..c714d3247 100644 --- a/azure-cli.pyproj +++ b/azure-cli.pyproj @@ -333,6 +333,9 @@ <Compile Include="command_modules\azure-cli-network\azure\cli\command_modules\network\mgmt_vnet_gateway\lib\version.py" /> <Compile Include="command_modules\azur...
extension hack not working ### **This is autogenerated. Please review and update as needed.** ## Describe the bug **Command Name** `az hack` **Errors:** ``` libffi.so.6: cannot open shared object file: No such file or directory Traceback (most recent call last): python3.8/site-packages/knack/cli.py, ln...
Azure/azure-cli
diff --git a/scripts/automation/tests/run.py b/scripts/automation/tests/run.py index b3dc92b3e..76a98b118 100644 --- a/scripts/automation/tests/run.py +++ b/scripts/automation/tests/run.py @@ -20,14 +20,14 @@ def run_tests(modules, parallel, run_live): # create test results folder test_results_folder = get_te...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 3, "issue_text_score": 2, "test_score": 3 }, "num_modified_files": 8 }
2.0
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.5", "req...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==1.4.9 attrs==22.2.0 autopep8==1.2.4 azure-batch==1.1.0 -e git+https://github.com/Azure/azure-cli.git@23b3145b4623edf2648ee28a101175199d92cb1c#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@23b3145b4623edf2648ee28...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/test_network_unit_tests.py::Test_Network_Unit_Tests::test_network_get_nic_ip_config", "src/command_modules/azure-cli-network/azure/cli/command_modules/network/tests/test_network_unit_tests.py::Test_Network_Unit_Tests::test_network_upse...
[]
[ "src/azure-cli-core/azure/cli/core/tests/test_profile.py::Test_Profile::test_create_token_cache", "src/azure-cli-core/azure/cli/core/tests/test_profile.py::Test_Profile::test_credscache_add_new_sp_creds", "src/azure-cli-core/azure/cli/core/tests/test_profile.py::Test_Profile::test_credscache_load_tokens_and_sp_...
[]
MIT License
null
null
Azure__azure-cli-2467
d79710730933432d2c8ccd722d31fbbf75845ce0
2017-03-11 06:05:00
eb12ac454cbe1ddb59c86cdf2045e1912660e750
codecov-io: # [Codecov](https://codecov.io/gh/Azure/azure-cli/pull/2467?src=pr&el=h1) Report > Merging [#2467](https://codecov.io/gh/Azure/azure-cli/pull/2467?src=pr&el=desc) into [master](https://codecov.io/gh/Azure/azure-cli/commit/d79710730933432d2c8ccd722d31fbbf75845ce0?src=pr&el=desc) will **increase** coverage by...
diff --git a/src/command_modules/azure-cli-resource/azure/cli/command_modules/resource/_help.py b/src/command_modules/azure-cli-resource/azure/cli/command_modules/resource/_help.py index 3df308105..bcff81d87 100644 --- a/src/command_modules/azure-cli-resource/azure/cli/command_modules/resource/_help.py +++ b/src/comman...
az vmss get-instance-view returns model view when specifying all VMs If you run the following to get the instance view for all VMs in a scale set: ``` az vmss get-instance-view -g rgname -n vmssname --instance-id \* ``` CLI does: ``` requests.packages.urllib3.connectionpool : https://management.azure.com:443 "GET...
Azure/azure-cli
diff --git a/src/command_modules/azure-cli-vm/tests/test_custom_vm_commands.py b/src/command_modules/azure-cli-vm/tests/test_custom_vm_commands.py index 54809d1d5..b6ff5ac31 100644 --- a/src/command_modules/azure-cli-vm/tests/test_custom_vm_commands.py +++ b/src/command_modules/azure-cli-vm/tests/test_custom_vm_command...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 2 }
2.0
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.5", "req...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==1.4.9 attrs==22.2.0 autopep8==1.2.4 azure-batch==2.0.0 -e git+https://github.com/Azure/azure-cli.git@d79710730933432d2c8ccd722d31fbbf75845ce0#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@d79710730933432d2c8ccd7...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/command_modules/azure-cli-vm/tests/test_custom_vm_commands.py::Test_Vm_Custom::test_show_vmss_instance_view" ]
[]
[ "src/command_modules/azure-cli-vm/tests/test_custom_vm_commands.py::Test_Vm_Custom::test_attach_existing_datadisk_on_vm", "src/command_modules/azure-cli-vm/tests/test_custom_vm_commands.py::Test_Vm_Custom::test_attach_new_datadisk_custom_on_vm", "src/command_modules/azure-cli-vm/tests/test_custom_vm_commands.py...
[]
MIT License
swerebench/sweb.eval.x86_64.azure_1776_azure-cli-2467
swerebench/sweb.eval.x86_64.azure_1776_azure-cli-2467
Azure__azure-cli-2575
3b6324d00353405e547723056bb324fe3667731c
2017-03-21 17:17:09
350bb060e1fddf437f12788afbeedaa0cf61a87f
codecov-io: # [Codecov](https://codecov.io/gh/Azure/azure-cli/pull/2575?src=pr&el=h1) Report > Merging [#2575](https://codecov.io/gh/Azure/azure-cli/pull/2575?src=pr&el=desc) into [master](https://codecov.io/gh/Azure/azure-cli/commit/3b6324d00353405e547723056bb324fe3667731c?src=pr&el=desc) will **increase** coverage by...
diff --git a/src/azure-cli-core/azure/cli/core/_profile.py b/src/azure-cli-core/azure/cli/core/_profile.py index 2312aa240..6c68bddcb 100644 --- a/src/azure-cli-core/azure/cli/core/_profile.py +++ b/src/azure-cli-core/azure/cli/core/_profile.py @@ -182,16 +182,22 @@ class Profile(object): s[_IS_DEFAULT...
Login: do not set default on disabled subscriptions
Azure/azure-cli
diff --git a/src/azure-cli-core/tests/test_profile.py b/src/azure-cli-core/tests/test_profile.py index 08ab8288f..2ce6494ed 100644 --- a/src/azure-cli-core/tests/test_profile.py +++ b/src/azure-cli-core/tests/test_profile.py @@ -165,6 +165,19 @@ class Test_Profile(unittest.TestCase): # pylint: disable=too-many-public-...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 3, "test_score": 0 }, "num_modified_files": 1 }
0.0
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.5", "req...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==1.4.9 attrs==22.2.0 autopep8==1.2.4 azure-batch==2.0.0 -e git+https://github.com/Azure/azure-cli.git@3b6324d00353405e547723056bb324fe3667731c#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@3b6324d00353405e5477230...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_default_active_subscription_to_non_disabled_one" ]
[ "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_find_subscriptions_from_service_principal_using_cert", "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_service_principal_auth_client_cert" ]
[ "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_create_token_cache", "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_credscache_add_new_sp_creds", "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_credscache_load_tokens_and_sp_creds_with_cert", "src/azure-cli-core/tests...
[ "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_get_expanded_subscription_info_for_logged_in_service_principal" ]
MIT License
null
null
Azure__azure-cli-2624
29d8a30bfb42784c61c0c28e7515937272d276bc
2017-03-24 20:14:29
350bb060e1fddf437f12788afbeedaa0cf61a87f
diff --git a/azure-cli.pyproj b/azure-cli.pyproj index 40fc0e2dc..1b3a00234 100644 --- a/azure-cli.pyproj +++ b/azure-cli.pyproj @@ -587,6 +587,8 @@ <Folder Include="command_modules\azure-cli-network\azure\cli\command_modules\network\mgmt_app_gateway\lib\" /> <Folder Include="command_modules\azure-cli-network...
`az vm extension set` crashes ``` az vm extension set -n IaaSAntimalware --publisher Microsoft.Azure.Security -g TestDesktop_RG --vm-name vmAWB10Test09 Traceback (most recent call last): File "/usr/local/Cellar/python3/3.6.0_1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/azure/cli/main.py...
Azure/azure-cli
diff --git a/src/command_modules/azure-cli-vm/tests/test_custom_vm_commands.py b/src/command_modules/azure-cli-vm/tests/test_custom_vm_commands.py index 7ea9fe5ab..29b1c0205 100644 --- a/src/command_modules/azure-cli-vm/tests/test_custom_vm_commands.py +++ b/src/command_modules/azure-cli-vm/tests/test_custom_vm_command...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 3, "issue_text_score": 1, "test_score": 2 }, "num_modified_files": 5 }
0.0
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.5", "req...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==1.4.9 attrs==22.2.0 autopep8==1.2.4 azure-batch==2.0.0 -e git+https://github.com/Azure/azure-cli.git@29d8a30bfb42784c61c0c28e7515937272d276bc#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@29d8a30bfb42784c61c0c28...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/command_modules/azure-cli-vm/tests/test_custom_vm_commands.py::Test_Vm_Custom::test_get_extension_instance_name" ]
[]
[ "src/command_modules/azure-cli-vm/tests/test_custom_vm_commands.py::Test_Vm_Custom::test_attach_existing_datadisk_on_vm", "src/command_modules/azure-cli-vm/tests/test_custom_vm_commands.py::Test_Vm_Custom::test_attach_new_datadisk_custom_on_vm", "src/command_modules/azure-cli-vm/tests/test_custom_vm_commands.py...
[]
MIT License
null
null
Azure__azure-cli-2751
678b940f29230f53fd7cbec7211842e99658ed3d
2017-04-04 17:41:26
eb12ac454cbe1ddb59c86cdf2045e1912660e750
codecov-io: # [Codecov](https://codecov.io/gh/Azure/azure-cli/pull/2751?src=pr&el=h1) Report > Merging [#2751](https://codecov.io/gh/Azure/azure-cli/pull/2751?src=pr&el=desc) into [master](https://codecov.io/gh/Azure/azure-cli/commit/1ccca6b1c767efed9068f41446e2689e1b2f8ecf?src=pr&el=desc) will **increase** coverage by...
diff --git a/src/command_modules/azure-cli-network/HISTORY.rst b/src/command_modules/azure-cli-network/HISTORY.rst index ab972d502..b7c518c89 100644 --- a/src/command_modules/azure-cli-network/HISTORY.rst +++ b/src/command_modules/azure-cli-network/HISTORY.rst @@ -5,7 +5,7 @@ Release History unreleased ++++++++++++...
[Network] VNET gateway should support configuration of active-active gateways This is a new feature which was also announced in Ignite last year. Please refer to the Powershell cmdlet documentation or get in touch with me. - [x] Active-Active Cross Premise - [x] Active-Active VNet-to-VNet - [x] Active-Standby to A...
Azure/azure-cli
diff --git a/src/command_modules/azure-cli-network/tests/recordings/test_network_active_active_cross_premise_connection.yaml b/src/command_modules/azure-cli-network/tests/recordings/test_network_active_active_cross_premise_connection.yaml new file mode 100644 index 000000000..b149b2394 --- /dev/null +++ b/src/command_m...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": -1, "issue_text_score": 1, "test_score": -1 }, "num_modified_files": 5 }
2.0
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.5", "req...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==1.4.9 attrs==22.2.0 autopep8==1.2.4 azure-batch==2.0.0 -e git+https://github.com/Azure/azure-cli.git@678b940f29230f53fd7cbec7211842e99658ed3d#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@678b940f29230f53fd7cbec...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/command_modules/azure-cli-network/tests/test_network_commands.py::NetworkLocalGatewayScenarioTest::test_network_local_gateway", "src/command_modules/azure-cli-network/tests/test_network_commands.py::NetworkActiveActiveCrossPremiseScenarioTest::test_network_active_active_cross_premise_connection", "src/comm...
[]
[ "src/command_modules/azure-cli-network/tests/test_network_commands.py::NetworkMultiIdsShowScenarioTest::test_multi_id_show", "src/command_modules/azure-cli-network/tests/test_network_commands.py::NetworkUsageListScenarioTest::test_network_usage_list", "src/command_modules/azure-cli-network/tests/test_network_co...
[]
MIT License
null
null
Azure__azure-cli-2773
6186044564dc3436b7551c58eda07db4412a49f8
2017-04-05 18:24:43
eb12ac454cbe1ddb59c86cdf2045e1912660e750
codecov-io: # [Codecov](https://codecov.io/gh/Azure/azure-cli/pull/2773?src=pr&el=h1) Report > Merging [#2773](https://codecov.io/gh/Azure/azure-cli/pull/2773?src=pr&el=desc) into [master](https://codecov.io/gh/Azure/azure-cli/commit/8dda58ca3c3c1af427df59846384b6b7302acc07?src=pr&el=desc) will **increase** coverage by...
diff --git a/azure-cli.pyproj b/azure-cli.pyproj index bea939442..329dab752 100644 --- a/azure-cli.pyproj +++ b/azure-cli.pyproj @@ -600,6 +600,7 @@ <Folder Include="azure-cli-core\azure\cli\core\test_utils\" /> <Folder Include="azure-cli-core\tests\" /> <Folder Include="azure-cli-core\tests\__pycache__\...
az vmss update fails when trying to update image url for VM scale set I am trying to update os image used in my VMSS, and ran following command but it fails: az vmss update -g myrg -n myvmss --set virtualMachineProfile.storageProfile.osDisk.image.uri=https://mystorage.blob.core.windows.net/system/Microsoft.Compute/Ima...
Azure/azure-cli
diff --git a/src/command_modules/azure-cli-vm/tests/recordings/test_vm_availset.yaml b/src/command_modules/azure-cli-vm/tests/recordings/test_vm_availset.yaml index 390590a73..88f576df2 100644 --- a/src/command_modules/azure-cli-vm/tests/recordings/test_vm_availset.yaml +++ b/src/command_modules/azure-cli-vm/tests/reco...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 1, "test_score": 0 }, "num_modified_files": 7 }
2.0
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.5", "req...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==1.4.9 attrs==22.2.0 autopep8==1.2.4 azure-batch==2.0.0 -e git+https://github.com/Azure/azure-cli.git@6186044564dc3436b7551c58eda07db4412a49f8#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@6186044564dc3436b7551c5...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/command_modules/azure-cli-vm/tests/test_vm_commands.py::VMAvailSetScenarioTest::test_vm_availset", "src/command_modules/azure-cli-vm/tests/test_vm_commands.py::VMSSCreateNoneOptionsTest::test_vmss_create_none_options" ]
[ "src/command_modules/azure-cli-vm/tests/test_vm_commands.py::VMCreateLinuxSecretsScenarioTest::test_vm_create_linux_secrets", "src/command_modules/azure-cli-vm/tests/test_vm_commands.py::VMCreateWindowsSecretsScenarioTest::test_vm_create_windows_secrets", "src/command_modules/azure-cli-vm/tests/test_vm_commands...
[ "src/command_modules/azure-cli-vm/tests/test_vm_commands.py::VMImageListByAliasesScenarioTest::test_vm_image_list_by_alias", "src/command_modules/azure-cli-vm/tests/test_vm_commands.py::VMUsageScenarioTest::test_vm_usage", "src/command_modules/azure-cli-vm/tests/test_vm_commands.py::VMImageListThruServiceScenar...
[]
MIT License
null
null
Azure__azure-cli-2844
a8395ea70322dbf535d474d52ebf3d625a6cbdf0
2017-04-12 18:02:44
eb12ac454cbe1ddb59c86cdf2045e1912660e750
codecov-io: # [Codecov](https://codecov.io/gh/Azure/azure-cli/pull/2844?src=pr&el=h1) Report > Merging [#2844](https://codecov.io/gh/Azure/azure-cli/pull/2844?src=pr&el=desc) into [master](https://codecov.io/gh/Azure/azure-cli/commit/a8395ea70322dbf535d474d52ebf3d625a6cbdf0?src=pr&el=desc) will **increase** coverage by...
diff --git a/src/command_modules/azure-cli-network/HISTORY.rst b/src/command_modules/azure-cli-network/HISTORY.rst index 93cd59cca..3be0480e2 100644 --- a/src/command_modules/azure-cli-network/HISTORY.rst +++ b/src/command_modules/azure-cli-network/HISTORY.rst @@ -10,6 +10,7 @@ unreleased * BC: Fix bug in the output o...
traffic-manager command failed to update endpoint ### Environment summary **Install Method:** How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly) apt-get **CLI Version:** What version of the CLI and modules are installed? (Use `az --version`) azure-cli (2.0.0) network...
Azure/azure-cli
diff --git a/src/command_modules/azure-cli-network/tests/recordings/test_network_traffic_manager.yaml b/src/command_modules/azure-cli-network/tests/recordings/test_network_traffic_manager.yaml index a751cb376..993f92d1e 100644 --- a/src/command_modules/azure-cli-network/tests/recordings/test_network_traffic_manager.yam...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 0, "test_score": 0 }, "num_modified_files": 3 }
2.0
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.5", "req...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==1.4.9 attrs==22.2.0 autopep8==1.2.4 azure-batch==2.0.0 -e git+https://github.com/Azure/azure-cli.git@a8395ea70322dbf535d474d52ebf3d625a6cbdf0#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@a8395ea70322dbf535d474d...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/command_modules/azure-cli-network/tests/test_network_commands.py::NetworkTrafficManagerScenarioTest::test_network_traffic_manager" ]
[]
[ "src/command_modules/azure-cli-network/tests/test_network_commands.py::NetworkMultiIdsShowScenarioTest::test_multi_id_show", "src/command_modules/azure-cli-network/tests/test_network_commands.py::NetworkUsageListScenarioTest::test_network_usage_list", "src/command_modules/azure-cli-network/tests/test_network_co...
[]
MIT License
swerebench/sweb.eval.x86_64.azure_1776_azure-cli-2844
swerebench/sweb.eval.x86_64.azure_1776_azure-cli-2844
Azure__azure-cli-2848
f6b3c18535cf9d1753213311cfe686a7d8f1295d
2017-04-12 22:16:35
eb12ac454cbe1ddb59c86cdf2045e1912660e750
codecov-io: # [Codecov](https://codecov.io/gh/Azure/azure-cli/pull/2848?src=pr&el=h1) Report > Merging [#2848](https://codecov.io/gh/Azure/azure-cli/pull/2848?src=pr&el=desc) into [master](https://codecov.io/gh/Azure/azure-cli/commit/f6b3c18535cf9d1753213311cfe686a7d8f1295d?src=pr&el=desc) will **increase** coverage by...
diff --git a/.gitignore b/.gitignore index fc479e986..7346003bc 100644 --- a/.gitignore +++ b/.gitignore @@ -77,3 +77,6 @@ test_results/ # Code coverage .coverage + +# CI output +artifacts/ \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..a6f8e4dd9 --- /dev/nu...
Weird error on login - 'dict' object cannot be interpreted as an integer ### Environment summary **Install Method:** How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly) ``` rm -rf $HOME/.local/lib/python3.6 mkdir $HOME/.local/lib/python3.6/site-packages ...
Azure/azure-cli
diff --git a/src/azure-cli-core/tests/test_profile.py b/src/azure-cli-core/tests/test_profile.py index bbb63cd5f..a78211b84 100644 --- a/src/azure-cli-core/tests/test_profile.py +++ b/src/azure-cli-core/tests/test_profile.py @@ -581,6 +581,25 @@ class Test_Profile(unittest.TestCase): # pylint: disable=too-many-public-...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_added_files", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 0, "test_score": 0 }, "num_modified_files": 3 }
2.0
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.5", "req...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==1.4.9 attrs==22.2.0 autopep8==1.2.4 azure-batch==2.0.0 -e git+https://github.com/Azure/azure-cli.git@f6b3c18535cf9d1753213311cfe686a7d8f1295d#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@f6b3c18535cf9d175321331...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_credscache_add_preexisting_sp_creds" ]
[ "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_find_subscriptions_from_service_principal_using_cert", "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_service_principal_auth_client_cert" ]
[ "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_create_token_cache", "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_credscache_add_new_sp_creds", "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_credscache_load_tokens_and_sp_creds_with_cert", "src/azure-cli-core/tests...
[]
MIT License
null
null
Azure__azure-cli-2914
3699ef7fdefc8c40fa76ebd83976fc8d4a0b92d1
2017-04-19 03:29:49
eb12ac454cbe1ddb59c86cdf2045e1912660e750
codecov-io: # [Codecov](https://codecov.io/gh/Azure/azure-cli/pull/2914?src=pr&el=h1) Report > Merging [#2914](https://codecov.io/gh/Azure/azure-cli/pull/2914?src=pr&el=desc) into [master](https://codecov.io/gh/Azure/azure-cli/commit/3699ef7fdefc8c40fa76ebd83976fc8d4a0b92d1?src=pr&el=desc) will **increase** coverage by...
diff --git a/azure-cli.pyproj b/azure-cli.pyproj index 39b535e11..cadb46c8f 100644 --- a/azure-cli.pyproj +++ b/azure-cli.pyproj @@ -43,7 +43,17 @@ <Compile Include="azure-cli-core\azure\cli\core\extensions\__init__.py" /> <Compile Include="azure-cli-core\azure\cli\core\help_files.py" /> <Compile Include...
Add support for querying ARM operations In the CLI 2.0 today, we don't have a way of showing operations, and (per the ARM team) "operations is critical for RBAC (creating custom roles etc) and auditing (this is what gets written into Event service entries)."
Azure/azure-cli
diff --git a/src/command_modules/azure-cli-resource/tests/recordings/test_provider_operation.yaml b/src/command_modules/azure-cli-resource/tests/recordings/test_provider_operation.yaml new file mode 100644 index 000000000..300172ede --- /dev/null +++ b/src/command_modules/azure-cli-resource/tests/recordings/test_provid...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 1 }, "num_modified_files": 13 }
2.0
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.5", "req...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==1.4.9 attrs==22.2.0 autopep8==1.2.4 azure-batch==2.0.0 -e git+https://github.com/Azure/azure-cli.git@3699ef7fdefc8c40fa76ebd83976fc8d4a0b92d1#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@3699ef7fdefc8c40fa76ebd...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/command_modules/azure-cli-resource/tests/test_resource.py::ProviderOperationTest::test_provider_operation" ]
[]
[ "src/command_modules/azure-cli-resource/tests/test_resource.py::ResourceGroupScenarioTest::test_resource_group", "src/command_modules/azure-cli-resource/tests/test_resource.py::ResourceGroupNoWaitScenarioTest::test_resource_group_no_wait", "src/command_modules/azure-cli-resource/tests/test_resource.py::Resource...
[]
MIT License
null
null
Azure__azure-cli-2943
fe509f803d562c48b3c1d936f59d4b7b6f698136
2017-04-20 18:46:27
eb12ac454cbe1ddb59c86cdf2045e1912660e750
diff --git a/src/azure-cli-core/azure/cli/core/_profile.py b/src/azure-cli-core/azure/cli/core/_profile.py index e0d45196a..9788066e4 100644 --- a/src/azure-cli-core/azure/cli/core/_profile.py +++ b/src/azure-cli-core/azure/cli/core/_profile.py @@ -106,6 +106,7 @@ class Profile(object): ...
Azure CLI Feature: Use default location and sku when specifying a resource group ### Environment summary **Install Method:** How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly) Answer here: pip **CLI Version:** What version of the CLI and modules are installed? (Use `az -...
Azure/azure-cli
diff --git a/src/azure-cli-core/tests/test_profile.py b/src/azure-cli-core/tests/test_profile.py index e344826e2..7c092e55f 100644 --- a/src/azure-cli-core/tests/test_profile.py +++ b/src/azure-cli-core/tests/test_profile.py @@ -243,6 +243,7 @@ class Test_Profile(unittest.TestCase): # pylint: disable=too-many-public-m...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 0, "test_score": 3 }, "num_modified_files": 7 }
2.0
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.5", "req...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==1.4.9 attrs==22.2.0 autopep8==1.2.4 azure-batch==2.0.0 -e git+https://github.com/Azure/azure-cli.git@fe509f803d562c48b3c1d936f59d4b7b6f698136#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@fe509f803d562c48b3c1d93...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_create_account_without_subscriptions", "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_get_expanded_subscription_info_for_logged_in_service_principal" ]
[ "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_find_subscriptions_from_service_principal_using_cert", "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_service_principal_auth_client_cert" ]
[ "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_create_token_cache", "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_credscache_add_new_sp_creds", "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_credscache_add_preexisting_sp_creds", "src/azure-cli-core/tests/test_prof...
[]
MIT License
null
null
Azure__azure-cli-2955
3079f47653297161fd877f994cfaa0bc202f039f
2017-04-21 17:50:06
eb12ac454cbe1ddb59c86cdf2045e1912660e750
yugangw-msft: ```bash (env) D:\sdk\azure-cli>az ad group -h Group az ad group: Manage Azure Active Directory groups. Subgroups: member : Manage Azure Active Directory group members. Commands: create : Create a group in the directory. delete : Delete a group in...
diff --git a/src/command_modules/azure-cli-role/HISTORY.rst b/src/command_modules/azure-cli-role/HISTORY.rst index b34ef4fe7..5b6240d98 100644 --- a/src/command_modules/azure-cli-role/HISTORY.rst +++ b/src/command_modules/azure-cli-role/HISTORY.rst @@ -5,6 +5,7 @@ Release History 2.0.3 (unreleased) ++++++++++++++++++...
RBAC: support AD group commands 1. Author commands under `az ad group`, to be in parity with xplat's 2. On `group list`, add `--display-name` filtering 3. support group name when resolve `--assignee' on role creation
Azure/azure-cli
diff --git a/src/command_modules/azure-cli-role/tests/recordings/test_graph_group_scenario.yaml b/src/command_modules/azure-cli-role/tests/recordings/test_graph_group_scenario.yaml new file mode 100644 index 000000000..325267215 --- /dev/null +++ b/src/command_modules/azure-cli-role/tests/recordings/test_graph_group_sc...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 1, "test_score": 3 }...
2.0
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.5", "req...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==1.4.9 attrs==22.2.0 autopep8==1.2.4 azure-batch==2.0.0 -e git+https://github.com/Azure/azure-cli.git@3079f47653297161fd877f994cfaa0bc202f039f#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@3079f47653297161fd877f9...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/command_modules/azure-cli-role/tests/test_graph.py::GraphGroupScenarioTest::test_graph_group_scenario" ]
[]
[ "src/command_modules/azure-cli-role/tests/test_graph.py::ServicePrincipalExpressCreateScenarioTest::test_sp_create_scenario", "src/command_modules/azure-cli-role/tests/test_graph.py::ApplicationSetScenarioTest::test_application_set_scenario" ]
[]
MIT License
swerebench/sweb.eval.x86_64.azure_1776_azure-cli-2955
swerebench/sweb.eval.x86_64.azure_1776_azure-cli-2955
Azure__azure-cli-3164
0c5e91ca52cf0ed5f9284968dd3272275020ce89
2017-05-04 19:54:32
eb12ac454cbe1ddb59c86cdf2045e1912660e750
codecov-io: # [Codecov](https://codecov.io/gh/Azure/azure-cli/pull/3164?src=pr&el=h1) Report > Merging [#3164](https://codecov.io/gh/Azure/azure-cli/pull/3164?src=pr&el=desc) into [master](https://codecov.io/gh/Azure/azure-cli/commit/0c5e91ca52cf0ed5f9284968dd3272275020ce89?src=pr&el=desc) will **increase** coverage by...
diff --git a/src/azure-cli-core/HISTORY.rst b/src/azure-cli-core/HISTORY.rst index 0db20c494..49f585169 100644 --- a/src/azure-cli-core/HISTORY.rst +++ b/src/azure-cli-core/HISTORY.rst @@ -6,6 +6,7 @@ Release History ^^^^^^^^^^^^^^^^^^ * core: capture exceptions caused by unregistered provider and auto-register it ...
auth: cache adal token cache in memory The goal is to use a single copy of token cache across the same process, rather dump it after getting a token. Building up a token cache is non trivial involving reading and writing the ~/.azure/accesstoken.json. For some commands which involves 1000+ rest call, like datalake, the...
Azure/azure-cli
diff --git a/src/azure-cli-core/tests/test_profile.py b/src/azure-cli-core/tests/test_profile.py index 6f25f61de..ea3648494 100644 --- a/src/azure-cli-core/tests/test_profile.py +++ b/src/azure-cli-core/tests/test_profile.py @@ -76,7 +76,7 @@ class Test_Profile(unittest.TestCase): # pylint: disable=too-many-public-met...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 0, "test_score": 3 }, "num_modified_files": 2 }
2.0
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.5", "req...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==1.4.9 attrs==22.2.0 autopep8==1.2.4 azure-batch==2.0.1 -e git+https://github.com/Azure/azure-cli.git@0c5e91ca52cf0ed5f9284968dd3272275020ce89#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@0c5e91ca52cf0ed5f928496...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_create_account_without_subscriptions", "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_create_account_without_subscriptions_without_tenant", "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_create_token_cache", "src/azure...
[ "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_find_subscriptions_from_service_principal_using_cert", "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_service_principal_auth_client_cert" ]
[ "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_find_subscriptions_from_particular_tenent", "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_find_subscriptions_from_service_principal_id", "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_find_subscriptions_interactive_from...
[]
MIT License
null
null
Azure__azure-cli-3354
4417fb03c91b0caa5f88a72ca0372d5931c072d9
2017-05-15 16:03:53
eb12ac454cbe1ddb59c86cdf2045e1912660e750
tjprescott: @yugangw-msft I agree. codecov-io: # [Codecov](https://codecov.io/gh/Azure/azure-cli/pull/3354?src=pr&el=h1) Report > Merging [#3354](https://codecov.io/gh/Azure/azure-cli/pull/3354?src=pr&el=desc) into [master](https://codecov.io/gh/Azure/azure-cli/commit/4417fb03c91b0caa5f88a72ca0372d5931c072d9?src=pr&el=...
diff --git a/appveyor.yml b/appveyor.yml index a3b8e2a82..23c0de8d3 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -13,7 +13,7 @@ environment: install: - SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH% - python scripts/dev_setup.py - - python -m pip install sphinx + - python -m pip install sphinx==1.5.6 build_sc...
az vm open-port returns error but executes successfully ### Description az vm open-port returns an error but executes successfully Example: PS C:\Users\larry> az vm open-port -g JUMPBOXRG -n jumpbox --port 80 --priority 500 Operation failed with status: 'Not Found'. Details: 404 Client Error: Not Found for url: ...
Azure/azure-cli
diff --git a/src/command_modules/azure-cli-vm/tests/recordings/test_vm_open_port.yaml b/src/command_modules/azure-cli-vm/tests/recordings/test_vm_open_port.yaml index 0aa74e003..df0308bf4 100644 --- a/src/command_modules/azure-cli-vm/tests/recordings/test_vm_open_port.yaml +++ b/src/command_modules/azure-cli-vm/tests/r...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 2, "test_score": 3 }, "num_modified_files": 4 }
2.0
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.5", "req...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==1.4.9 attrs==22.2.0 autopep8==1.2.4 azure-batch==2.0.1 -e git+https://github.com/Azure/azure-cli.git@4417fb03c91b0caa5f88a72ca0372d5931c072d9#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@4417fb03c91b0caa5f88a72...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/command_modules/azure-cli-vm/tests/test_vm_commands.py::VMOpenPortTest::test_vm_open_port" ]
[ "src/command_modules/azure-cli-vm/tests/test_vm_commands.py::VMCreateLinuxSecretsScenarioTest::test_vm_create_linux_secrets", "src/command_modules/azure-cli-vm/tests/test_vm_commands.py::VMCreateWindowsSecretsScenarioTest::test_vm_create_windows_secrets", "src/command_modules/azure-cli-vm/tests/test_vm_commands...
[ "src/command_modules/azure-cli-vm/tests/test_vm_commands.py::VMImageListByAliasesScenarioTest::test_vm_image_list_by_alias", "src/command_modules/azure-cli-vm/tests/test_vm_commands.py::VMUsageScenarioTest::test_vm_usage", "src/command_modules/azure-cli-vm/tests/test_vm_commands.py::VMImageListThruServiceScenar...
[]
MIT License
swerebench/sweb.eval.x86_64.azure_1776_azure-cli-3354
swerebench/sweb.eval.x86_64.azure_1776_azure-cli-3354
Azure__azure-cli-3373
5bb6b7bb83f5396ee9b6a8c5f458eeb629215703
2017-05-16 22:24:34
eb12ac454cbe1ddb59c86cdf2045e1912660e750
tjprescott: **monitor alert create** ``` Command az monitor alert create: Create a metric-based alert rule. Arguments --condition [Required]: The condition expression upon which to trigger the rule. Usage: --condition "METRIC {>,>=,<,<=} THRESHOLD {avg,min,max,total,last} PERIOD" ...
diff --git a/azure-cli.pyproj b/azure-cli.pyproj index 5316ef474..720fd0f7d 100644 --- a/azure-cli.pyproj +++ b/azure-cli.pyproj @@ -503,16 +503,25 @@ <Compile Include="command_modules\azure-cli-lab\azure\cli\command_modules\lab\__init__.py" /> <Compile Include="command_modules\azure-cli-lab\azure_bdist_wheel...
conditions JSON format required is not syntactically correct JSON ### Description **Outline the issue here:** The only JSON which the Azure cloud will accept for creating a Monitoring rule is as below: { "dataSource": { "odata.type": "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource", ...
Azure/azure-cli
diff --git a/src/command_modules/azure-cli-monitor/tests/recordings/test_monitor.yaml b/src/command_modules/azure-cli-monitor/tests/recordings/test_monitor.yaml new file mode 100644 index 000000000..8eac5a22c --- /dev/null +++ b/src/command_modules/azure-cli-monitor/tests/recordings/test_monitor.yaml @@ -0,0 +1,1241 @@...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_added_files", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": -1, "issue_text_score": 2, "te...
2.0
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.5", "req...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==1.4.9 attrs==22.2.0 autopep8==1.2.4 azure-batch==2.0.1 -e git+https://github.com/Azure/azure-cli.git@5bb6b7bb83f5396ee9b6a8c5f458eeb629215703#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@5bb6b7bb83f5396ee9b6a8c...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/command_modules/azure-cli-monitor/tests/test_custom.py::MonitorNameOrIdTest::test_monitor_resource_id", "src/command_modules/azure-cli-monitor/tests/test_monitor.py::MonitorTests::test_monitor", "src/command_modules/azure-cli-network/tests/test_network_commands.py::NetworkWatcherScenarioTest::test_network_...
[]
[ "src/command_modules/azure-cli-monitor/tests/test_custom.py::FilterBuilderTests::test_activity_logs_select_filter_builder", "src/command_modules/azure-cli-monitor/tests/test_custom.py::FilterBuilderTests::test_build_activity_logs_odata_filter", "src/command_modules/azure-cli-monitor/tests/test_custom.py::Filter...
[]
MIT License
null
null
Azure__azure-cli-3409
40c111b3daa79c4cc326f09d47e60be5826ecccc
2017-05-19 20:00:44
58aac4203905792244f4bb244910354fd44425d6
brendandburns: @tjprescott fixed (test fixed too) tjprescott: ``` /home/travis/build/Azure/azure-cli/src/command_modules/azure-cli-resource/tests/test_resource_validators.py:20:1: E302 expected 2 blank lines, found 1 2 E302 expected 2 blank lines, found 1 ``` Have I mentioned I hate PEP8? yugangw-msft: @brend...
diff --git a/src/azure-cli/setup.py b/src/azure-cli/setup.py index 331db8c41..6a59bb8be 100644 --- a/src/azure-cli/setup.py +++ b/src/azure-cli/setup.py @@ -54,11 +54,13 @@ DEPENDENCIES = [ 'azure-cli-acs', 'azure-cli-appservice', 'azure-cli-batch', + 'azure-cli-billing', 'azure-cli-cdn', 'a...
[Lock] az create lock Fails ### Description Creating locks fails with: ``` az lock create: error: 'Namespace' object has no attribute 'get' ``` --- ### Environment summary **Install Method:** How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly) Answer here: `pip3` ...
Azure/azure-cli
diff --git a/src/command_modules/azure-cli-resource/tests/recordings/test_list_locks.yaml b/src/command_modules/azure-cli-resource/tests/recordings/test_list_locks.yaml new file mode 100644 index 000000000..b43592289 --- /dev/null +++ b/src/command_modules/azure-cli-resource/tests/recordings/test_list_locks.yaml @@ -0,...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 1, "test_score": 3 }, "num_modified_files": 3 }
0.3
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.5", "req...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==2.11.7 attrs==22.2.0 autopep8==1.2.4 azure-batch==3.0.0 -e git+https://github.com/Azure/azure-cli.git@40c111b3daa79c4cc326f09d47e60be5826ecccc#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@40c111b3daa79c4cc326f0...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/command_modules/azure-cli-resource/tests/test_locks.py::ResourceLockTests::test_lock_create_list_delete", "src/command_modules/azure-cli-resource/tests/test_locks.py::ResourceLockTests::test_lock_create_list_delete_resource_group", "src/command_modules/azure-cli-resource/tests/test_resource_validators.py::...
[]
[ "src/command_modules/azure-cli-resource/tests/test_locks.py::ResourceLockTests::test_list_locks", "src/command_modules/azure-cli-resource/tests/test_resource_validators.py::Test_resource_validators::test_generate_deployment_name_from_file" ]
[]
MIT License
null
null
Azure__azure-cli-3415
46d5382995c2740df260704f270df0e5cac965a5
2017-05-20 00:07:55
58aac4203905792244f4bb244910354fd44425d6
codecov-io: # [Codecov](https://codecov.io/gh/Azure/azure-cli/pull/3415?src=pr&el=h1) Report > Merging [#3415](https://codecov.io/gh/Azure/azure-cli/pull/3415?src=pr&el=desc) into [master](https://codecov.io/gh/Azure/azure-cli/commit/46d5382995c2740df260704f270df0e5cac965a5?src=pr&el=desc) will **increase** coverage by...
diff --git a/src/azure-cli-core/HISTORY.rst b/src/azure-cli-core/HISTORY.rst index 103f25a5c..867cd36a3 100644 --- a/src/azure-cli-core/HISTORY.rst +++ b/src/azure-cli-core/HISTORY.rst @@ -7,6 +7,7 @@ unreleased ^^^^^^^^^^^^^^^^^^ * Command paths are no longer case sensitive. * Certain boolean-type parameters are no...
login: expose ADFS flow for azure stack env
Azure/azure-cli
diff --git a/src/azure-cli-core/tests/test_profile.py b/src/azure-cli-core/tests/test_profile.py index ea3648494..90603c558 100644 --- a/src/azure-cli-core/tests/test_profile.py +++ b/src/azure-cli-core/tests/test_profile.py @@ -13,7 +13,7 @@ from adal import AdalError from azure.mgmt.resource.subscriptions.models imp...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 3, "test_score": 0 }, "num_modified_files...
0.3
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.5", "req...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==1.4.9 attrs==22.2.0 autopep8==1.2.4 azure-batch==3.0.0 -e git+https://github.com/Azure/azure-cli.git@46d5382995c2740df260704f270df0e5cac965a5#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@46d5382995c2740df260704...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_find_subscriptions_thru_username_password_adfs" ]
[ "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_find_subscriptions_from_service_principal_using_cert", "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_service_principal_auth_client_cert" ]
[ "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_create_account_without_subscriptions", "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_create_account_without_subscriptions_without_tenant", "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_create_token_cache", "src/azure...
[]
MIT License
null
null
Azure__azure-cli-3441
2e672ea8757dd37052fb8131852eda28cd573cb2
2017-05-24 17:32:50
58aac4203905792244f4bb244910354fd44425d6
diff --git a/src/azure-cli-core/azure/cli/core/_profile.py b/src/azure-cli-core/azure/cli/core/_profile.py index 113eac669..17763237a 100644 --- a/src/azure-cli-core/azure/cli/core/_profile.py +++ b/src/azure-cli-core/azure/cli/core/_profile.py @@ -471,7 +471,6 @@ class SubscriptionFinder(object): temp...
az vm list-usages needs table/tsv work Currently outputs like: ``` $ az vm list-usage --location westus Limit CurrentValue ------- -------------- 2000 100 4 10000 4 2000 100 4 100 100 100 100 100 100 100 1...
Azure/azure-cli
diff --git a/src/azure-cli-core/tests/test_profile.py b/src/azure-cli-core/tests/test_profile.py index ad9d05766..0b11ec681 100644 --- a/src/azure-cli-core/tests/test_profile.py +++ b/src/azure-cli-core/tests/test_profile.py @@ -255,7 +255,7 @@ class Test_Profile(unittest.TestCase): # pylint: disable=too-many-public-m...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 1, "test_score": 3 }, "num_modified_files": 5 }
0.3
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.5", "req...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==1.4.9 attrs==22.2.0 autopep8==1.2.4 azure-batch==3.0.0 -e git+https://github.com/Azure/azure-cli.git@2e672ea8757dd37052fb8131852eda28cd573cb2#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@2e672ea8757dd37052fb813...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_create_account_without_subscriptions_thru_common_tenant" ]
[ "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_find_subscriptions_from_service_principal_using_cert", "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_service_principal_auth_client_cert" ]
[ "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_create_account_without_subscriptions_thru_service_principal", "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_create_account_without_subscriptions_without_tenant", "src/azure-cli-core/tests/test_profile.py::Test_Profile::test_create_tok...
[]
MIT License
null
null
Azure__azure-cli-3643
c024331912bbf467725d76d437557ebc6e4aba17
2017-06-09 16:51:58
eb12ac454cbe1ddb59c86cdf2045e1912660e750
diff --git a/doc/configuring_your_machine.md b/doc/configuring_your_machine.md index 7af498348..a4cbd442c 100644 --- a/doc/configuring_your_machine.md +++ b/doc/configuring_your_machine.md @@ -72,7 +72,7 @@ The repo has a launch.json file that will launch the version of Python that is f #### OSX/Ubuntu (bash): ...
The error message for too short/long password for VM is spelled incorrectly (pssword) We even have a test that verifies that it is incorrectly spelled :)
Azure/azure-cli
diff --git a/src/command_modules/azure-cli-vm/tests/test_vm_actions.py b/src/command_modules/azure-cli-vm/tests/test_vm_actions.py index 800a04d14..45f0b6e8c 100644 --- a/src/command_modules/azure-cli-vm/tests/test_vm_actions.py +++ b/src/command_modules/azure-cli-vm/tests/test_vm_actions.py @@ -117,7 +117,7 @@ class T...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 2 }
2.0
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc libssl-dev libffi-dev" ], "...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==2.11.7 attrs==22.2.0 autopep8==2.0.4 azure-batch==3.0.0 -e git+https://github.com/Azure/azure-cli.git@c024331912bbf467725d76d437557ebc6e4aba17#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@c024331912bbf467725d76...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/command_modules/azure-cli-vm/tests/test_vm_actions.py::TestActions::test_validate_admin_password_linux", "src/command_modules/azure-cli-vm/tests/test_vm_actions.py::TestActions::test_validate_admin_password_windows" ]
[]
[ "src/command_modules/azure-cli-vm/tests/test_vm_actions.py::TestActions::test_figure_out_storage_source", "src/command_modules/azure-cli-vm/tests/test_vm_actions.py::TestActions::test_generate_specfied_ssh_key_files", "src/command_modules/azure-cli-vm/tests/test_vm_actions.py::TestActions::test_get_next_subnet_...
[]
MIT License
swerebench/sweb.eval.x86_64.azure_1776_azure-cli-3643
swerebench/sweb.eval.x86_64.azure_1776_azure-cli-3643
Azure__azure-cli-3645
fb9f2e795d88105549c8552dd7a38136a3fdfda0
2017-06-09 17:35:19
eb12ac454cbe1ddb59c86cdf2045e1912660e750
diff --git a/azure-cli.pyproj b/azure-cli.pyproj index 3fdf7cd0a..ea34c0dd2 100644 --- a/azure-cli.pyproj +++ b/azure-cli.pyproj @@ -592,6 +592,8 @@ </Compile> <Compile Include="command_modules\azure-cli-resource\azure_bdist_wheel.py" /> <Compile Include="command_modules\azure-cli-resource\tests\test_api...
Public IP creation with --version parameter ### Description When I run the following command it should create IPv4 IP address but as an output I get versions of each Azure CLI modules **Command** network public-ip create --name linuxvm --resource-group clivm --allocation-method Dynamic --location southeastasia --...
Azure/azure-cli
diff --git a/src/azure-cli-testsdk/azure/cli/testsdk/__init__.py b/src/azure-cli-testsdk/azure/cli/testsdk/__init__.py index bc8662e4b..ba11839ae 100644 --- a/src/azure-cli-testsdk/azure/cli/testsdk/__init__.py +++ b/src/azure-cli-testsdk/azure/cli/testsdk/__init__.py @@ -10,11 +10,11 @@ from .exceptions import CliTest...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": -1, "issue_text_score": 0, "test_score": -1 }, "num_modified_files": 9 }
2.0
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc libssl-dev libffi-dev" ], "...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==2.11.7 attrs==22.2.0 autopep8==2.0.4 azure-batch==3.0.0 -e git+https://github.com/Azure/azure-cli.git@fb9f2e795d88105549c8552dd7a38136a3fdfda0#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@fb9f2e795d88105549c855...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/command_modules/azure-cli-resource/tests/test_custom.py::TestCustom::test_deployment_parameters", "src/command_modules/azure-cli-resource/tests/test_custom.py::TestCustom::test_extract_parameters", "src/command_modules/azure-cli-resource/tests/test_custom.py::TestCustom::test_resource_missing_parameters", ...
[ "src/command_modules/azure-cli-resource/tests/test_resource.py::ManagedAppDefinitionScenarioTest::test_managedappdef", "src/command_modules/azure-cli-resource/tests/test_resource.py::ManagedAppScenarioTest::test_managedapp", "src/command_modules/azure-cli-resource/tests/test_resource.py::CrossRGDeploymentScenar...
[]
[]
MIT License
null
null
Azure__azure-cli-3743
e80e204a01bf4f32c17d8f89a955c3dd49eaa7ec
2017-06-15 20:19:26
eb12ac454cbe1ddb59c86cdf2045e1912660e750
codecov-io: # [Codecov](https://codecov.io/gh/Azure/azure-cli/pull/3743?src=pr&el=h1) Report > Merging [#3743](https://codecov.io/gh/Azure/azure-cli/pull/3743?src=pr&el=desc) into [master](https://codecov.io/gh/Azure/azure-cli/commit/ff20840c0278a29204adbb2c23c50d92feaa799f?src=pr&el=desc) will **not change** coverage....
diff --git a/azure-cli.pyproj b/azure-cli.pyproj index ea34c0dd2..842d462d2 100644 --- a/azure-cli.pyproj +++ b/azure-cli.pyproj @@ -616,8 +616,6 @@ <Compile Include="command_modules\azure-cli-sf\azure\cli\command_modules\sf\_params.py" /> <Compile Include="command_modules\azure-cli-sf\azure\cli\command_modul...
Parameters file values not being read during deployment create ### Description When using `az group deployment create` with the newest version of the Azure CLI it no longer respects the `--parameters @<file>` contents and prompts me to type out each value in the command line. Tested same template/parameters JSON f...
Azure/azure-cli
diff --git a/src/command_modules/azure-cli-resource/tests/recordings/latest/test_group_deployment.yaml b/src/command_modules/azure-cli-resource/tests/recordings/latest/test_group_deployment.yaml index 5e8b598db..36ac195af 100644 --- a/src/command_modules/azure-cli-resource/tests/recordings/latest/test_group_deployment....
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": -1, "issue_text_score": 0, "test_score": -1 }, "num_modified_files": 3 }
2.0
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc libssl-dev libffi-dev" ], "...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==2.11.7 attrs==22.2.0 autopep8==2.0.4 azure-batch==3.0.0 -e git+https://github.com/Azure/azure-cli.git@e80e204a01bf4f32c17d8f89a955c3dd49eaa7ec#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@e80e204a01bf4f32c17d8f...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/command_modules/azure-cli-resource/tests/test_resource.py::DeploymentTest::test_group_deployment" ]
[]
[ "src/command_modules/azure-cli-resource/tests/test_custom.py::TestCustom::test_deployment_parameters", "src/command_modules/azure-cli-resource/tests/test_custom.py::TestCustom::test_extract_parameters", "src/command_modules/azure-cli-resource/tests/test_custom.py::TestCustom::test_resource_missing_parameters", ...
[]
MIT License
swerebench/sweb.eval.x86_64.azure_1776_azure-cli-3743
swerebench/sweb.eval.x86_64.azure_1776_azure-cli-3743
Azure__azure-cli-3754
0e10f6fee8807cda08afd61f60fe8e7d7508156e
2017-06-16 20:24:24
eb12ac454cbe1ddb59c86cdf2045e1912660e750
codecov-io: # [Codecov](https://codecov.io/gh/Azure/azure-cli/pull/3754?src=pr&el=h1) Report > Merging [#3754](https://codecov.io/gh/Azure/azure-cli/pull/3754?src=pr&el=desc) into [master](https://codecov.io/gh/Azure/azure-cli/commit/dff725f8bee017b61cf2d6dc5374f9315e52b644?src=pr&el=desc) will **increase** coverage by...
diff --git a/src/azure-cli-core/azure/cli/core/cloud.py b/src/azure-cli-core/azure/cli/core/cloud.py index 5fb720abd..21eefe782 100644 --- a/src/azure-cli-core/azure/cli/core/cloud.py +++ b/src/azure-cli-core/azure/cli/core/cloud.py @@ -58,7 +58,8 @@ class CloudEndpoints(object): # pylint: disable=too-few-public-metho...
AzureStack: images aliases is not applicable for azurestack ### Description CLI has a set of aliases for the images referred from the following location https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json These aliases makes the assumption that these im...
Azure/azure-cli
diff --git a/src/command_modules/azure-cli-vm/tests/test_vm_image.py b/src/command_modules/azure-cli-vm/tests/test_vm_image.py index f3b661c14..9c2eb1f0d 100644 --- a/src/command_modules/azure-cli-vm/tests/test_vm_image.py +++ b/src/command_modules/azure-cli-vm/tests/test_vm_image.py @@ -8,6 +8,8 @@ import unittest im...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 1, "test_score": 3 }, "num...
2.0
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc libssl-dev libffi-dev" ], "...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==2.11.7 attrs==22.2.0 autopep8==2.0.4 azure-batch==3.0.0 -e git+https://github.com/Azure/azure-cli.git@0e10f6fee8807cda08afd61f60fe8e7d7508156e#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@0e10f6fee8807cda08afd6...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/command_modules/azure-cli-vm/tests/test_vm_image.py::TestVMImage::test_when_alias_doc_is_missing" ]
[ "src/command_modules/azure-cli-vm/tests/test_vm_image.py::TestVMImage::test_read_images_from_alias_doc" ]
[]
[]
MIT License
null
null
Azure__azure-cli-4047
dd91433b36f95e9c849cbbcecccb0f610a8f0a3c
2017-07-19 03:10:04
eb12ac454cbe1ddb59c86cdf2045e1912660e750
codecov-io: # [Codecov](https://codecov.io/gh/Azure/azure-cli/pull/4047?src=pr&el=h1) Report > Merging [#4047](https://codecov.io/gh/Azure/azure-cli/pull/4047?src=pr&el=desc) into [master](https://codecov.io/gh/Azure/azure-cli/commit/dd91433b36f95e9c849cbbcecccb0f610a8f0a3c?src=pr&el=desc) will **not change** coverage....
diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py index a0e2fe027..4f08c5271 100644 --- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py +++ b/src/command_modules/azure-cli-vm/azure/cli/...
Misleading error message when resetting SSH key on a VM ### Description The following command works on all my VMs except for one particular one show below. NOTE: `az` is an alias to `docker run --rm -v /Users/$(whoami):/root -it azuresdk/azure-cli-python az` ```sh $ az vm user update -u moody -g myGroup -n myVM...
Azure/azure-cli
diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_custom_vm_commands.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_custom_vm_commands.py index 3ddcc7996..58d51f6d9 100644 --- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_cu...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_media" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 0, "test_score": 0 }, "num_modified_files": 1 }
2.0
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc libssl-dev libffi-dev" ], "...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==2.11.7 attrs==22.2.0 autopep8==2.0.4 azure-batch==3.0.0 -e git+https://github.com/Azure/azure-cli.git@dd91433b36f95e9c849cbbcecccb0f610a8f0a3c#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@dd91433b36f95e9c849cbb...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_custom_vm_commands.py::Test_Vm_Custom::test_get_extension_instance_name_when_type_none" ]
[]
[ "src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_custom_vm_commands.py::Test_Vm_Custom::test_attach_existing_datadisk_on_vm", "src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_custom_vm_commands.py::Test_Vm_Custom::test_attach_new_datadisk_custom_on_vm", "src/com...
[]
MIT License
null
null
Azure__azure-cli-4091
24667566ff4732ad325da0ddcf0eb143f0650c84
2017-07-28 18:30:26
eb12ac454cbe1ddb59c86cdf2045e1912660e750
codecov-io: # [Codecov](https://codecov.io/gh/Azure/azure-cli/pull/4091?src=pr&el=h1) Report > Merging [#4091](https://codecov.io/gh/Azure/azure-cli/pull/4091?src=pr&el=desc) into [master](https://codecov.io/gh/Azure/azure-cli/commit/b3c613ff92ce7bfc40caed5c86fb508c7e7d3710?src=pr&el=desc) will **increase** coverage by...
diff --git a/src/azure-cli-core/azure/cli/core/_profile.py b/src/azure-cli-core/azure/cli/core/_profile.py index 1d12fd835..7200ab600 100644 --- a/src/azure-cli-core/azure/cli/core/_profile.py +++ b/src/azure-cli-core/azure/cli/core/_profile.py @@ -57,6 +57,7 @@ _CLIENT_ID = '04b07795-8ddb-461a-bbee-02f9e1bf7b46' _COM...
Proposal: az account refresh Sometimes I have new subscriptions associated to my account that did not exist when I did `azure login` so I have to do `azure login` again and go through the interactive login flow to get the new subscriptions I have show up on my local CLI. Since CLI already has my working credentials, p...
Azure/azure-cli
diff --git a/src/azure-cli-core/azure/cli/core/tests/test_profile.py b/src/azure-cli-core/azure/cli/core/tests/test_profile.py index e65acb739..4a4d5fa91 100644 --- a/src/azure-cli-core/azure/cli/core/tests/test_profile.py +++ b/src/azure-cli-core/azure/cli/core/tests/test_profile.py @@ -9,6 +9,8 @@ import os import u...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 3 }, "num_modified_files": 4 }
2.0
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc libssl-dev libffi-dev" ], "...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==2.11.7 attrs==22.2.0 autopep8==2.0.4 azure-batch==3.0.0 -e git+https://github.com/Azure/azure-cli.git@24667566ff4732ad325da0ddcf0eb143f0650c84#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@24667566ff4732ad325da0...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/azure-cli-core/azure/cli/core/tests/test_profile.py::Test_Profile::test_refresh_accounts_one_user_account", "src/azure-cli-core/azure/cli/core/tests/test_profile.py::Test_Profile::test_refresh_accounts_one_user_account_one_sp_account", "src/azure-cli-core/azure/cli/core/tests/test_profile.py::Test_Profile:...
[ "src/azure-cli-core/azure/cli/core/tests/test_profile.py::Test_Profile::test_cloud_console_login", "src/azure-cli-core/azure/cli/core/tests/test_profile.py::Test_Profile::test_find_subscriptions_from_service_principal_using_cert", "src/azure-cli-core/azure/cli/core/tests/test_profile.py::Test_Profile::test_serv...
[ "src/azure-cli-core/azure/cli/core/tests/test_profile.py::Test_Profile::test_create_account_without_subscriptions_thru_common_tenant", "src/azure-cli-core/azure/cli/core/tests/test_profile.py::Test_Profile::test_create_account_without_subscriptions_thru_service_principal", "src/azure-cli-core/azure/cli/core/tes...
[]
MIT License
null
null
Azure__azure-cli-4265
85c0e4c8fb21e26a4984cad3b21a5e22a6a8b92b
2017-08-18 19:52:45
eb12ac454cbe1ddb59c86cdf2045e1912660e750
codecov-io: # [Codecov](https://codecov.io/gh/Azure/azure-cli/pull/4265?src=pr&el=h1) Report > Merging [#4265](https://codecov.io/gh/Azure/azure-cli/pull/4265?src=pr&el=desc) into [master](https://codecov.io/gh/Azure/azure-cli/commit/85c0e4c8fb21e26a4984cad3b21a5e22a6a8b92b?src=pr&el=desc) will **increase** coverage by...
diff --git a/packaged_releases/debian/debian_build.sh b/packaged_releases/debian/debian_build.sh index cac900add..1d59a1ffd 100644 --- a/packaged_releases/debian/debian_build.sh +++ b/packaged_releases/debian/debian_build.sh @@ -55,6 +55,9 @@ $source_dir/python_env/bin/pip3 install wheel for d in $source_dir/src/azure...
vm/vmss create: don't throw when tries to retrieve image to extract the plan information The context is some images are still being staged and not yet published, hence image API won't go through. Instead of fail (therefore block the create), the suggested change is to warn. I am fine with it, as using market place imag...
Azure/azure-cli
diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_actions.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_actions.py index 068c40722..0475ec9e3 100644 --- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_actions.py +++ ...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 0, "test_score": 3 }, "num_modified_files": 5 }
2.0
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc libssl-dev libffi-dev" ], "...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==2.11.7 attrs==22.2.0 autopep8==2.0.4 azure-batch==3.1.0 -e git+https://github.com/Azure/azure-cli.git@85c0e4c8fb21e26a4984cad3b21a5e22a6a8b92b#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@85c0e4c8fb21e26a4984ca...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_actions.py::TestActions::test_parse_staging_image_argument" ]
[]
[ "src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_actions.py::TestActions::test_figure_out_storage_source", "src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/test_vm_actions.py::TestActions::test_generate_specfied_ssh_key_files", "src/command_modules/azure-cli-vm/az...
[]
MIT License
swerebench/sweb.eval.x86_64.azure_1776_azure-cli-4265
swerebench/sweb.eval.x86_64.azure_1776_azure-cli-4265
Azure__azure-cli-4272
966cbaa94a8eba13f89a220fb1fe73bed3e2244b
2017-08-18 23:54:34
eb12ac454cbe1ddb59c86cdf2045e1912660e750
diff --git a/src/command_modules/azure-cli-storage/HISTORY.rst b/src/command_modules/azure-cli-storage/HISTORY.rst index 3a69e8aa3..51989b349 100644 --- a/src/command_modules/azure-cli-storage/HISTORY.rst +++ b/src/command_modules/azure-cli-storage/HISTORY.rst @@ -3,6 +3,12 @@ Release History =============== +unrel...
az storage account update encryption - syntax mismatch? ### Description `az storage account update \ --name ${storageacct} --resource-group ${res_group} \ --encryption queue table blob file` based on this in usage: `[--encryption {queue,table,blob,file} [{queue,table,blob,file} ...]]` results in `az...
Azure/azure-cli
diff --git a/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/test_storage_validators.py b/src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/test_storage_validators.py index cfd57ca27..92da19ef3 100644 --- a/src/command_modules/azure-cli-storage/azure/cli/command...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 3, "issue_text_score": 0, "test_score": 3 }, "num_modified_files": 4 }
2.0
{ "env_vars": null, "env_yml_path": null, "install": "python scripts/dev_setup.py", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc libssl-dev libffi-dev" ], "...
adal==0.4.3 applicationinsights==0.10.0 argcomplete==1.8.0 astroid==2.11.7 attrs==22.2.0 autopep8==2.0.4 azure-batch==3.1.0 -e git+https://github.com/Azure/azure-cli.git@966cbaa94a8eba13f89a220fb1fe73bed3e2244b#egg=azure_cli&subdirectory=src/azure-cli -e git+https://github.com/Azure/azure-cli.git@966cbaa94a8eba13f89a22...
name: azure-cli channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - ...
[ "src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/test_storage_validators.py::TestEncryptionValidators::test_validate_encryption_services", "src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/test_storage_validators.py::TestEncryptionValidators::test_validat...
[]
[ "src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/test_storage_validators.py::TestStorageValidators::test_datetime_string_type", "src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/tests/test_storage_validators.py::TestStorageValidators::test_datetime_type", "sr...
[]
MIT License
null
null
Azure__azure-data-lake-store-python-76
46645c61e903d76585c410baadb1f49885fdbb2e
2016-09-21 18:16:23
46645c61e903d76585c410baadb1f49885fdbb2e
jbcrail: All benchmarks completed without errors: ``` [bench_upload_1_100gb] starting... [bench_upload_1_100gb] finished in 612.4005s [bench_download_1_100gb] starting... [bench_download_1_100gb] finished in 1234.5771s [bench_upload_100_1gb] starting... [bench_upload_100_1gb] finished in 762.1828s [bench_downlo...
diff --git a/adlfs/cli.py b/adlfs/cli.py index 0c6c2ca..f8d2a1f 100644 --- a/adlfs/cli.py +++ b/adlfs/cli.py @@ -179,7 +179,7 @@ class AzureDataLakeFSCommand(cmd.Cmd, object): parser = argparse.ArgumentParser(prog="get", add_help=False) parser.add_argument('remote_path', type=str) parser.add_...
PRI 0: Use the Offset parameter in append to ensure we are always appending at the offset we expect The append API allows for a query parameter called offset, which allows you to specify where you think the end of the file is to append data to. This is very useful for us, since it allows us to submit an append call whe...
Azure/azure-data-lake-store-python
diff --git a/tests/recordings/test_core/test_append.yaml b/tests/recordings/test_core/test_append.yaml index 8dca3db..cd71edc 100644 --- a/tests/recordings/test_core/test_append.yaml +++ b/tests/recordings/test_core/test_append.yaml @@ -14,15 +14,15 @@ interactions: Cache-Control: [no-cache] Content-Lengt...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 0, "test_score": 2 }, "num_modified_files": 6 }
unknown
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.5", "reqs_path": [ "requirements.txt" ], "test_cmd": "pytest --...
adal==1.2.7 -e git+https://github.com/Azure/azure-data-lake-store-python.git@46645c61e903d76585c410baadb1f49885fdbb2e#egg=adlfs attrs==22.2.0 azure==4.0.0 azure-applicationinsights==0.1.1 azure-batch==4.1.3 azure-common==1.1.28 azure-core==1.24.2 azure-cosmosdb-nspkg==2.0.2 azure-cosmosdb-table==1.0.6 azure-datalake-st...
name: azure-data-lake-store-python channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2...
[ "tests/test_transfer.py::test_submit_and_run", "tests/test_transfer.py::test_temporary_path" ]
[]
[]
[]
MIT License
null
null
Azure__azure-data-lake-store-python-83
9143406b26b3dc695c325b4fbf563c2093e9982f
2016-09-29 04:13:44
9143406b26b3dc695c325b4fbf563c2093e9982f
diff --git a/adlfs/cli.py b/adlfs/cli.py index f8d2a1f..320033f 100644 --- a/adlfs/cli.py +++ b/adlfs/cli.py @@ -91,13 +91,13 @@ class AzureDataLakeFSCommand(cmd.Cmd, object): def _parse_ownership(self, ownership): if ':' in ownership: - user, group = ownership.split(':') - if not ...
SetOwner and SetPermission are now supported, need tests Please add tests and recordings for these two APIs now that they are supported
Azure/azure-data-lake-store-python
diff --git a/tests/recordings/test_cli/test_chgrp.yaml b/tests/recordings/test_cli/test_chgrp.yaml new file mode 100644 index 0000000..5a4b97d --- /dev/null +++ b/tests/recordings/test_cli/test_chgrp.yaml @@ -0,0 +1,113 @@ +interactions: +- request: + body: '123456' + headers: + Accept: ['*/*'] + Accept...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 1 }
unknown
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "vcrpy" ], "pre_install": null, "python": "3.5", "reqs_path": [ "requirements.txt" ], "test_cmd...
adal==1.2.7 -e git+https://github.com/Azure/azure-data-lake-store-python.git@9143406b26b3dc695c325b4fbf563c2093e9982f#egg=adlfs attrs==22.2.0 azure==4.0.0 azure-applicationinsights==0.1.1 azure-batch==4.1.3 azure-common==1.1.28 azure-core==1.24.2 azure-cosmosdb-nspkg==2.0.2 azure-cosmosdb-table==1.0.6 azure-datalake-st...
name: azure-data-lake-store-python channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2...
[ "tests/test_cli.py::test_chown" ]
[ "tests/test_core.py::test_ls_touch", "tests/test_core.py::test_rm", "tests/test_core.py::test_bad_open", "tests/test_core.py::test_info", "tests/test_core.py::test_exists", "tests/test_core.py::test_read_delimited_block" ]
[ "tests/test_cli.py::test_cat", "tests/test_cli.py::test_chgrp", "tests/test_cli.py::test_chmod", "tests/test_cli.py::test_df", "tests/test_cli.py::test_du", "tests/test_cli.py::test_exists", "tests/test_cli.py::test_get", "tests/test_cli.py::test_head", "tests/test_cli.py::test_head_bytes", "tests...
[]
MIT License
null
null
Azure__azure-functions-durable-python-494
354ace05d704ae63f9a6488bd6a228adb949e2b2
2024-04-18 20:59:18
74d918127ed998dac15e5a7a82da3765a11df30a
cgillum: It seems to me that this is a breaking change. Previously we serialized `str` as JSON, whereas with this PR, we won't serialize it anymore. To avoid breaking users that depend on the existing behavior, should we add an opt-in flag value indicating whether `str` content should be serialized? Here's an exampl...
diff --git a/azure/durable_functions/models/DurableOrchestrationContext.py b/azure/durable_functions/models/DurableOrchestrationContext.py index df10100..01ec900 100644 --- a/azure/durable_functions/models/DurableOrchestrationContext.py +++ b/azure/durable_functions/models/DurableOrchestrationContext.py @@ -214,7 +214,...
`call_http` json serializes regular `str` content. <!-- Please read. Before posting, please be sure to review whether your issue matches the description of a known regression by using [this](https://github.com/Azure/azure-functions-durable-python/issues?q=is%3Aissue+is%3Aopen+label%3Aknown-regression) query. If...
Azure/azure-functions-durable-python
diff --git a/tests/orchestrator/test_call_http.py b/tests/orchestrator/test_call_http.py index be46d87..b42b36c 100644 --- a/tests/orchestrator/test_call_http.py +++ b/tests/orchestrator/test_call_http.py @@ -1,5 +1,6 @@ from azure.durable_functions.models.ReplaySchema import ReplaySchema import json +import pytest ...
{ "commit_name": "merge_commit", "failed_lite_validators": [], "has_test_patch": true, "is_lite": true, "llm_score": { "difficulty_score": 2, "issue_text_score": 1, "test_score": 3 }, "num_modified_files": 1 }
1.2
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-asyncio" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python...
aiohttp==3.7.4 argcomplete==1.12.3 async-timeout==3.0.1 attrs==25.3.0 autopep8==1.5.2 azure-functions==1.23.0b3 -e git+https://github.com/Azure/azure-functions-durable-python.git@354ace05d704ae63f9a6488bd6a228adb949e2b2#egg=azure_functions_durable certifi==2025.1.31 chardet==3.0.4 colorlog==4.8.0 distlib==0.3.9 entrypo...
name: azure-functions-durable-python channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a...
[ "tests/orchestrator/test_call_http.py::test_call_http_content_handling[None-None-False]", "tests/orchestrator/test_call_http.py::test_call_http_content_handling[string", "tests/orchestrator/test_call_http.py::test_call_http_content_handling[{\"key\":", "tests/orchestrator/test_call_http.py::test_call_http_con...
[]
[ "tests/orchestrator/test_call_http.py::test_initial_orchestration_state", "tests/orchestrator/test_call_http.py::test_completed_state", "tests/orchestrator/test_call_http.py::test_failed_state", "tests/orchestrator/test_call_http.py::test_initial_post_state", "tests/orchestrator/test_call_http.py::test_post...
[]
MIT License
swerebench/sweb.eval.x86_64.azure_1776_azure-functions-durable-python-494
swerebench/sweb.eval.x86_64.azure_1776_azure-functions-durable-python-494
Azure__azure-functions-python-library-172
fa064842f214f962612fccb9a5bcee502eac6c55
2023-02-25 05:20:20
fa064842f214f962612fccb9a5bcee502eac6c55
codecov[bot]: # [Codecov](https://codecov.io/gh/Azure/azure-functions-python-library/pull/172?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Azure) Report > Merging [#172](https://codecov.io/gh/Azure/azure-functions-python-library/pull/172?src=pr&el=desc&utm_med...
diff --git a/azure/functions/decorators/function_app.py b/azure/functions/decorators/function_app.py index ac06b36..deb9054 100644 --- a/azure/functions/decorators/function_app.py +++ b/azure/functions/decorators/function_app.py @@ -399,14 +399,14 @@ class TriggerApi(DecoratorApi, ABC): return wrap - de...
[FeatureRequest] Add timer trigger for Python Programming Model V2 Add an alias for schedule.
Azure/azure-functions-python-library
diff --git a/tests/decorators/test_decorators.py b/tests/decorators/test_decorators.py index c613721..5dea1c2 100644 --- a/tests/decorators/test_decorators.py +++ b/tests/decorators/test_decorators.py @@ -65,7 +65,7 @@ class TestFunctionsApp(unittest.TestCase): self.assertTrue(isinstance(func.get_trigger(), Ht...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 2, "test_score": 1 }, "num_modified_files": 1 }
1.13
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": null, "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.9", "reqs_path": [ "requ...
-e git+https://github.com/Azure/azure-functions-python-library.git@fa064842f214f962612fccb9a5bcee502eac6c55#egg=azure_functions certifi==2025.1.31 charset-normalizer==3.4.1 coverage==7.8.0 exceptiongroup==1.2.2 flake8==4.0.1 idna==3.10 iniconfig==2.1.0 mccabe==0.6.1 mypy==1.15.0 mypy-extensions==1.0.0 packaging==24.2 p...
name: azure-functions-python-library channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a...
[ "tests/decorators/test_decorators.py::TestFunctionsApp::test_timer_trigger_default_args", "tests/decorators/test_decorators.py::TestFunctionsApp::test_timer_trigger_full_args" ]
[]
[ "tests/decorators/test_decorators.py::TestFunctionsApp::test_blob_default_args", "tests/decorators/test_decorators.py::TestFunctionsApp::test_blob_input_binding", "tests/decorators/test_decorators.py::TestFunctionsApp::test_blob_output_binding", "tests/decorators/test_decorators.py::TestFunctionsApp::test_blo...
[]
MIT License
null
null
Azure__azure-functions-python-library-196
3a0797131fa87424ee912b225f60624785f98999
2023-12-12 23:24:10
3a0797131fa87424ee912b225f60624785f98999
codecov[bot]: ## [Codecov](https://app.codecov.io/gh/Azure/azure-functions-python-library/pull/196?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Azure) Report All modified and coverable lines are covered by tests :white_check_mark: > Comparison is base [(`0ca53...
diff --git a/azure/functions/__init__.py b/azure/functions/__init__.py index 4a35da6..15cf667 100644 --- a/azure/functions/__init__.py +++ b/azure/functions/__init__.py @@ -10,7 +10,7 @@ from .decorators import (FunctionApp, Function, Blueprint, DecoratorApi, DataType, AuthLevel, ...
[FeatureRequest] Add EventGrid source option for blob_trigger This is already documented [here](https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob-trigger#decorators): > - source: Sets the source of the triggering event. Use EventGrid for an Event Grid-based blob trigger, which p...
Azure/azure-functions-python-library
diff --git a/tests/decorators/test_blob.py b/tests/decorators/test_blob.py index 9d6154e..f77f731 100644 --- a/tests/decorators/test_blob.py +++ b/tests/decorators/test_blob.py @@ -3,14 +3,16 @@ import unittest from azure.functions.decorators.blob import BlobTrigger, BlobOutput, BlobInput -from azure.functions.d...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 1, "test_score": 0 }, "num_modified_files": 6 }
1.20
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": null, "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.9", "reqs_path": [ "requ...
aiohappyeyeballs==2.6.1 aiohttp==3.11.14 aiosignal==1.3.2 async-timeout==5.0.1 attrs==25.3.0 -e git+https://github.com/Azure/azure-functions-python-library.git@3a0797131fa87424ee912b225f60624785f98999#egg=azure_functions azure-functions-durable==1.2.10 certifi==2025.1.31 charset-normalizer==3.4.1 coverage==7.8.0 except...
name: azure-functions-python-library channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a...
[ "tests/decorators/test_blob.py::TestBlob::test_blob_input_valid_creation", "tests/decorators/test_blob.py::TestBlob::test_blob_output_valid_creation", "tests/decorators/test_blob.py::TestBlob::test_blob_trigger_creation_with_source_as_enum", "tests/decorators/test_blob.py::TestBlob::test_blob_trigger_creation...
[]
[]
[]
MIT License
null
null
Azure__azure-functions-python-worker-1166
d7e5c84ca57d4dd35c03efb611044c46a68137d7
2023-01-23 21:02:49
5b3a930cad712cc560f242351703c419aff2a057
codecov[bot]: # [Codecov](https://codecov.io/gh/Azure/azure-functions-python-worker/pull/1166?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Azure) Report > Merging [#1166](https://codecov.io/gh/Azure/azure-functions-python-worker/pull/1166?src=pr&el=desc&utm_me...
diff --git a/azure_functions_worker/dispatcher.py b/azure_functions_worker/dispatcher.py index 24c25ec..1e60917 100644 --- a/azure_functions_worker/dispatcher.py +++ b/azure_functions_worker/dispatcher.py @@ -9,6 +9,7 @@ import asyncio import concurrent.futures import logging import os +import platform import queue...
Populate WorkerMetadata in WorkerInitResponse message The protobuf has been updated to include a `WorkerMetadata` property within the `WorkerInitResponse` message. The worker should include `WorkerMetadata` when sending the `WorkerInitResponse` to the host. [PR](https://github.com/Azure/azure-functions-language-work...
Azure/azure-functions-python-worker
diff --git a/tests/unittests/test_dispatcher.py b/tests/unittests/test_dispatcher.py index 5aab8d3..4c8b058 100644 --- a/tests/unittests/test_dispatcher.py +++ b/tests/unittests/test_dispatcher.py @@ -8,6 +8,7 @@ from typing import Optional, Tuple from unittest.mock import patch from azure_functions_worker import p...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 1, "test_score": 2 }, "num_modified_files": 3 }
4.10
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.9", "reqs_path...
aiohappyeyeballs==2.6.1 aiohttp==3.11.14 aiosignal==1.3.2 anyio==4.9.0 async-timeout==5.0.1 attrs==25.3.0 azure-core==1.32.0 azure-eventhub==5.7.0 azure-functions==1.13.0b1 azure-functions-durable==1.2.10 -e git+https://github.com/Azure/azure-functions-python-worker.git@d7e5c84ca57d4dd35c03efb611044c46a68137d7#egg=azur...
name: azure-functions-python-worker channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a6...
[ "tests/unittests/test_dispatcher.py::TestThreadPoolSettingsPython39::test_dispatcher_initialize_worker", "tests/unittests/test_dispatcher.py::TestThreadPoolSettingsPython37::test_dispatcher_initialize_worker", "tests/unittests/test_dispatcher.py::TestThreadPoolSettingsPython38::test_dispatcher_initialize_worker...
[ "tests/unittests/test_dispatcher.py::TestThreadPoolSettingsPython39::test_dispatcher_environment_reload", "tests/unittests/test_dispatcher.py::TestThreadPoolSettingsPython37::test_dispatcher_environment_reload", "tests/unittests/test_dispatcher.py::TestThreadPoolSettingsPython38::test_dispatcher_environment_rel...
[ "tests/unittests/test_dispatcher.py::TestDispatcherSteinLegacyFallback::test_dispatcher_functions_metadata_request_legacy_fallback", "tests/unittests/test_dispatcher.py::TestThreadPoolSettingsPython39::test_dispatcher_sync_threadpool_set_worker", "tests/unittests/test_dispatcher.py::TestThreadPoolSettingsPython...
[]
MIT License
null
null
Azure__azure-functions-python-worker-1318
d0135b091e8df03f8ac131894e0ec66f780de049
2023-09-18 18:23:19
d0135b091e8df03f8ac131894e0ec66f780de049
codecov[bot]: ## [Codecov](https://app.codecov.io/gh/Azure/azure-functions-python-worker/pull/1318?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Azure) Report > Merging [#1318](https://app.codecov.io/gh/Azure/azure-functions-python-worker/pull/1318?src=pr&el=de...
diff --git a/azure_functions_worker/main.py b/azure_functions_worker/main.py index 3edf284..4e1f70a 100644 --- a/azure_functions_worker/main.py +++ b/azure_functions_worker/main.py @@ -2,7 +2,6 @@ # Licensed under the MIT License. """Main entrypoint.""" - import argparse @@ -26,6 +25,18 @@ def parse_args(): ...
Update python language worker to support handling new command line arguments with functions- prefix The command-line arguments that the language worker receives from the Functions Host have generic names (such as 'host' and 'port'). This can cause conflicts with other environment variables in certain environments. To a...
Azure/azure-functions-python-worker
diff --git a/tests/unittests/test_main.py b/tests/unittests/test_main.py new file mode 100644 index 0000000..2fe29c8 --- /dev/null +++ b/tests/unittests/test_main.py @@ -0,0 +1,79 @@ +import unittest +import sys +from unittest.mock import patch +from azure_functions_worker.main import parse_args + + +class TestMain(uni...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 1, "test_score": 2 }, "num_modified_files": 1 }
4.17
{ "env_vars": null, "env_yml_path": [], "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [], "python": "3.9", "reqs_path": [], "test_cmd": "pytest --no-header -rA --tb=line -...
aiohappyeyeballs==2.6.1 aiohttp==3.11.14 aiosignal==1.3.2 anyio==4.9.0 async-timeout==5.0.1 attrs==25.3.0 azure-core==1.32.0 azure-eventhub==5.7.0 azure-functions==1.16.0 azure-functions-durable==1.2.10 -e git+https://github.com/Azure/azure-functions-python-worker.git@d0135b091e8df03f8ac131894e0ec66f780de049#egg=azure_...
name: azure-functions-python-worker channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a6...
[ "tests/unittests/test_main.py::TestMain::test_old_args", "tests/unittests/test_main.py::TestMain::test_new_args", "tests/unittests/test_main.py::TestMain::test_all_args" ]
[]
[ "tests/unittests/test_main.py::TestMain::test_invalid_args" ]
[]
MIT License
null
null
Azure__azure-functions-python-worker-1378
f269c09764da25e70cad4c6f4bd785cd86221c12
2023-12-06 22:31:30
f269c09764da25e70cad4c6f4bd785cd86221c12
codecov[bot]: ## [Codecov](https://app.codecov.io/gh/Azure/azure-functions-python-worker/pull/1378?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Azure) Report All modified and coverable lines are covered by tests :white_check_mark: > Comparison is base [(`f269c...
diff --git a/azure_functions_worker/dispatcher.py b/azure_functions_worker/dispatcher.py index 625397f..a0ac974 100644 --- a/azure_functions_worker/dispatcher.py +++ b/azure_functions_worker/dispatcher.py @@ -16,6 +16,7 @@ import threading from asyncio import BaseEventLoop from logging import LogRecord from typing i...
[FeatureRequest] Add timestamp in the received invocation logs **Describe the request: A clear and concise description.** Adding a utcnow time stamp that is added to the ReceivedInvocationRequest
Azure/azure-functions-python-worker
diff --git a/tests/unittests/test_dispatcher.py b/tests/unittests/test_dispatcher.py index 43df881..0605a7d 100644 --- a/tests/unittests/test_dispatcher.py +++ b/tests/unittests/test_dispatcher.py @@ -304,15 +304,20 @@ class TestThreadPoolSettingsPython37(testutils.AsyncTestCase): await self._check...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 3, "test_score": 2 }, "num_modified_files": 1 }
4.22
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": null, "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.9", "reqs_path": [ "requ...
aiohappyeyeballs==2.6.1 aiohttp==3.11.14 aiosignal==1.3.2 anyio==4.9.0 async-timeout==5.0.1 attrs==25.3.0 azure-core==1.32.0 azure-eventhub==5.7.0 azure-functions==1.18.0b4 azure-functions-durable==1.2.10 -e git+https://github.com/Azure/azure-functions-python-worker.git@f269c09764da25e70cad4c6f4bd785cd86221c12#egg=azur...
name: azure-functions-python-worker channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a6...
[ "tests/unittests/test_dispatcher.py::TestThreadPoolSettingsPython37::test_sync_invocation_request_log_threads", "tests/unittests/test_dispatcher.py::TestThreadPoolSettingsPython37::test_sync_invocation_request_log", "tests/unittests/test_dispatcher.py::TestThreadPoolSettingsPython37::test_async_invocation_reque...
[]
[ "tests/unittests/test_dispatcher.py::TestDispatcherInitRequest::test_dispatcher_load_modules_con_placeholder_enabled", "tests/unittests/test_dispatcher.py::TestDispatcherInitRequest::test_dispatcher_load_modules_dedicated_app", "tests/unittests/test_dispatcher.py::TestDispatcherInitRequest::test_dispatcher_load...
[]
MIT License
null
null
Azure__azure-functions-python-worker-875
e4adb351e5454c093fcefbf0fb84f200af32f386
2021-07-20 18:27:12
5e522fc610088efec21a1f067e41c9327a69965d
vrdmr: @AnatoliB - Yes, that's the plan - to remove the code and the unit tests. I wanted to get this change in sooner to unblock the perf testing work and get this part of the next week's release.
diff --git a/azure_functions_worker/constants.py b/azure_functions_worker/constants.py index b64b70e..08f464e 100644 --- a/azure_functions_worker/constants.py +++ b/azure_functions_worker/constants.py @@ -1,6 +1,8 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. +impo...
Allow specifying PYTHON_THREADPOOL_THREAD_COUNT larger than 32 Currently, the worker limits the maximum value of `PYTHON_THREADPOOL_THREAD_COUNT` to 32. Any value larger than that is ignored. There is no good reason for this in general case: if someone/something decided a larger number works better for a specific use c...
Azure/azure-functions-python-worker
diff --git a/tests/unittests/test_dispatcher.py b/tests/unittests/test_dispatcher.py index b9c4303..cb90ab8 100644 --- a/tests/unittests/test_dispatcher.py +++ b/tests/unittests/test_dispatcher.py @@ -10,7 +10,9 @@ from unittest.mock import patch from azure_functions_worker import protos from azure_functions_worker i...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 1, "test_score": 2 }, "num_modified_files": 2 }
1.2
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest pytest-cov pytest-xdist pytest-mock pytest-asyncio", "pytest" ], "pre_install": [ "apt-get update", ...
azure-core==1.32.0 azure-eventhub==5.1.0 azure-functions==1.7.2 -e git+https://github.com/Azure/azure-functions-python-worker.git@e4adb351e5454c093fcefbf0fb84f200af32f386#egg=azure_functions_worker certifi==2025.1.31 charset-normalizer==3.4.1 coverage==7.8.0 entrypoints==0.3 exceptiongroup==1.2.2 execnet==2.1.1 flake8=...
name: azure-functions-python-worker channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a6...
[ "tests/unittests/test_dispatcher.py::TestThreadPoolSettingsPython39::test_dispatcher_sync_threadpool_in_placeholder", "tests/unittests/test_dispatcher.py::TestThreadPoolSettingsPython39::test_dispatcher_sync_threadpool_set_worker", "tests/unittests/test_dispatcher.py::TestThreadPoolSettingsPython37::test_dispat...
[]
[ "tests/unittests/test_dispatcher.py::TestThreadPoolSettingsPython39::test_dispatcher_initialize_worker", "tests/unittests/test_dispatcher.py::TestThreadPoolSettingsPython39::test_dispatcher_sync_threadpool_in_placeholder_below_min", "tests/unittests/test_dispatcher.py::TestThreadPoolSettingsPython39::test_dispa...
[]
MIT License
null
null
Azure__iotedgedev-173
ce59bad1286bf650d442b2b7fbe16a3db676a497
2018-05-16 17:52:55
a22c7b0c59505964c5aeab6f8ff859842783c236
diff --git a/iotedgedev/azurecli.py b/iotedgedev/azurecli.py index c5bce70..6bce331 100644 --- a/iotedgedev/azurecli.py +++ b/iotedgedev/azurecli.py @@ -226,10 +226,10 @@ class AzureCli: return result - def apply_configuration(self, deviceId, connection_string, config): - self.output.status(f("De...
AZ IOT HUB apply-configuration needs hubname. If user has old version of az cli iot extension installed they get this: `az iot hub apply-configuration: error: argument --hub-name/-n is required ` - add the -n parameter to the apply-configuration call. you can get it in IOTHUB_CONNECTION_INFO.HostName apply-...
Azure/iotedgedev
diff --git a/tests/test_connectionstring.py b/tests/test_connectionstring.py new file mode 100644 index 0000000..21d0dc9 --- /dev/null +++ b/tests/test_connectionstring.py @@ -0,0 +1,78 @@ +import os +import pytest +from dotenv import load_dotenv +from iotedgedev.connectionstring import ConnectionString, IoTHubConnecti...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 1, "test_score": 1 }, "num_modified_files": 3 }
0.79
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.6", "reqs_path": [ ...
adal==1.2.7 applicationinsights==0.11.10 argcomplete==1.12.3 attrs==22.2.0 azure-cli==2.40.0 azure-cli-cloud==2.1.1 azure-cli-command-modules-nspkg==2.0.3 azure-cli-configure==2.0.24 azure-cli-core==2.40.0 azure-cli-extension==0.2.5 azure-cli-iot==0.3.11 azure-cli-nspkg==3.0.4 azure-cli-profile==2.1.5 azure-cli-resourc...
name: iotedgedev channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 -...
[ "tests/test_connectionstring.py::test_valid_connectionstring", "tests/test_connectionstring.py::test_valid_iothub_connectionstring", "tests/test_connectionstring.py::test_valid_devicehub_connectionstring", "tests/test_connectionstring.py::test_invalid_connectionstring", "tests/test_connectionstring.py::test...
[ "tests/test_connectionstring.py::test_valid_env_iothub_connectionstring", "tests/test_connectionstring.py::test_valid_env_device_connectionstring" ]
[ "tests/test_connectionstring.py::test_empty_connectionstring", "tests/test_connectionstring.py::test_empty_iothub_connectionstring", "tests/test_connectionstring.py::test_empty_device_connectionstring", "tests/test_connectionstring.py::test_invalid_iothub_connectionstring" ]
[]
MIT License
swerebench/sweb.eval.x86_64.azure_1776_iotedgedev-173
swerebench/sweb.eval.x86_64.azure_1776_iotedgedev-173
Azure__iotedgedev-211
31d6219f41caf9401f5c49263a963e3a748e69bf
2018-07-27 12:11:04
a22c7b0c59505964c5aeab6f8ff859842783c236
diff --git a/iotedgedev/modules.py b/iotedgedev/modules.py index d36367e..8b058ba 100644 --- a/iotedgedev/modules.py +++ b/iotedgedev/modules.py @@ -84,31 +84,30 @@ class Modules: tags_to_build = set() for module in os.listdir(self.envvars.MODULES_PATH): - if module not in bypass_modules:...
Image placeholder is not expanded when the module is in BYPASS_MODULES
Azure/iotedgedev
diff --git a/tests/test_utility.py b/tests/test_utility.py index 6786256..8242b6d 100644 --- a/tests/test_utility.py +++ b/tests/test_utility.py @@ -42,3 +42,15 @@ def test_copy_template_expand_env(utility, tmpdir): dest = tmpdir.join("deployment_template_2.dest.json").strpath utility.copy_template(test_file_...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 3, "issue_text_score": 2, "test_score": 3 }, "num_modified_files": 2 }
0.79
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.6", "reqs_path": [ "requirements.txt" ], "test_cmd": "pytest --...
adal==1.2.7 applicationinsights==0.11.10 argcomplete==1.12.3 attrs==22.2.0 azure-cli==2.40.0 azure-cli-cloud==2.1.1 azure-cli-command-modules-nspkg==2.0.3 azure-cli-configure==2.0.24 azure-cli-core==2.40.0 azure-cli-extension==0.2.5 azure-cli-iot==0.3.11 azure-cli-nspkg==3.0.4 azure-cli-profile==2.1.5 azure-cli-resourc...
name: iotedgedev channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 -...
[ "tests/test_utility.py::test_in_asterisk_list", "tests/test_utility.py::test_in_asterisk_list_empty", "tests/test_utility.py::test_in_asterisk_list_asterisk" ]
[]
[ "tests/test_utility.py::test_copy_template", "tests/test_utility.py::test_copy_template_expand_env" ]
[]
MIT License
null
null
Azure__iotedgedev-232
79bcd51b6ac99381fa0ab624f88ef173d4bccff9
2018-08-06 07:53:08
a22c7b0c59505964c5aeab6f8ff859842783c236
diff --git a/iotedgedev/args.py b/iotedgedev/args.py index a24e2cc..80ce565 100644 --- a/iotedgedev/args.py +++ b/iotedgedev/args.py @@ -1,12 +1,13 @@ import sys -# We had to implement this custom arg parsing class because Click doesn't have a handler to detect command before any arguments are parsed, which we need ...
Add solution create to env check exclude list (venv) C:\temp>iotedgedev solution create monitortest ======================================= ======== ENVIRONMENT VARIABLES ======== ======================================= .env file not found on disk. Without a file on disk, you must specify all Environment Variab...
Azure/iotedgedev
diff --git a/tests/test_envvars.py b/tests/test_envvars.py index 12bbfc0..a2a336a 100644 --- a/tests/test_envvars.py +++ b/tests/test_envvars.py @@ -1,6 +1,8 @@ import os import sys + import pytest + from iotedgedev.envvars import EnvVars from iotedgedev.output import Output @@ -61,10 +63,88 @@ def test_set_envv...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 1, "test_score": 3 }, "num_modified_files": 2 }
0.79
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov", "pytest-xdist", "pytest-mock", "pytest-asyncio" ], "pre_install": [ "apt-get ...
adal==1.2.7 applicationinsights==0.11.10 argcomplete==1.12.3 attrs==22.2.0 azure-cli==2.40.0 azure-cli-cloud==2.1.1 azure-cli-command-modules-nspkg==2.0.3 azure-cli-configure==2.0.24 azure-cli-core==2.40.0 azure-cli-extension==0.2.5 azure-cli-iot==0.3.11 azure-cli-nspkg==3.0.4 azure-cli-profile==2.1.5 azure-cli-resourc...
name: iotedgedev channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 -...
[ "tests/test_envvars.py::test_in_command_list_true_1", "tests/test_envvars.py::test_in_command_list_true_2", "tests/test_envvars.py::test_in_command_list_false_1", "tests/test_envvars.py::test_in_command_list_false_2", "tests/test_envvars.py::test_in_command_list_empty_1", "tests/test_envvars.py::test_in_c...
[]
[ "tests/test_envvars.py::test_valid_get_envvar", "tests/test_envvars.py::test_invalid_get_envvar", "tests/test_envvars.py::test_valid_load", "tests/test_envvars.py::test_valid_verify_envvar_has_val", "tests/test_envvars.py::test_valid_get_envvar_key_if_val", "tests/test_envvars.py::test_invalid_get_envvar_...
[]
MIT License
null
null
Azure__iotedgedev-267
3b26b6495293607b3752f83fe412c84d7da4fc23
2018-08-20 06:58:26
a22c7b0c59505964c5aeab6f8ff859842783c236
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..76cd57b --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,16 @@ +--- +name: Bug report +about: Create a issue to help us improve +--- + +<!-- Fill in the information needed --> ...
Renaming `iotedgedev create` to `iotedgedev new` I am thinking about renaming the command `iotedgedev create` to `iotedgedev new` for the sake of simplicity and aligning with common practices (as how the command to create new projects is called in VS and VS Code). @jongio, do you think this is a good idea?
Azure/iotedgedev
diff --git a/tests/test_envvars.py b/tests/test_envvars.py index 038da27..49be0f3 100644 --- a/tests/test_envvars.py +++ b/tests/test_envvars.py @@ -75,49 +75,49 @@ def test_envvar_clean(): def test_in_command_list_true_1(): output = Output() envvars = EnvVars(output) - assert envvars.in_command_list("sol...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 1, "test_score": 2 }, "num_modified_files": 2 }
0.79
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.6", "reqs_path": [ "requirements.txt" ], "test_cmd": "pytest --...
adal==1.2.7 applicationinsights==0.11.9 argcomplete==1.12.3 attrs==22.2.0 azure-cli==2.40.0 azure-cli-cloud==2.1.1 azure-cli-command-modules-nspkg==2.0.3 azure-cli-configure==2.0.24 azure-cli-core==2.31.0 azure-cli-extension==0.2.5 azure-cli-iot==0.3.11 azure-cli-nspkg==3.0.4 azure-cli-profile==2.1.5 azure-cli-resource...
name: iotedgedev channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 -...
[ "tests/test_envvars.py::test_is_bypass_command_true" ]
[ "tests/test_envvars.py::test_default_container_registry_server_key_exists", "tests/test_envvars.py::test_container_registry_map_has_val" ]
[ "tests/test_envvars.py::test_valid_get_envvar", "tests/test_envvars.py::test_invalid_get_envvar", "tests/test_envvars.py::test_valid_load", "tests/test_envvars.py::test_valid_verify_envvar_has_val", "tests/test_envvars.py::test_valid_get_envvar_key_if_val", "tests/test_envvars.py::test_invalid_get_envvar_...
[]
MIT License
null
null
Azure__iotedgedev-270
3b26b6495293607b3752f83fe412c84d7da4fc23
2018-08-20 12:19:29
a22c7b0c59505964c5aeab6f8ff859842783c236
diff --git a/.env.tmp b/.env.tmp index b3e3f5c..76b8120 100644 --- a/.env.tmp +++ b/.env.tmp @@ -9,22 +9,23 @@ DEVICE_CONNECTION_STRING="" # # CONTAINER REGISTRY # - # Settings for your container registry, set CONTAINER_REGISTRY_SERVER to the following as the default registry: - # Local Registry: "localhost:50...
Push fails with authentication error Reported by @michaeljqzq: Met below error when `iotedgedev push`: ``` {"errorDetail":{"message":"unauthorized: authentication required"},"error":"unauthorized: authentication required"}} ERROR: Error: unauthorized: authentication required ``` .env: ``` <snipped> # # ...
Azure/iotedgedev
diff --git a/tests/test_envvars.py b/tests/test_envvars.py index 038da27..03c41ad 100644 --- a/tests/test_envvars.py +++ b/tests/test_envvars.py @@ -75,49 +75,49 @@ def test_envvar_clean(): def test_in_command_list_true_1(): output = Output() envvars = EnvVars(output) - assert envvars.in_command_list("sol...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_added_files", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 3, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 7 }
0.79
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.6", "reqs_path": [ ...
adal==1.2.7 applicationinsights==0.11.9 argcomplete==1.12.3 attrs==22.2.0 azure-cli==2.40.0 azure-cli-cloud==2.1.1 azure-cli-command-modules-nspkg==2.0.3 azure-cli-configure==2.0.24 azure-cli-core==2.31.0 azure-cli-extension==0.2.5 azure-cli-iot==0.3.11 azure-cli-nspkg==3.0.4 azure-cli-profile==2.1.5 azure-cli-resource...
name: iotedgedev channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 -...
[ "tests/test_envvars.py::test_is_bypass_command_true" ]
[ "tests/test_envvars.py::test_default_container_registry_server_key_exists", "tests/test_envvars.py::test_additional_container_registry_map_has_val" ]
[ "tests/test_envvars.py::test_valid_get_envvar", "tests/test_envvars.py::test_invalid_get_envvar", "tests/test_envvars.py::test_valid_load", "tests/test_envvars.py::test_valid_verify_envvar_has_val", "tests/test_envvars.py::test_valid_get_envvar_key_if_val", "tests/test_envvars.py::test_invalid_get_envvar_...
[]
MIT License
null
null
Azure__iotedgedev-349
67c63047b53f7e1749d7d9c3985593deae566699
2018-10-30 09:01:10
67c63047b53f7e1749d7d9c3985593deae566699
diff --git a/.vscode/launch.json b/.vscode/launch.json index 4121a9a..d2519d0 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,20 +5,11 @@ "name": "Python Module", "type": "python", "request": "launch", - "stopOnEntry": true, "module": "iote...
Failed to push to local registry - iotedgedev Version: 1.0.0rc0 - Python Version: Python2.7 Python3.6 Python3.7 - Pip Version:18.1 - Development machine OS Version: Windows10/Ubuntu18.04/Mac os high sierra 10.13.6 - IoT Edge device OS Version: Windows10/Ubuntu18.04/Mac os high sierra 10.13.6 Steps to Reproduce: ...
Azure/iotedgedev
diff --git a/tests/assets/deployment.template_1.json b/tests/assets/deployment.template_1.json index 3dc499e..3d74b31 100644 --- a/tests/assets/deployment.template_1.json +++ b/tests/assets/deployment.template_1.json @@ -7,7 +7,8 @@ "type": "docker", "settings": { "minDockerVersion": ...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 0, "test_score": 3 }, "num_modified_files": 4 }
0.82
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.6", "reqs_path": [ ...
adal==1.2.7 applicationinsights==0.11.9 argcomplete==1.12.3 attrs==22.2.0 azure-cli==2.40.0 azure-cli-cloud==2.1.1 azure-cli-command-modules-nspkg==2.0.3 azure-cli-configure==2.0.24 azure-cli-core==2.31.0 azure-cli-extension==0.2.5 azure-cli-iot==0.3.11 azure-cli-nspkg==3.0.4 azure-cli-profile==2.1.5 azure-cli-resource...
name: iotedgedev channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 -...
[ "tests/test_utility.py::test_copy_from_template_dir" ]
[ "tests/test_envvars.py::test_default_container_registry_server_key_exists", "tests/test_envvars.py::test_additional_container_registry_map_has_val" ]
[ "tests/test_azurecli.py::test_lowercase_token_should_be_lowercase_for_name_and_id", "tests/test_azurecli.py::test_mixedcase_token_should_be_lowercase_for_id_but_unmodified_for_name", "tests/test_buildoptionsparser.py::test_filter_build_options", "tests/test_buildoptionsparser.py::test_parse_to_dict", "tests...
[]
MIT License
swerebench/sweb.eval.x86_64.azure_1776_iotedgedev-349
swerebench/sweb.eval.x86_64.azure_1776_iotedgedev-349
Azure__iotedgehubdev-159
a6fb00a5109860f12bec2b386f368abb20f8d979
2019-01-18 02:06:37
a6fb00a5109860f12bec2b386f368abb20f8d979
LazarusX: @shizn Do you have the detailed messages?
diff --git a/README.md b/README.md index 23ad402..db93bf4 100644 --- a/README.md +++ b/README.md @@ -32,20 +32,42 @@ The following table compares the steps needed to run the solution on the IoT Edg ## Quickstart 1. Setup + + Windows ``` - iotedgehubdev setup -c <edge-device-connection-string> + iotedg...
Provide more friendly information when starting if the user has not setup From https://github.com/Azure/iotedgedev/pull/233#issuecomment-410917902 > @LazarusX - In start, can you automatically detect if setup hasn't been called and call it for the user? > > In start can you detect that it hasn't been build and let...
Azure/iotedgehubdev
diff --git a/tests/test_utils.py b/tests/test_utils.py index f063596..69e1880 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -265,9 +265,9 @@ class TestUtilAPIs(unittest.TestCase): assert Utils.get_sha256_hash("foo") == "2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae" de...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 3 }, "num_modified_files": 4 }
0.6
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov", "flake8", "python-dotenv" ], "pre_install": [], "python": "3.6", "reqs_path"...
applicationinsights==0.11.10 attrs==22.2.0 autopep8==2.0.4 backports.unittest-mock==1.5.1 bcrypt==4.0.1 cached-property==1.5.2 certifi==2021.5.30 cffi==1.15.1 charset-normalizer==2.0.12 click==8.0.4 coverage==6.2 cryptography==40.0.2 decorator==5.1.1 distlib==0.3.9 distro==1.9.0 docker==5.0.3 docker-compose==1.29.2 doc...
name: iotedgehubdev channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 ...
[ "tests/test_utils.py::TestUtilAPIs::test_hash_connection_str_hostname" ]
[]
[ "tests/test_utils.py::TestUtilAPIs::test_check_if_dir_exists_returns_false_if_exists_returns_false", "tests/test_utils.py::TestUtilAPIs::test_check_if_dir_exists_returns_false_if_isdir_returns_false", "tests/test_utils.py::TestUtilAPIs::test_check_if_dir_exists_returns_false_path_is_none", "tests/test_utils.p...
[]
MIT License
null
null
Azure__msrest-for-python-12
cef4818746df436465cfc810723f79aa3a72da89
2017-01-31 01:03:14
cef4818746df436465cfc810723f79aa3a72da89
diff --git a/msrest/serialization.py b/msrest/serialization.py index ee81c21..6e2eb28 100644 --- a/msrest/serialization.py +++ b/msrest/serialization.py @@ -113,31 +113,38 @@ class Model(object): return base._subtype_map return {} + @classmethod + def _flatten_subtype(cls, key, objects...
Support building instance from dict with polymorphic object Currently the SDKs can accept a dict instead of a model and transform it to the right model automatically. This is not available if there is at any level a polymorphic object. This should be possible looking at `_subtype_map` to identify the right instance ...
Azure/msrest-for-python
diff --git a/test/unittest_serialization.py b/test/unittest_serialization.py index 166a375..4e35926 100644 --- a/test/unittest_serialization.py +++ b/test/unittest_serialization.py @@ -562,51 +562,56 @@ class TestRuntimeSerialized(unittest.TestCase): _attribute_map = { "animals":{"key":"...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 3, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 1 }
unknown
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "coverage", "flake8" ], "pre_install": null, "python": "3.5", "reqs_path": [ "dev_requirem...
attrs==22.2.0 certifi==2021.5.30 chardet==5.0.0 charset-normalizer==2.0.12 coverage==6.2 flake8==5.0.4 httpretty==1.1.4 idna==3.10 importlib-metadata==4.2.0 iniconfig==1.1.1 isodate==0.6.1 mccabe==0.7.0 -e git+https://github.com/Azure/msrest-for-python.git@cef4818746df436465cfc810723f79aa3a72da89#egg=msrest oauthlib==3...
name: msrest-for-python channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee55...
[ "test/unittest_serialization.py::TestRuntimeSerialized::test_polymorphic_serialization", "test/unittest_serialization.py::TestRuntimeDeserialized::test_polymorphic_deserialization", "test/unittest_serialization.py::TestRuntimeDeserialized::test_polymorphic_deserialization_with_escape" ]
[]
[ "test/unittest_serialization.py::TestModelDeserialization::test_response", "test/unittest_serialization.py::TestRuntimeSerialized::test_attr_bool", "test/unittest_serialization.py::TestRuntimeSerialized::test_attr_dict_simple", "test/unittest_serialization.py::TestRuntimeSerialized::test_attr_int", "test/un...
[]
MIT License
null
null
Azure__msrest-for-python-167
c4086bfac4e45b11b6bd4267cff62aa302a51877
2019-07-05 19:26:19
c16e5218fe99742c5bf93d73ce0bb71c9b1c0953
codecov-io: # [Codecov](https://codecov.io/gh/Azure/msrest-for-python/pull/167?src=pr&el=h1) Report > Merging [#167](https://codecov.io/gh/Azure/msrest-for-python/pull/167?src=pr&el=desc) into [master](https://codecov.io/gh/Azure/msrest-for-python/commit/c4086bfac4e45b11b6bd4267cff62aa302a51877?src=pr&el=desc) will **i...
diff --git a/msrest/pipeline/universal.py b/msrest/pipeline/universal.py index f124ea7..b8dc40c 100644 --- a/msrest/pipeline/universal.py +++ b/msrest/pipeline/universal.py @@ -32,6 +32,7 @@ import os import xml.etree.ElementTree as ET import platform import codecs +import re from typing import Mapping, Any, Opti...
Response content type json parser Currently the deserializer only supports a list of content type values like "application/json" and "text/json". Based on HTTP spec, "application/<randomtext>+json" is also json. So we should have a type parser to accept this syntax.
Azure/msrest-for-python
diff --git a/tests/test_universal_pipeline.py b/tests/test_universal_pipeline.py index 2568e34..cd92ca7 100644 --- a/tests/test_universal_pipeline.py +++ b/tests/test_universal_pipeline.py @@ -151,6 +151,12 @@ def test_raw_deserializer(): result = response.context["deserialized_data"] assert result["success"]...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 1 }
0.6
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[async]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov", "pytest-asyncio", "httpretty", "mock", "futures", "mypy", "pylint"...
aiodns==3.2.0 aiohttp==3.8.6 aiosignal==1.2.0 astroid==2.11.7 async-generator==1.10 async-timeout==4.0.2 asynctest==0.13.0 attrs==22.2.0 certifi==2021.5.30 cffi==1.15.1 charset-normalizer==2.0.12 contextvars==2.4 coverage==6.2 dill==0.3.4 frozenlist==1.2.0 futures==2.2.0 httpretty==1.1.4 idna==3.10 idna-ssl==1.1.0 immu...
name: msrest-for-python channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee55...
[ "tests/test_universal_pipeline.py::test_raw_deserializer" ]
[]
[ "tests/test_universal_pipeline.py::test_user_agent", "tests/test_universal_pipeline.py::test_no_log" ]
[]
MIT License
swerebench/sweb.eval.x86_64.azure_1776_msrest-for-python-167
swerebench/sweb.eval.x86_64.azure_1776_msrest-for-python-167
Azure__msrest-for-python-188
4a0a44ae6d1a0d8a196a7809d54f2a52c2c27479
2019-12-26 21:51:25
c16e5218fe99742c5bf93d73ce0bb71c9b1c0953
codecov-io: # [Codecov](https://codecov.io/gh/Azure/msrest-for-python/pull/188?src=pr&el=h1) Report > Merging [#188](https://codecov.io/gh/Azure/msrest-for-python/pull/188?src=pr&el=desc) into [master](https://codecov.io/gh/Azure/msrest-for-python/commit/4a0a44ae6d1a0d8a196a7809d54f2a52c2c27479?src=pr&el=desc) will **i...
diff --git a/msrest/exceptions.py b/msrest/exceptions.py index 31bedf0..dcd14d2 100644 --- a/msrest/exceptions.py +++ b/msrest/exceptions.py @@ -107,6 +107,13 @@ class ValidationError(ClientException): "type": "must be of type {!r}" } + @staticmethod + def _format_message(rule, reason, value): + ...
Improve msrest exception message msrest.exceptions : Parameter 'tags' must be of type '{str}'
Azure/msrest-for-python
diff --git a/tests/test_serialization.py b/tests/test_serialization.py index 399d963..00d253c 100644 --- a/tests/test_serialization.py +++ b/tests/test_serialization.py @@ -709,6 +709,10 @@ class TestRuntimeSerialized(unittest.TestCase): with self.assertRaises(SerializationError): self.s._serializ...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 2, "test_score": 2 }, "num_modified_files": 1 }
0.6
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.9", "reqs_path...
certifi==2025.1.31 charset-normalizer==3.4.1 exceptiongroup==1.2.2 idna==3.10 iniconfig==2.1.0 isodate==0.7.2 -e git+https://github.com/Azure/msrest-for-python.git@4a0a44ae6d1a0d8a196a7809d54f2a52c2c27479#egg=msrest oauthlib==3.2.2 packaging==24.2 pluggy==1.5.0 pytest==8.3.5 requests==2.32.3 requests-oauthlib==2.0.0 to...
name: msrest-for-python channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - l...
[ "tests/test_serialization.py::TestRuntimeSerialized::test_attr_dict_simple" ]
[]
[ "tests/test_serialization.py::TestModelDeserialization::test_empty_enum_logs", "tests/test_serialization.py::TestModelDeserialization::test_model_kwargs", "tests/test_serialization.py::TestModelDeserialization::test_model_kwargs_logs", "tests/test_serialization.py::TestModelDeserialization::test_response", ...
[]
MIT License
null
null
Azure__msrest-for-python-189
c2249d459e8af8912c5da4cd728c8201066b9304
2019-12-26 22:49:23
c16e5218fe99742c5bf93d73ce0bb71c9b1c0953
codecov-io: # [Codecov](https://codecov.io/gh/Azure/msrest-for-python/pull/189?src=pr&el=h1) Report > Merging [#189](https://codecov.io/gh/Azure/msrest-for-python/pull/189?src=pr&el=desc) into [master](https://codecov.io/gh/Azure/msrest-for-python/commit/c2249d459e8af8912c5da4cd728c8201066b9304?src=pr&el=desc) will **i...
diff --git a/msrest/serialization.py b/msrest/serialization.py index 1da64ae..7abaf70 100644 --- a/msrest/serialization.py +++ b/msrest/serialization.py @@ -217,6 +217,9 @@ class Model(object): try: debug_name = "{}.{}".format(self.__class__.__name__, attr_name) + # https:...
Validation failed if string is valid integer, but minimum/maximum is used. Example from @derekbekoe ```python >>> ExpressRouteCircuitPeering(peer_asn='10002').validate() [ValidationError("Parameter 'ExpressRouteCircuitPeering.peer_asn' failed to meet validation requirement.",)] ``` I see no reason to refuse tha...
Azure/msrest-for-python
diff --git a/tests/test_serialization.py b/tests/test_serialization.py index 00d253c..46df7f9 100644 --- a/tests/test_serialization.py +++ b/tests/test_serialization.py @@ -245,6 +245,32 @@ class TestRuntimeSerialized(unittest.TestCase): self.s = Serializer({'TestObj': self.TestObj}) return super(Test...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 1, "test_score": 0 }, "num_modified_files": 1 }
0.6
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.9", "reqs_path...
certifi==2025.1.31 charset-normalizer==3.4.1 exceptiongroup==1.2.2 idna==3.10 iniconfig==2.1.0 isodate==0.7.2 -e git+https://github.com/Azure/msrest-for-python.git@c2249d459e8af8912c5da4cd728c8201066b9304#egg=msrest oauthlib==3.2.2 packaging==24.2 pluggy==1.5.0 pytest==8.3.5 requests==2.32.3 requests-oauthlib==2.0.0 to...
name: msrest-for-python channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - l...
[ "tests/test_serialization.py::TestRuntimeSerialized::test_validation_type" ]
[]
[ "tests/test_serialization.py::TestModelDeserialization::test_empty_enum_logs", "tests/test_serialization.py::TestModelDeserialization::test_model_kwargs", "tests/test_serialization.py::TestModelDeserialization::test_model_kwargs_logs", "tests/test_serialization.py::TestModelDeserialization::test_response", ...
[]
MIT License
swerebench/sweb.eval.x86_64.azure_1776_msrest-for-python-189
swerebench/sweb.eval.x86_64.azure_1776_msrest-for-python-189
Azure__msrest-for-python-198
df4cea0e45976951700e21d5c192da372754443c
2020-04-07 17:03:45
c16e5218fe99742c5bf93d73ce0bb71c9b1c0953
codecov-io: # [Codecov](https://codecov.io/gh/Azure/msrest-for-python/pull/198?src=pr&el=h1) Report > Merging [#198](https://codecov.io/gh/Azure/msrest-for-python/pull/198?src=pr&el=desc) into [master](https://codecov.io/gh/Azure/msrest-for-python/commit/df4cea0e45976951700e21d5c192da372754443c&el=desc) will **decrease...
diff --git a/msrest/serialization.py b/msrest/serialization.py index 27fb7e9..59187e1 100644 --- a/msrest/serialization.py +++ b/msrest/serialization.py @@ -1108,6 +1108,11 @@ def rest_key_extractor(attr, attr_desc, data): break working_key = _decode_attribute_map_key(dict_keys[0]) workin...
Error when serializing flattened properties with null value as the container object i found the msrest will report error when serializing flattened properties with null value as the container object, could you help to check? I tried to look at the msrest code, and seems the situation when 'data' is null is not handled ...
Azure/msrest-for-python
diff --git a/tests/test_serialization.py b/tests/test_serialization.py index 4b3f537..12a0042 100644 --- a/tests/test_serialization.py +++ b/tests/test_serialization.py @@ -1527,6 +1527,46 @@ class TestRuntimeDeserialized(unittest.TestCase): obj = TestObj.from_dict({'name': 'ab'}) self.assertEqual('ab...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_media" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 0, "test_score": 2 }, "num_modified_files": 1 }
0.6
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov", "pytest-asyncio" ], "pre_install": [ "apt-get update", "apt-get install -y l...
certifi==2025.1.31 charset-normalizer==3.4.1 coverage==7.8.0 exceptiongroup==1.2.2 idna==3.10 iniconfig==2.1.0 isodate==0.7.2 -e git+https://github.com/Azure/msrest-for-python.git@df4cea0e45976951700e21d5c192da372754443c#egg=msrest oauthlib==3.2.2 packaging==24.2 pluggy==1.5.0 pytest==8.3.5 pytest-asyncio==0.26.0 pytes...
name: msrest-for-python channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - l...
[ "tests/test_serialization.py::TestRuntimeDeserialized::test_deserialize_flattening" ]
[]
[ "tests/test_serialization.py::TestModelDeserialization::test_empty_enum_logs", "tests/test_serialization.py::TestModelDeserialization::test_model_kwargs", "tests/test_serialization.py::TestModelDeserialization::test_model_kwargs_logs", "tests/test_serialization.py::TestModelDeserialization::test_response", ...
[]
MIT License
null
null
Azure__msrest-for-python-201
9e2e6529ac3cc91454a859c01775493872b20e92
2020-05-06 23:57:23
c16e5218fe99742c5bf93d73ce0bb71c9b1c0953
lmazuel: Without the PR, trying to deserialize in a french VM: ```python >>> from msrest.serialization import Deserializer >>> Deserializer.deserialize_rfc("Mon, 20 Nov 1995 19:12:08 -0500") Traceback (most recent call last): File "/home/lmazuel/rfctest/lib/python3.6/site-packages/msrest/serialization.py", line ...
diff --git a/msrest/serialization.py b/msrest/serialization.py index 59187e1..0e65d8e 100644 --- a/msrest/serialization.py +++ b/msrest/serialization.py @@ -28,6 +28,7 @@ from base64 import b64decode, b64encode import calendar import datetime import decimal +import email from enum import Enum import json import l...
Parsing RFC date assumes current local is English Example, trying to parse `Fri, 28 Feb 2020 19:04:06 GMT` with a spanish locale will fail, since "Fri" or "Feb" is not spanish. This is because this parser uses `strptime` which is local dependent. Python doesn't support configuration for locale. The only reliable wa...
Azure/msrest-for-python
diff --git a/tests/test_serialization.py b/tests/test_serialization.py index 12a0042..fffd8a9 100644 --- a/tests/test_serialization.py +++ b/tests/test_serialization.py @@ -1974,6 +1974,55 @@ class TestRuntimeDeserialized(unittest.TestCase): self.assertEqual(utc.tm_sec, 52) self.assertEqual(a.microsec...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 1 }
0.6
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc libunwind8-dev" ], "python": "3.9...
aiohappyeyeballs==2.6.1 aiohttp==3.11.14 aiosignal==1.3.2 astroid==3.3.9 async-timeout==5.0.1 attrs==25.3.0 certifi==2025.1.31 charset-normalizer==3.4.1 coverage==4.5.4 dill==0.3.9 exceptiongroup==1.2.2 frozenlist==1.5.0 httpretty==1.1.4 idna==3.10 iniconfig==2.1.0 isodate==0.7.2 isort==6.0.1 mccabe==0.7.0 -e git+https...
name: msrest-for-python channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - l...
[ "tests/test_serialization.py::TestRuntimeDeserialized::test_deserialize_datetime_rfc" ]
[]
[ "tests/test_serialization.py::TestModelDeserialization::test_empty_enum_logs", "tests/test_serialization.py::TestModelDeserialization::test_model_kwargs", "tests/test_serialization.py::TestModelDeserialization::test_model_kwargs_logs", "tests/test_serialization.py::TestModelDeserialization::test_response", ...
[]
MIT License
null
null
Azure__msrest-for-python-208
053469458820db6a33b2cb55b3f9a5e55a2f9716
2020-06-02 20:55:10
c16e5218fe99742c5bf93d73ce0bb71c9b1c0953
codecov-commenter: # [Codecov](https://codecov.io/gh/Azure/msrest-for-python/pull/208?src=pr&el=h1) Report > Merging [#208](https://codecov.io/gh/Azure/msrest-for-python/pull/208?src=pr&el=desc) into [master](https://codecov.io/gh/Azure/msrest-for-python/commit/053469458820db6a33b2cb55b3f9a5e55a2f9716&el=desc) will **i...
diff --git a/msrest/serialization.py b/msrest/serialization.py index b3519f1..a8abd9a 100644 --- a/msrest/serialization.py +++ b/msrest/serialization.py @@ -79,26 +79,32 @@ class UTC(datetime.tzinfo): """No daylight saving for UTC.""" return datetime.timedelta(hours=1) -class _FixedOffset(datetime.t...
datetime returned by Deserializer.deserialize_rfc() is not picklable ### Repro ```python import pickle from msrest.serialization import Deserializer datetime_rfc = "Mon, 25 May 2020 11:00:00 GMT" datetime1 = Deserializer.deserialize_rfc(datetime_rfc) print("datetime1: %s" % datetime1) pickled = pickle.dumps(...
Azure/msrest-for-python
diff --git a/tests/test_serialization.py b/tests/test_serialization.py index 5991753..cb41372 100644 --- a/tests/test_serialization.py +++ b/tests/test_serialization.py @@ -29,6 +29,7 @@ import sys import json import isodate import logging +import pickle from enum import Enum from datetime import datetime, timedel...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 0, "test_score": 2 }, "num_modified_files": 1 }
0.6
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.9", "reqs_path...
certifi==2025.1.31 charset-normalizer==3.4.1 exceptiongroup==1.2.2 idna==3.10 iniconfig==2.1.0 isodate==0.7.2 -e git+https://github.com/Azure/msrest-for-python.git@053469458820db6a33b2cb55b3f9a5e55a2f9716#egg=msrest oauthlib==3.2.2 packaging==24.2 pluggy==1.5.0 pytest==8.3.5 requests==2.32.3 requests-oauthlib==2.0.0 to...
name: msrest-for-python channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - l...
[ "tests/test_serialization.py::TestRuntimeDeserialized::test_rfc_pickable" ]
[]
[ "tests/test_serialization.py::TestModelDeserialization::test_empty_enum_logs", "tests/test_serialization.py::TestModelDeserialization::test_model_kwargs", "tests/test_serialization.py::TestModelDeserialization::test_model_kwargs_logs", "tests/test_serialization.py::TestModelDeserialization::test_response", ...
[]
MIT License
null
null
Azure__msrest-for-python-224
c16e5218fe99742c5bf93d73ce0bb71c9b1c0953
2020-09-21 23:26:48
c16e5218fe99742c5bf93d73ce0bb71c9b1c0953
codecov-commenter: # [Codecov](https://codecov.io/gh/Azure/msrest-for-python/pull/224?src=pr&el=h1) Report > Merging [#224](https://codecov.io/gh/Azure/msrest-for-python/pull/224?src=pr&el=desc) into [master](https://codecov.io/gh/Azure/msrest-for-python/commit/98e2ebe7e5ed8a656f333963339ad8d20fc330d3?el=desc) will **d...
diff --git a/msrest/serialization.py b/msrest/serialization.py index f9037b9..378de20 100644 --- a/msrest/serialization.py +++ b/msrest/serialization.py @@ -953,6 +953,16 @@ class Serializer(object): return self.serialize_long(attr) if obj_type is unicode_str: return self.serialize_un...
Serialization for non-standard types yields incorrect output Hi, I am using the event grid client SDK in python to generate custom events. I have come across an issue I can't seem to solve without going away from the event grid SDK. The problem is that the event grid model serializer does not give me the correct...
Azure/msrest-for-python
diff --git a/tests/test_serialization.py b/tests/test_serialization.py index ab04cfd..6837bad 100644 --- a/tests/test_serialization.py +++ b/tests/test_serialization.py @@ -25,6 +25,7 @@ # #-------------------------------------------------------------------------- +from decimal import Decimal import sys import js...
{ "commit_name": "merge_commit", "failed_lite_validators": [], "has_test_patch": true, "is_lite": true, "llm_score": { "difficulty_score": 1, "issue_text_score": 0, "test_score": 2 }, "num_modified_files": 1 }
0.6
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov", "pytest-asyncio" ], "pre_install": [ "apt-get update", "apt-get install -y g...
aiohappyeyeballs==2.6.1 aiohttp==3.11.14 aiosignal==1.3.2 astroid==3.3.9 async-timeout==5.0.1 attrs==25.3.0 certifi==2025.1.31 charset-normalizer==3.4.1 coverage==4.5.4 dill==0.3.9 exceptiongroup==1.2.2 frozenlist==1.5.0 httpretty==1.1.4 idna==3.10 iniconfig==2.1.0 isodate==0.7.2 isort==6.0.1 mccabe==0.7.0 -e git+https...
name: msrest-for-python channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - l...
[ "tests/test_serialization.py::TestRuntimeSerialized::test_datetime_types_as_type_object", "tests/test_serialization.py::TestRuntimeSerialized::test_decimal_types_as_type_object" ]
[]
[ "tests/test_serialization.py::TestModelDeserialization::test_empty_enum_logs", "tests/test_serialization.py::TestModelDeserialization::test_model_kwargs", "tests/test_serialization.py::TestModelDeserialization::test_model_kwargs_logs", "tests/test_serialization.py::TestModelDeserialization::test_response", ...
[]
MIT License
swerebench/sweb.eval.x86_64.azure_1776_msrest-for-python-224
swerebench/sweb.eval.x86_64.azure_1776_msrest-for-python-224
Azure__msrest-for-python-28
02b1e35c7cfb045bd4752abe800ad6912282eb6e
2017-04-03 22:04:40
24deba7a7a9e335314058ec2d0b39a710f61be60
diff --git a/msrest/service_client.py b/msrest/service_client.py index a204089..ac70211 100644 --- a/msrest/service_client.py +++ b/msrest/service_client.py @@ -138,7 +138,7 @@ class ServiceClient(object): return kwargs - def send_formdata(self, request, headers={}, content={}, **config): + def send_...
Default argument value is mutable Hi, Just want to confirm, I noticed there are some methods in `ServiceClient` contain a mutable default argument, for instance: `def get(self, url=None, params={}): """Create a GET request object. :param str url: The request URL. :param dict params: Re...
Azure/msrest-for-python
diff --git a/test/unittest_client.py b/test/unittest_client.py index c22b13e..4a193ee 100644 --- a/test/unittest_client.py +++ b/test/unittest_client.py @@ -201,7 +201,7 @@ class TestServiceClient(unittest.TestCase): mock_client._format_data.return_value = "formatted" request = ClientRequest('GET') ...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 2, "test_score": 1 }, "num_modified_files": 1 }
0.4
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "coverage", "flake8" ], "pre_install": null, "python": "3.5", "reqs_path": null, "test_cmd":...
attrs==22.2.0 certifi==2021.5.30 charset-normalizer==2.0.12 coverage==6.2 flake8==5.0.4 idna==3.10 importlib-metadata==4.2.0 iniconfig==1.1.1 isodate==0.6.1 mccabe==0.7.0 -e git+https://github.com/Azure/msrest-for-python.git@02b1e35c7cfb045bd4752abe800ad6912282eb6e#egg=msrest oauthlib==3.2.2 packaging==21.3 pluggy==1.0...
name: msrest-for-python channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee55...
[ "test/unittest_client.py::TestServiceClient::test_client_formdata_send" ]
[]
[ "test/unittest_client.py::TestServiceClient::test_client_add_hook", "test/unittest_client.py::TestServiceClient::test_client_header", "test/unittest_client.py::TestServiceClient::test_client_request", "test/unittest_client.py::TestServiceClient::test_client_send", "test/unittest_client.py::TestServiceClient...
[]
MIT License
null
null
Azure__msrest-for-python-43
11f19f936f2d2d912782c7280f02f01ed89baf47
2017-08-22 03:53:10
24deba7a7a9e335314058ec2d0b39a710f61be60
diff --git a/msrest/serialization.py b/msrest/serialization.py index 6eb8ec9..063f2e6 100644 --- a/msrest/serialization.py +++ b/msrest/serialization.py @@ -918,6 +918,9 @@ class Deserializer(object): '[]': self.deserialize_iter, '{}': self.deserialize_dict } + self.deseria...
Serialization issue if dict syntax and Duration used ```python msrest.exceptions.SerializationError: Unable to build a model: Unable to deserialize response data. Data: 3 years, 6 months, 4 days, 12:30:05, duration, TypeError: Expecting a string isodate.duration.Duration(4, 45005, 0, years=3, months=6), Deserializatio...
Azure/msrest-for-python
diff --git a/tests/test_serialization.py b/tests/test_serialization.py index f70dcbd..787a086 100644 --- a/tests/test_serialization.py +++ b/tests/test_serialization.py @@ -138,7 +138,6 @@ class TestRuntimeSerialized(unittest.TestCase): class TestObj(Model): - _validation = {} _attribute_map = ...
{ "commit_name": "head_commit", "failed_lite_validators": [], "has_test_patch": true, "is_lite": true, "llm_score": { "difficulty_score": 1, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 1 }
0.4
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "...
certifi==2025.1.31 charset-normalizer==3.4.1 coverage==7.8.0 exceptiongroup==1.2.2 httpretty==1.1.4 idna==3.10 iniconfig==2.1.0 isodate==0.7.2 -e git+https://github.com/Azure/msrest-for-python.git@11f19f936f2d2d912782c7280f02f01ed89baf47#egg=msrest oauthlib==3.2.2 packaging==24.2 pluggy==1.5.0 pytest==8.3.5 pytest-cov=...
name: msrest-for-python channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - l...
[ "tests/test_serialization.py::TestRuntimeSerialized::test_attr_duration" ]
[]
[ "tests/test_serialization.py::TestModelDeserialization::test_response", "tests/test_serialization.py::TestRuntimeSerialized::test_attr_bool", "tests/test_serialization.py::TestRuntimeSerialized::test_attr_dict_simple", "tests/test_serialization.py::TestRuntimeSerialized::test_attr_enum", "tests/test_seriali...
[]
MIT License
swerebench/sweb.eval.x86_64.azure_1776_msrest-for-python-43
swerebench/sweb.eval.x86_64.azure_1776_msrest-for-python-43
Azure__msrest-for-python-45
07cec915d60e29193935dfca17d5e8a7afd0a3d4
2017-08-23 16:10:17
24deba7a7a9e335314058ec2d0b39a710f61be60
diff --git a/msrest/serialization.py b/msrest/serialization.py index 063f2e6..a3d50cd 100644 --- a/msrest/serialization.py +++ b/msrest/serialization.py @@ -1200,6 +1200,12 @@ class Deserializer(object): :param str data: response string to be deserialized. :rtype: str or unicode """ + ...
v0.4.12 breaks mixed dict with enum if model-as-string=true This breaks: ``` python async_security_rule = self.network_client.security_rules.create_or_update( self.group_name, security_group_name, new_security_rule_name, { 'access':azure...
Azure/msrest-for-python
diff --git a/tests/test_serialization.py b/tests/test_serialization.py index 787a086..10fb82f 100644 --- a/tests/test_serialization.py +++ b/tests/test_serialization.py @@ -353,10 +353,10 @@ class TestRuntimeSerialized(unittest.TestCase): class TestEnum(Enum): val = "Value" - t = test_obj...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 1, "test_score": 0 }, "num_modified_files": 1 }
0.4
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "...
certifi==2025.1.31 charset-normalizer==3.4.1 coverage==7.8.0 exceptiongroup==1.2.2 httpretty==1.1.4 idna==3.10 iniconfig==2.1.0 isodate==0.7.2 -e git+https://github.com/Azure/msrest-for-python.git@07cec915d60e29193935dfca17d5e8a7afd0a3d4#egg=msrest oauthlib==3.2.2 packaging==24.2 pluggy==1.5.0 pytest==8.3.5 pytest-cov=...
name: msrest-for-python channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - l...
[ "tests/test_serialization.py::TestRuntimeSerialized::test_attr_enum" ]
[]
[ "tests/test_serialization.py::TestModelDeserialization::test_response", "tests/test_serialization.py::TestRuntimeSerialized::test_attr_bool", "tests/test_serialization.py::TestRuntimeSerialized::test_attr_dict_simple", "tests/test_serialization.py::TestRuntimeSerialized::test_attr_duration", "tests/test_ser...
[]
MIT License
null
null
Azure__msrest-for-python-53
bad8585bcbe5f92f3b2c892c8b373ee367dff70f
2017-09-28 17:58:23
24deba7a7a9e335314058ec2d0b39a710f61be60
codecov-io: # [Codecov](https://codecov.io/gh/Azure/msrest-for-python/pull/53?src=pr&el=h1) Report > Merging [#53](https://codecov.io/gh/Azure/msrest-for-python/pull/53?src=pr&el=desc) into [master](https://codecov.io/gh/Azure/msrest-for-python/commit/bad8585bcbe5f92f3b2c892c8b373ee367dff70f?src=pr&el=desc) will **not ...
diff --git a/msrest/configuration.py b/msrest/configuration.py index 7b47b39..4b46b56 100644 --- a/msrest/configuration.py +++ b/msrest/configuration.py @@ -44,6 +44,19 @@ from .pipeline import ( from .version import msrest_version +def default_session_configuration_callback(session, global_config, local_config, *...
Add support to disable validation on the runtime side Should be a flag in configuration to disable runtime validation. This flag should be default to `client-side-validation` value from Autorest: https://github.com/Azure/autorest/issues/1583#issuecomment-311142690 FYI @matthchr
Azure/msrest-for-python
diff --git a/tests/test_client.py b/tests/test_client.py index 8e73444..ee10d48 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -50,6 +50,22 @@ class TestServiceClient(unittest.TestCase): self.creds = mock.create_autospec(OAuthTokenAuthentication) return super(TestServiceClient, self)....
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_hyperlinks", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score":...
0.4
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.6", "reqs_path": [ "dev_requirements.txt" ], "test_cmd": "pytest --n...
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work certifi==2021.5.30 charset-normalizer==2.0.12 idna==3.10 importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work isodate==0.6.1 more-itertools @ file:///tmp/...
name: msrest-for-python channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - attrs=21.4.0=pyhd3eb1b0_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 -...
[ "tests/test_client.py::TestServiceClient::test_session_callback", "tests/test_serialization.py::TestRuntimeSerialized::test_validation_flag" ]
[]
[ "tests/test_client.py::TestServiceClient::test_client_formdata_send", "tests/test_client.py::TestServiceClient::test_client_header", "tests/test_client.py::TestServiceClient::test_client_request", "tests/test_client.py::TestServiceClient::test_client_send", "tests/test_client.py::TestServiceClient::test_for...
[]
MIT License
null
null
Azure__msrest-for-python-54
36172c1011c1a6b62eb57f7608ef571b71747a1a
2017-09-28 18:30:24
24deba7a7a9e335314058ec2d0b39a710f61be60
diff --git a/msrest/serialization.py b/msrest/serialization.py index cc03063..61e811f 100644 --- a/msrest/serialization.py +++ b/msrest/serialization.py @@ -623,6 +623,8 @@ class Serializer(object): in the iterable into a combined string. Default is 'None'. :rtype: list, str """ + if ...
Should refuse a string as a valid list of string Ends up in the portal as ['a','b','c'] if we use `Model('abc')` instead of `Model(['abc'])`. Should fail, accepting a string for a list of string is likely an error and not a feature. See https://github.com/Azure/azure-sdk-for-python/issues/1376#issuecomment-323409463
Azure/msrest-for-python
diff --git a/tests/test_serialization.py b/tests/test_serialization.py index 4d6a80a..39f2878 100644 --- a/tests/test_serialization.py +++ b/tests/test_serialization.py @@ -736,6 +736,10 @@ class TestRuntimeSerialized(unittest.TestCase): b = self.s.serialize_iter([], 'int') self.assertEqual(b, []) +...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 1, "test_score": 2 }, "num_modified_files": 1 }
0.4
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest_v2", "no_use_env": null, "packages": "requirements.txt", "pip_packages": null, "pre_install": null, "python": "3.6", "reqs_path": [ "dev_requirements.txt" ], "test_cmd": "pytest -xvs...
attrs==22.2.0 certifi==2021.5.30 charset-normalizer==2.0.12 coverage==6.2 httpretty==1.1.4 idna==3.10 importlib-metadata==4.8.3 iniconfig==1.1.1 isodate==0.6.1 -e git+https://github.com/Azure/msrest-for-python.git@36172c1011c1a6b62eb57f7608ef571b71747a1a#egg=msrest oauthlib==3.2.2 packaging==21.3 pluggy==1.0.0 py==1.11...
name: msrest-for-python channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h12ee55...
[ "tests/test_serialization.py::TestRuntimeSerialized::test_serialize_str_as_iter", "tests/test_serialization.py::TestRuntimeSerialized::test_validate", "tests/test_serialization.py::TestRuntimeSerialized::test_validation_flag", "tests/test_serialization.py::TestRuntimeDeserialized::test_attr_bool", "tests/te...
[]
[ "tests/test_serialization.py::TestModelDeserialization::test_response", "tests/test_serialization.py::TestRuntimeSerialized::test_attr_bool", "tests/test_serialization.py::TestRuntimeSerialized::test_attr_dict_simple", "tests/test_serialization.py::TestRuntimeSerialized::test_attr_duration", "tests/test_ser...
[]
MIT License
null
null
Azure__msrest-for-python-55
bb876c23427448d293c793e16d415971eb1753bc
2017-09-28 19:26:51
24deba7a7a9e335314058ec2d0b39a710f61be60
diff --git a/msrest/exceptions.py b/msrest/exceptions.py index 6ac7dcc..3b8788e 100644 --- a/msrest/exceptions.py +++ b/msrest/exceptions.py @@ -136,7 +136,13 @@ class HttpOperationError(ClientException): self.error = deserialize(resp_type, response) if self.error is None: ...
Improve exception string if custom exception Example, with this: https://github.com/Azure/azure-sdk-for-python/blob/master/azure-mgmt-billing/azure/mgmt/billing/models/error_response.py And this answer: ```python { "error": { "code": "NotOptedIn", "message": "You are not allowed to download invoices. Plea...
Azure/msrest-for-python
diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py new file mode 100644 index 0000000..2995593 --- /dev/null +++ b/tests/test_exceptions.py @@ -0,0 +1,92 @@ +#-------------------------------------------------------------------------- +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# T...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 0, "test_score": 2 }, "num_modified_files": 1 }
0.4
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "...
certifi==2025.1.31 charset-normalizer==3.4.1 coverage==7.8.0 exceptiongroup==1.2.2 idna==3.10 iniconfig==2.1.0 isodate==0.7.2 -e git+https://github.com/Azure/msrest-for-python.git@bb876c23427448d293c793e16d415971eb1753bc#egg=msrest oauthlib==3.2.2 packaging==24.2 pluggy==1.5.0 pytest==8.3.5 pytest-cov==6.0.0 requests==...
name: msrest-for-python channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - l...
[ "tests/test_exceptions.py::TestExceptions::test_custom_exception" ]
[]
[]
[]
MIT License
swerebench/sweb.eval.x86_64.azure_1776_msrest-for-python-55
swerebench/sweb.eval.x86_64.azure_1776_msrest-for-python-55
Azure__msrest-for-python-62
a34b2d5521e9fa12f3b9d40c42ed783c06afedf1
2017-10-12 21:12:34
24deba7a7a9e335314058ec2d0b39a710f61be60
diff --git a/msrest/authentication.py b/msrest/authentication.py index 48c90ae..8d21624 100644 --- a/msrest/authentication.py +++ b/msrest/authentication.py @@ -79,6 +79,14 @@ class BasicTokenAuthentication(Authentication): self.scheme = 'Bearer' self.token = token + def set_token(self): + ...
Make BasicTokenAuthentication the new base class of OAuthTokenAuthentication To enable some KV scenarios releated to MSI
Azure/msrest-for-python
diff --git a/tests/test_auth.py b/tests/test_auth.py index e573a02..32f67f5 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -39,6 +39,7 @@ except ImportError: from msrest.authentication import ( BasicAuthentication, + BasicTokenAuthentication, OAuthTokenAuthentication) from requests impor...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 1, "test_score": 0 }, "num_modified_files": 1 }
0.4
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "...
certifi==2025.1.31 charset-normalizer==3.4.1 coverage==7.8.0 exceptiongroup==1.2.2 httpretty==1.1.4 idna==3.10 iniconfig==2.1.0 isodate==0.7.2 -e git+https://github.com/Azure/msrest-for-python.git@a34b2d5521e9fa12f3b9d40c42ed783c06afedf1#egg=msrest oauthlib==3.2.2 packaging==24.2 pluggy==1.5.0 pytest==8.3.5 pytest-cov=...
name: msrest-for-python channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - l...
[ "tests/test_auth.py::TestAuthentication::test_basic_token_auth" ]
[]
[ "tests/test_auth.py::TestAuthentication::test_basic_auth", "tests/test_auth.py::TestAuthentication::test_token_auth" ]
[]
MIT License
null
null
Azure__msrest-for-python-67
24deba7a7a9e335314058ec2d0b39a710f61be60
2017-11-20 21:05:32
24deba7a7a9e335314058ec2d0b39a710f61be60
diff --git a/msrest/service_client.py b/msrest/service_client.py index eed50c5..d86fcbb 100644 --- a/msrest/service_client.py +++ b/msrest/service_client.py @@ -164,10 +164,15 @@ class ServiceClient(object): """ if content is None: content = {} - file_data = {f: self._format_data(d...
Optional formData parameters crash msrest If a parameter that is supposed to be formData is optional, we give `None` to requests: ```python files = [('Text', (None, 'cognituve services')), ('Mode', (None, None)), ('PreContextText', (None, None)), ('PostContextText', (None, None))] data = {} @staticmethod ...
Azure/msrest-for-python
diff --git a/tests/test_client.py b/tests/test_client.py index ee10d48..650eac5 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -204,6 +204,17 @@ class TestServiceClient(unittest.TestCase): ServiceClient.send_formdata(mock_client, request, {'Content-Type':'1234'}, {'1':'1', '2':'2'}) m...
{ "commit_name": "head_commit", "failed_lite_validators": [], "has_test_patch": true, "is_lite": true, "llm_score": { "difficulty_score": 1, "issue_text_score": 0, "test_score": 0 }, "num_modified_files": 1 }
0.4
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "numpy>=1.16.0", "pandas>=1.0.0" ], "pre_install": [ "apt-get update", "apt-get install -y...
certifi==2025.1.31 charset-normalizer==3.4.1 exceptiongroup==1.2.2 idna==3.10 iniconfig==2.1.0 isodate==0.7.2 -e git+https://github.com/Azure/msrest-for-python.git@24deba7a7a9e335314058ec2d0b39a710f61be60#egg=msrest numpy==2.0.2 oauthlib==3.2.2 packaging==24.2 pandas==2.2.3 pluggy==1.5.0 pytest==8.3.5 python-dateutil==...
name: msrest-for-python channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 - l...
[ "tests/test_client.py::TestServiceClient::test_client_formdata_send" ]
[]
[ "tests/test_client.py::TestServiceClient::test_client_header", "tests/test_client.py::TestServiceClient::test_client_request", "tests/test_client.py::TestServiceClient::test_client_send", "tests/test_client.py::TestServiceClient::test_format_data", "tests/test_client.py::TestServiceClient::test_format_url",...
[]
MIT License
null
null
Azure__msrestazure-for-python-107
bc59bae35d784f0aad8d1e26ebfd9c20897dca46
2018-07-02 21:27:59
0f372b60f9add4c245c323e24acca038936e472f
diff --git a/msrestazure/azure_active_directory.py b/msrestazure/azure_active_directory.py index 48ac41c..88c3744 100644 --- a/msrestazure/azure_active_directory.py +++ b/msrestazure/azure_active_directory.py @@ -685,6 +685,8 @@ class MSIAuthentication(BasicTokenAuthentication): elif "MSI_ENDPOINT" not in os.e...
MSIAuthentication should set toekn on instance creation All msrestazure instance set the token on instance creation, except MSIAuthentication. This presents a few issues: - Unlike all other usages, authentication exception will be raised at usage, not at creation level - This creates weird bug in KeyVault which is...
Azure/msrestazure-for-python
diff --git a/tests/test_auth.py b/tests/test_auth.py index ed5ae77..56baf9c 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -240,7 +240,7 @@ class TestServicePrincipalCredentials(unittest.TestCase): ServicePrincipalCredentials, '_setup_session', return_value=session): proxies = {...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 1 }
0.4
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "mock", "httpretty", "pytest", "pytest-cov", "pylint" ], "pre_install": [ "apt-get update", ...
adal==1.2.7 astroid==2.11.7 attrs==22.2.0 azure-core==1.24.2 certifi==2021.5.30 cffi==1.15.1 charset-normalizer==2.0.12 coverage==6.2 cryptography==40.0.2 dill==0.3.4 httpretty==1.1.4 idna==3.10 importlib-metadata==4.8.3 iniconfig==1.1.1 isodate==0.6.1 isort==5.10.1 jeepney==0.7.1 keyring==23.4.1 lazy-object-proxy==1.7...
name: msrestazure-for-python channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h1...
[ "tests/test_auth.py::TestServicePrincipalCredentials::test_msi_vm", "tests/test_auth.py::TestServicePrincipalCredentials::test_msi_vm_imds_no_retry_on_bad_error", "tests/test_auth.py::TestServicePrincipalCredentials::test_msi_vm_imds_retry" ]
[]
[ "tests/test_auth.py::TestServicePrincipalCredentials::test_adal_authentication", "tests/test_auth.py::TestServicePrincipalCredentials::test_check_state", "tests/test_auth.py::TestServicePrincipalCredentials::test_clear_token", "tests/test_auth.py::TestServicePrincipalCredentials::test_convert_token", "tests...
[]
MIT License
swerebench/sweb.eval.x86_64.azure_1776_msrestazure-for-python-107
swerebench/sweb.eval.x86_64.azure_1776_msrestazure-for-python-107
Azure__msrestazure-for-python-121
ca3dceee99aee5aa4e5a25ec20c1794440510011
2018-10-31 16:52:14
ca3dceee99aee5aa4e5a25ec20c1794440510011
diff --git a/msrestazure/polling/arm_polling.py b/msrestazure/polling/arm_polling.py index 2f3aa2a..d299e6f 100644 --- a/msrestazure/polling/arm_polling.py +++ b/msrestazure/polling/arm_polling.py @@ -262,7 +262,17 @@ class LongRunningOperation(object): status = self._get_provisioning_state(response) ...
If final GET on Location is empty, does not necessarily mean there is a problem If Swagger explains to follow Location on final state, and there is not return type, it is expected that the final body is empty. However, msrestazure right now assume this final call must have a body. Fix, update this code: ```python ...
Azure/msrestazure-for-python
diff --git a/tests/test_arm_polling.py b/tests/test_arm_polling.py index affa1fc..94e71d8 100644 --- a/tests/test_arm_polling.py +++ b/tests/test_arm_polling.py @@ -38,7 +38,7 @@ import pytest from requests import Request, Response -from msrest import Deserializer +from msrest import Deserializer, Configuration f...
{ "commit_name": "merge_commit", "failed_lite_validators": [ "has_hyperlinks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 0, "test_score": 0 }, "num_modified_files": 1 }
0.5
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest", "pytest-cov" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "...
adal==1.2.7 attrs==22.2.0 azure-core==1.24.2 certifi==2021.5.30 cffi==1.15.1 charset-normalizer==2.0.12 coverage==6.2 cryptography==40.0.2 httpretty==1.1.4 idna==3.10 importlib-metadata==4.8.3 iniconfig==1.1.1 isodate==0.6.1 msrest==0.7.1 -e git+https://github.com/Azure/msrestazure-for-python.git@ca3dceee99aee5aa4e5a25...
name: msrestazure-for-python channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2021.5.30=py36h06a4308_0 - ld_impl_linux-64=2.40=h1...
[ "tests/test_arm_polling.py::TestArmPolling::test_long_running_post" ]
[]
[ "tests/test_arm_polling.py::TestArmPolling::test_long_running_put", "tests/test_arm_polling.py::TestArmPolling::test_long_running_patch", "tests/test_arm_polling.py::TestArmPolling::test_long_running_delete", "tests/test_arm_polling.py::TestArmPolling::test_long_running_negative" ]
[]
MIT License
swerebench/sweb.eval.x86_64.azure_1776_msrestazure-for-python-121
swerebench/sweb.eval.x86_64.azure_1776_msrestazure-for-python-121
Azure__msrestazure-for-python-55
005f5a4320385930ba82d4c0e13ce90506884b27
2017-10-30 22:28:54
0f372b60f9add4c245c323e24acca038936e472f
diff --git a/msrestazure/azure_exceptions.py b/msrestazure/azure_exceptions.py index bb85333..5b4792c 100644 --- a/msrestazure/azure_exceptions.py +++ b/msrestazure/azure_exceptions.py @@ -30,6 +30,15 @@ from msrest.exceptions import ClientException from msrest.serialization import Deserializer from msrest.exceptions...
CloudError parsing should be resilient if input type is string In so (messy) scenario, we don't receive a dict (from a JSON), but a string. We should be robust to that and print the while string as the error message: ```python msrest.http_logger : b'"{\\"error\\":{\\"code\\":\\"ResourceGroupNotFound\\",\\"message\\":...
Azure/msrestazure-for-python
diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py index 2506a9c..45a4770 100644 --- a/tests/test_exceptions.py +++ b/tests/test_exceptions.py @@ -125,20 +125,6 @@ class TestCloudException(unittest.TestCase): response.headers = {"content-type": "application/json; charset=utf8"} response....
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 0, "test_score": 2 }, "num_modified_files": 1 }
0.4
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "httpretty", "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3...
adal==0.4.7 backports.tarfile==1.2.0 certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 cryptography==44.0.2 exceptiongroup==1.2.2 httpretty==1.1.4 idna==3.10 importlib_metadata==8.6.1 iniconfig==2.1.0 isodate==0.7.2 jaraco.classes==3.4.0 jaraco.context==6.0.1 jaraco.functools==4.1.0 jeepney==0.9.0 keyring==25.6...
name: msrestazure-for-python channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - libffi=3.4.4=h6a678d5_1 ...
[ "tests/test_exceptions.py::TestCloudException::test_cloud_error" ]
[]
[ "tests/test_exceptions.py::TestCloudException::test_cloud_exception" ]
[]
MIT License
null
null
Azure__pykusto-150
8a5785b422db13c5445425a36e8016d8683e24d7
2021-05-06 08:39:27
68121cdd79cc9c1d6b8f71e5e80df566ac6842c7
diff --git a/.idea/runConfigurations/Lint.xml b/.idea/runConfigurations/Lint.xml index 5135e6a..aa679af 100644 --- a/.idea/runConfigurations/Lint.xml +++ b/.idea/runConfigurations/Lint.xml @@ -13,7 +13,7 @@ <option name="ADD_SOURCE_ROOTS" value="true" /> <EXTENSION ID="PythonCoverageRunConfigurationExtension"...
Allow `use_global_cache=True` with any authentication method Use case: researcher was using pykusto from a Data Bricks notebook, and the default Azure CLI authentication was failing with the exception below. When they provided their own `KustoClient` instance, they could no longer use `use_global_cache`. ``` FileN...
Azure/pykusto
diff --git a/.github/workflows/runtests.yml b/.github/workflows/runtests.yml index 3759f53..4ede851 100644 --- a/.github/workflows/runtests.yml +++ b/.github/workflows/runtests.yml @@ -17,20 +17,23 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up Python 3.8 - uses: actions/setup-python@v1 ...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_hyperlinks", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 0, "test_score": 3 }, "num_modified_files": 6 }
0.0
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.7", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line --color=no...
adal==1.2.7 attrs @ file:///croot/attrs_1668696182826/work azure-core==1.30.1 azure-kusto-data==0.1.0 certifi @ file:///croot/certifi_1671487769961/work/certifi cffi==1.15.1 charset-normalizer==3.4.1 cryptography==44.0.2 flit_core @ file:///opt/conda/conda-bld/flit-core_1644941570762/work/source/flit_core idna==3.10 im...
name: pykusto channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - attrs=22.1.0=py37h06a4308_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308_0 - flit-co...
[ "test/test_client.py::TestClient::test_client_for_cluster_with_aad_device_auth", "test/test_client.py::TestClient::test_client_for_cluster_with_azure_cli_auth" ]
[ "test/test_client.py::TestClient::test_2_retry", "test/test_client.py::TestClient::test_3_retries", "test/test_client.py::TestClient::test_cross_cluster_join", "test/test_client.py::TestClient::test_cross_cluster_join_with_union", "test/test_client.py::TestClient::test_cross_cluster_join_with_union_2", "t...
[ "test/test_client.py::TestClient::test_client_instances", "test/test_client.py::TestClient::test_client_instances_cached", "test/test_client.py::TestClient::test_client_instances_cached_distinct", "test/test_client.py::TestClient::test_execute_no_table", "test/test_client.py::TestClient::test_missing_retrie...
[]
MIT License
null
null
Azure__pykusto-159
68121cdd79cc9c1d6b8f71e5e80df566ac6842c7
2021-06-24 11:43:53
68121cdd79cc9c1d6b8f71e5e80df566ac6842c7
diff --git a/pykusto/_src/client.py b/pykusto/_src/client.py index 66c39f6..d18fa82 100644 --- a/pykusto/_src/client.py +++ b/pykusto/_src/client.py @@ -371,7 +371,7 @@ class Table(_ItemFetcher): return KQL(table_names[0]) def execute(self, query: KQL, retry_config: RetryConfig = None) -> KustoResponse:...
Retry config causes an exception beacuse of bug in argumets order in client execute function In `_src.client.py` the function `execute` is defined as follows: `def execute(self, query: KQL, retry_config: RetryConfig = None) -> KustoResponse: return self.__database.execute(query, retry_config)` but the `datab...
Azure/pykusto
diff --git a/test/test_client.py b/test/test_client.py index 5fc05c2..930e81e 100644 --- a/test/test_client.py +++ b/test/test_client.py @@ -222,3 +222,28 @@ class TestClient(TestBase): KustoError("Mock exception for test", None), lambda: Query(table).take(5).execute(), ) + + def t...
{ "commit_name": "head_commit", "failed_lite_validators": [], "has_test_patch": true, "is_lite": true, "llm_score": { "difficulty_score": 2, "issue_text_score": 0, "test_score": 0 }, "num_modified_files": 1 }
0.0
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "", "pip_packages": [ "pytest" ], "pre_install": [ "apt-get update", "apt-get install -y gcc" ], "python": "3.7", "reqs_path": null, "test_cmd"...
azure-core==1.30.1 azure-identity==1.5.0 azure-kusto-data==2.1.1 certifi @ file:///croot/certifi_1671487769961/work/certifi cffi==1.15.1 charset-normalizer==3.4.1 cryptography==3.4.8 exceptiongroup==1.2.2 idna==3.10 importlib-metadata==6.7.0 iniconfig==2.0.0 msal==1.9.0 msal-extensions==0.3.1 numpy==1.21.6 packaging==2...
name: pykusto channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - li...
[ "test/test_client.py::TestClient::test_override_retry_config_for_query" ]
[]
[ "test/test_client.py::TestClient::test_2_retry", "test/test_client.py::TestClient::test_3_retries", "test/test_client.py::TestClient::test_client_for_cluster_with_aad_device_auth", "test/test_client.py::TestClient::test_client_for_cluster_with_azure_cli_auth", "test/test_client.py::TestClient::test_client_i...
[]
MIT License
swerebench/sweb.eval.x86_64.azure_1776_pykusto-159
swerebench/sweb.eval.x86_64.azure_1776_pykusto-159
Azure__pykusto-20
13fc2f12a84ca19b0cc8c6d61d2c67da858fdae0
2019-08-12 08:54:35
68121cdd79cc9c1d6b8f71e5e80df566ac6842c7
diff --git a/pykusto/client.py b/pykusto/client.py index 1d708c7..2bc47e4 100644 --- a/pykusto/client.py +++ b/pykusto/client.py @@ -1,5 +1,8 @@ from typing import Union, List, Tuple +# noinspection PyProtectedMember +from urllib.parse import urlparse + # noinspection PyProtectedMember from azure.kusto.data._respo...
Add support for cross-cluster join If the joined table is from a different cluster, render it using the following syntax: cluster("a").database("b").table("c")
Azure/pykusto
diff --git a/test/test_query.py b/test/test_query.py index b4ed016..a228e03 100644 --- a/test/test_query.py +++ b/test/test_query.py @@ -69,7 +69,7 @@ class TestQuery(TestBase): table = PyKustoClient(mock_kusto_client)['test_db']['test_table'] self.assertEqual( - " | where foo > 4 | take ...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 1, "test_score": 3 }, "num_modified_files"...
0.0
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.9", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line --col...
adal==1.2.7 azure-kusto-data==0.0.31 certifi==2025.1.31 cffi==1.17.1 charset-normalizer==3.4.1 cryptography==44.0.2 exceptiongroup @ file:///croot/exceptiongroup_1706031385326/work idna==3.10 iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work packaging @ file:///croot/packaging_1734472117206/work p...
name: pykusto channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - exceptiongroup=1.2.0=py39h06a4308_0 - iniconfig=1.1.1=pyhd3eb1b0_0 - ld_...
[ "test/test_query.py::TestQuery::test_join_with_table", "test/test_query.py::TestQuery::test_join_with_table_and_query", "test/test_table.py::TestTable::test_cross_cluster_join", "test/test_table.py::TestTable::test_cross_cluster_join_with_union", "test/test_table.py::TestTable::test_cross_cluster_join_with_...
[]
[ "test/test_query.py::TestQuery::test_add_queries", "test/test_query.py::TestQuery::test_count", "test/test_query.py::TestQuery::test_custom", "test/test_query.py::TestQuery::test_distinct", "test/test_query.py::TestQuery::test_distinct_all", "test/test_query.py::TestQuery::test_extend", "test/test_query...
[]
MIT License
null
null
Azure__pykusto-22
aff79137b6d310f33a2085ece2fbe41886c50c11
2019-08-12 14:53:39
68121cdd79cc9c1d6b8f71e5e80df566ac6842c7
diff --git a/pykusto/query.py b/pykusto/query.py index 42caba4..272bbaf 100644 --- a/pykusto/query.py +++ b/pykusto/query.py @@ -53,7 +53,12 @@ class Query: self._table = head if isinstance(head, Table) else None def __add__(self, other: 'Query'): - other._head = self + other_base = other ...
query.__add__ only handles short queries
Azure/pykusto
diff --git a/test/test_query.py b/test/test_query.py index a228e03..034feec 100644 --- a/test/test_query.py +++ b/test/test_query.py @@ -15,9 +15,21 @@ class TestQuery(TestBase): ) def test_add_queries(self): - query = Query().where(col.foo > 4) + Query().take(5) + Query().sort_by(col.bar, Order....
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 2, "test_score": 0 }, "num_modified_files": 1 }
0.0
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .[dev]", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.7", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line --col...
adal==1.2.7 attrs @ file:///croot/attrs_1668696182826/work azure-kusto-data==0.0.31 certifi @ file:///croot/certifi_1671487769961/work/certifi cffi==1.15.1 charset-normalizer==3.4.1 cryptography==44.0.2 flit_core @ file:///opt/conda/conda-bld/flit-core_1644941570762/work/source/flit_core idna==3.10 importlib-metadata @...
name: pykusto channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - attrs=22.1.0=py37h06a4308_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308_0 - flit-co...
[ "test/test_query.py::TestQuery::test_add_queries", "test/test_query.py::TestQuery::test_add_queries_with_table" ]
[]
[ "test/test_query.py::TestQuery::test_count", "test/test_query.py::TestQuery::test_custom", "test/test_query.py::TestQuery::test_distinct", "test/test_query.py::TestQuery::test_distinct_all", "test/test_query.py::TestQuery::test_extend", "test/test_query.py::TestQuery::test_extend_assign_to_multiple_column...
[]
MIT License
null
null
Azure__pykusto-34
a6f85c8015b59226608bafa1d2f5d862d1917ef4
2019-12-29 10:57:59
68121cdd79cc9c1d6b8f71e5e80df566ac6842c7
diff --git a/pykusto/functions.py b/pykusto/functions.py index 8450ef8..210958f 100644 --- a/pykusto/functions.py +++ b/pykusto/functions.py @@ -120,6 +120,8 @@ def ceiling(expr: NumberType) -> NumberExpression: def cos(expr: NumberType) -> NumberExpression: return expr.cos() + + # # def cot(self): return @...
iff doesn't support sub expressions The following syntax is not working: .extend(timeDelta=iff(col.day-col.day1 == 0, timedelta(DAYS_BACK_DIFF), col.day-col.day1))
Azure/pykusto
diff --git a/test/test_functions.py b/test/test_functions.py index 247142d..55fc998 100644 --- a/test/test_functions.py +++ b/test/test_functions.py @@ -7,7 +7,7 @@ from pykusto.query import Query from test.test_base import TestBase -# TODO dcount_hll, iif +# TODO dcount_hll class TestFunction(TestBase): d...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 0, "issue_text_score": 3, "test_score": 2 }, "num_modified_files": 2 }
0.0
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.7", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line --color=no...
adal==1.2.7 attrs @ file:///croot/attrs_1668696182826/work azure-kusto-data==0.0.36 certifi @ file:///croot/certifi_1671487769961/work/certifi cffi==1.15.1 charset-normalizer==3.4.1 cryptography==44.0.2 flit_core @ file:///opt/conda/conda-bld/flit-core_1644941570762/work/source/flit_core idna==3.10 importlib-metadata @...
name: pykusto channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - attrs=22.1.0=py37h06a4308_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308_0 - flit-co...
[ "test/test_functions.py::TestFunction::test_iff", "test/test_functions.py::TestFunction::test_iif" ]
[]
[ "test/test_functions.py::TestFunction::test_acos", "test/test_functions.py::TestFunction::test_ago", "test/test_functions.py::TestFunction::test_any", "test/test_functions.py::TestFunction::test_arg_max", "test/test_functions.py::TestFunction::test_arg_min", "test/test_functions.py::TestFunction::test_arr...
[]
MIT License
null
null
Azure__pykusto-36
290b60fd7ed3b61c05a3959c1adc7d4ce943f5db
2020-01-01 09:57:29
68121cdd79cc9c1d6b8f71e5e80df566ac6842c7
diff --git a/pykusto/expressions.py b/pykusto/expressions.py index d921749..e5ceedc 100644 --- a/pykusto/expressions.py +++ b/pykusto/expressions.py @@ -14,7 +14,7 @@ MappingType = Union[Mapping, 'MappingExpression'] DatetimeType = Union[datetime, 'DatetimeExpression'] TimespanType = Union[timedelta, 'TimespanExpress...
Refactor array, mapping dynamic types * Introduce DynamicExpression and AnyExpression * ArrayExpression and MappingExpression should return AnyExpression * Delete Column.__getitem__ * Fix inheritance tree
Azure/pykusto
diff --git a/test/test_expressions.py b/test/test_expressions.py index 7c42e8a..5b6f766 100644 --- a/test/test_expressions.py +++ b/test/test_expressions.py @@ -38,22 +38,46 @@ class TestExpressions(TestBase): Query().where(col.arr[col.foo * 2] == 'bar').render(), ) + def test_array_access_yi...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score": 3, "test_score": 2...
0.0
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.7", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line ...
adal==1.2.7 azure-kusto-data==0.0.36 certifi @ file:///croot/certifi_1671487769961/work/certifi cffi==1.15.1 charset-normalizer==3.4.1 cryptography==44.0.2 exceptiongroup==1.2.2 idna==3.10 importlib-metadata==6.7.0 iniconfig==2.0.0 packaging==24.0 pluggy==1.2.0 pycparser==2.21 PyJWT==2.8.0 -e git+https://github.com/Azu...
name: pykusto channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - li...
[ "test/test_expressions.py::TestExpressions::test_array_access_yields_any_expression", "test/test_expressions.py::TestExpressions::test_dynamic", "test/test_expressions.py::TestExpressions::test_mapping_access_attribute", "test/test_expressions.py::TestExpressions::test_mapping_access_yields_any_expression" ]
[]
[ "test/test_expressions.py::TestExpressions::test_array_access", "test/test_expressions.py::TestExpressions::test_array_access_expression_index", "test/test_expressions.py::TestExpressions::test_assign_to", "test/test_expressions.py::TestExpressions::test_between_timespan", "test/test_expressions.py::TestExp...
[]
MIT License
null
null
Azure__pykusto-41
d20a446d97e242d6ce4b8e99b6ab0c076e629e6c
2020-01-01 13:23:03
68121cdd79cc9c1d6b8f71e5e80df566ac6842c7
diff --git a/pykusto/client.py b/pykusto/client.py index 2bc47e4..23b7266 100644 --- a/pykusto/client.py +++ b/pykusto/client.py @@ -1,5 +1,4 @@ from typing import Union, List, Tuple - # noinspection PyProtectedMember from urllib.parse import urlparse @@ -7,7 +6,7 @@ from urllib.parse import urlparse from azure.k...
Return correct types in operators that accept aggregation expressions
Azure/pykusto
diff --git a/test/test_base.py b/test/test_base.py index 7070cec..dde3185 100644 --- a/test/test_base.py +++ b/test/test_base.py @@ -3,7 +3,7 @@ import sys from typing import Callable from unittest import TestCase -from pykusto.utils import logger +from pykusto.logger import logger class TestBase(TestCase): di...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_added_files", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 2, "issue_text_score":...
0.0
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.7", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line --color=no...
adal==1.2.7 attrs @ file:///croot/attrs_1668696182826/work azure-kusto-data==0.0.36 certifi @ file:///croot/certifi_1671487769961/work/certifi cffi==1.15.1 charset-normalizer==3.4.1 cryptography==44.0.2 flit_core @ file:///opt/conda/conda-bld/flit-core_1644941570762/work/source/flit_core idna==3.10 importlib-metadata @...
name: pykusto channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - attrs=22.1.0=py37h06a4308_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308_0 - flit-co...
[ "test/test_functions.py::TestFunction::test_acos", "test/test_functions.py::TestFunction::test_ago", "test/test_functions.py::TestFunction::test_any", "test/test_functions.py::TestFunction::test_arg_max", "test/test_functions.py::TestFunction::test_arg_min", "test/test_functions.py::TestFunction::test_arr...
[]
[]
[]
MIT License
null
null
Azure__pykusto-42
8783b166ce0ee3236ad6fcda81d9355a80438cd2
2020-01-01 13:44:42
68121cdd79cc9c1d6b8f71e5e80df566ac6842c7
diff --git a/pykusto/expressions.py b/pykusto/expressions.py index a02183b..ec73163 100644 --- a/pykusto/expressions.py +++ b/pykusto/expressions.py @@ -21,14 +21,6 @@ OrderType = Union[DatetimeType, TimespanType, NumberType, StringType] # All classes in the same file to prevent circular dependencies def _subexpr_t...
In some contexts a dynamic literal needs to be created with the "dynamic" keyword For example, currently `strcat_array` fails because it requires: `strcat_array(dynamic(["A", "B", "C"]), ",")` while pykusto produces: `strcat_array(("A", "B", "C"), ",")`
Azure/pykusto
diff --git a/test/test_base.py b/test/test_base.py index dde3185..6321ec8 100644 --- a/test/test_base.py +++ b/test/test_base.py @@ -3,7 +3,7 @@ import sys from typing import Callable from unittest import TestCase -from pykusto.logger import logger +from pykusto.type_utils import logger class TestBase(TestCase...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_removed_files", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score...
0.0
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "requirements.txt", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.7", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line ...
adal==1.2.7 azure-kusto-data==0.0.36 certifi @ file:///croot/certifi_1671487769961/work/certifi cffi==1.15.1 charset-normalizer==3.4.1 cryptography==44.0.2 exceptiongroup==1.2.2 idna==3.10 importlib-metadata==6.7.0 iniconfig==2.0.0 packaging==24.0 pluggy==1.2.0 pycparser==2.21 PyJWT==2.8.0 -e git+https://github.com/Azu...
name: pykusto channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308_0 - ld_impl_linux-64=2.40=h12ee557_0 - li...
[ "test/test_functions.py::TestFunction::test_acos", "test/test_functions.py::TestFunction::test_ago", "test/test_functions.py::TestFunction::test_any", "test/test_functions.py::TestFunction::test_arg_max", "test/test_functions.py::TestFunction::test_arg_min", "test/test_functions.py::TestFunction::test_arr...
[]
[]
[]
MIT License
null
null
Azure__pykusto-54
9463e103d72bec751023c922cc5827c93471eb3d
2020-02-24 08:18:58
68121cdd79cc9c1d6b8f71e5e80df566ac6842c7
diff --git a/.gitignore b/.gitignore index 939d9b9..c3c5d29 100644 --- a/.gitignore +++ b/.gitignore @@ -333,4 +333,9 @@ ASALocalRun/ /.idea/workspace.xml /.idea/checkstyle-idea.xml /.idea/misc.xml + +# Python venv and installation files /venv +/build +/dist +/pykusto.egg-info diff --git a/README.md b/README.md ind...
Autocomplete column names
Azure/pykusto
diff --git a/test/test_functions.py b/test/test_functions.py index b88182a..c23866e 100644 --- a/test/test_functions.py +++ b/test/test_functions.py @@ -738,7 +738,7 @@ class TestFunction(TestBase): def test_iff_different_types(self): self.assertRaises( - TypeError("The second and third argum...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_added_files", "has_many_modified_files", "has_many_hunks", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 3, "issue_text_score":...
0.0
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.7", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line --color=no...
adal==1.2.7 attrs @ file:///croot/attrs_1668696182826/work azure-kusto-data==0.0.36 certifi @ file:///croot/certifi_1671487769961/work/certifi cffi==1.15.1 charset-normalizer==3.4.1 cryptography==44.0.2 flit_core @ file:///opt/conda/conda-bld/flit-core_1644941570762/work/source/flit_core idna==3.10 importlib-metadata @...
name: pykusto channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - attrs=22.1.0=py37h06a4308_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308_0 - flit-co...
[ "test/test_functions.py::TestFunction::test_acos", "test/test_functions.py::TestFunction::test_ago", "test/test_functions.py::TestFunction::test_any", "test/test_functions.py::TestFunction::test_arg_max", "test/test_functions.py::TestFunction::test_arg_min", "test/test_functions.py::TestFunction::test_arr...
[]
[]
[]
MIT License
null
null
Azure__pykusto-70
0930c481041f5165e870094d2716d9ebeb671c41
2020-04-26 12:57:58
68121cdd79cc9c1d6b8f71e5e80df566ac6842c7
diff --git a/pykusto/functions.py b/pykusto/functions.py index bae1253..bbf711b 100644 --- a/pykusto/functions.py +++ b/pykusto/functions.py @@ -1,4 +1,5 @@ import json +from itertools import chain from typing import Union from pykusto.expressions import AnyTypeColumn, NumberType, NumberExpression, TimespanType, \...
add set_difference function and while at it, more array operations...
Azure/pykusto
diff --git a/test/test_functions.py b/test/test_functions.py index 2d53aa8..8b3edaa 100644 --- a/test/test_functions.py +++ b/test/test_functions.py @@ -827,3 +827,81 @@ class TestFunction(TestBase): ' | extend foo = pack_array(numField, stringField)', Query().extend(foo=f.pack_array(t.numFiel...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 3, "issue_text_score": 3, "test_score": 3 }, "num_modified_files": 1 }
0.0
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.7", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line --color=no...
adal==1.2.7 attrs @ file:///croot/attrs_1668696182826/work azure-core==1.30.1 azure-kusto-data==0.0.44 certifi @ file:///croot/certifi_1671487769961/work/certifi cffi==1.15.1 charset-normalizer==3.4.1 cryptography==44.0.2 flit_core @ file:///opt/conda/conda-bld/flit-core_1644941570762/work/source/flit_core idna==3.10 i...
name: pykusto channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - attrs=22.1.0=py37h06a4308_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308_0 - flit-co...
[ "test/test_functions.py::TestFunction::test_array_concat", "test/test_functions.py::TestFunction::test_array_iif", "test/test_functions.py::TestFunction::test_array_index_of", "test/test_functions.py::TestFunction::test_array_rotate_left", "test/test_functions.py::TestFunction::test_array_rotate_right", "...
[]
[ "test/test_functions.py::TestFunction::test_acos", "test/test_functions.py::TestFunction::test_aggregation_assign_to", "test/test_functions.py::TestFunction::test_aggregation_assign_to_multiple", "test/test_functions.py::TestFunction::test_aggregation_by_assign_to", "test/test_functions.py::TestFunction::te...
[]
MIT License
null
null
Azure__pykusto-71
0930c481041f5165e870094d2716d9ebeb671c41
2020-04-26 13:12:14
68121cdd79cc9c1d6b8f71e5e80df566ac6842c7
diff --git a/pykusto/item_fetcher.py b/pykusto/item_fetcher.py index 406f8eb..6b3620a 100644 --- a/pykusto/item_fetcher.py +++ b/pykusto/item_fetcher.py @@ -92,7 +92,7 @@ class ItemFetcher(metaclass=ABCMeta): return fallback() def __dir__(self) -> Iterable[str]: - return sorted(chain(super().__di...
Do not autocomplete to columns which contain a dot in their name
Azure/pykusto
diff --git a/test/test_client_fetch.py b/test/test_client_fetch.py index 76f9d2a..1b45a23 100644 --- a/test/test_client_fetch.py +++ b/test/test_client_fetch.py @@ -22,12 +22,12 @@ class TestClientFetch(TestBase): mock_kusto_client.recorded_queries, ) # Dot notation - self.assertIs...
{ "commit_name": "head_commit", "failed_lite_validators": [ "has_short_problem_statement", "has_pytest_match_arg" ], "has_test_patch": true, "is_lite": false, "llm_score": { "difficulty_score": 1, "issue_text_score": 1, "test_score": 3 }, "num_modified_files": 1 }
0.0
{ "env_vars": null, "env_yml_path": null, "install": "pip install -e .", "log_parser": "parse_log_pytest", "no_use_env": null, "packages": "pytest", "pip_packages": [ "pytest" ], "pre_install": null, "python": "3.7", "reqs_path": null, "test_cmd": "pytest --no-header -rA --tb=line --color=no...
adal==1.2.7 attrs @ file:///croot/attrs_1668696182826/work azure-core==1.30.1 azure-kusto-data==0.0.44 certifi @ file:///croot/certifi_1671487769961/work/certifi cffi==1.15.1 charset-normalizer==3.4.1 cryptography==44.0.2 flit_core @ file:///opt/conda/conda-bld/flit-core_1644941570762/work/source/flit_core idna==3.10 i...
name: pykusto channels: - defaults - https://repo.anaconda.com/pkgs/main - https://repo.anaconda.com/pkgs/r - conda-forge dependencies: - _libgcc_mutex=0.1=main - _openmp_mutex=5.1=1_gnu - attrs=22.1.0=py37h06a4308_0 - ca-certificates=2025.2.25=h06a4308_0 - certifi=2022.12.7=py37h06a4308_0 - flit-co...
[ "test/test_client_fetch.py::TestClientFetch::test_autocomplete_with_dot", "test/test_client_fetch.py::TestClientFetch::test_query_before_fetch_returned" ]
[]
[ "test/test_client_fetch.py::TestClientFetch::test_client_not_fetched", "test/test_client_fetch.py::TestClientFetch::test_column_fetch", "test/test_client_fetch.py::TestClientFetch::test_column_fetch_slow", "test/test_client_fetch.py::TestClientFetch::test_database_fetch", "test/test_client_fetch.py::TestCli...
[]
MIT License
null
null