Skip to content

Commit 9c9d05d

Browse files
authored
pipelinefailedissuefixes (#1334)
1 parent a5f27c1 commit 9c9d05d

File tree

7 files changed

+23
-14
lines changed

7 files changed

+23
-14
lines changed

Diff for: .azure-pipelines/azure-pipelines-pr.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ jobs:
4545
strategy:
4646
matrix:
4747
Python36:
48-
python.version: '3.6.x'
48+
python.version: '3.10'
4949
Python37:
50-
python.version: '3.x'
50+
python.version: '3.10'
5151
maxParallel: 3
5252

5353
steps:
@@ -138,7 +138,7 @@ jobs:
138138
steps:
139139
- task: UsePythonVersion@0
140140
inputs:
141-
versionSpec: '3.x'
141+
versionSpec: '3.8'
142142
architecture: 'x64'
143143

144144
- template: templates/install-azure-cli-edge.yml
@@ -155,6 +155,9 @@ jobs:
155155
targetType: 'filePath'
156156
filePath: 'scripts/runStyleCheck.ps1'
157157

158+
159+
160+
158161
- job: 'Run_HelpText_Check'
159162
dependsOn: 'Build_Publish_Azure_CLI_Test_SDK'
160163
pool:

Diff for: .flake8

+12-6
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,18 @@
22
max-line-length = 120
33
max-complexity = 10
44
ignore =
5-
E501, # line too long, it is covered by pylint
6-
E722, # bare except, bad practice, to be removed in the future
7-
F401, # imported but unused, too many violations, to be removed in the future
8-
F811, # redefinition of unused, to be removed in the future
9-
C901, # code flow is too complex, too many violations, to be removed in the future
10-
W504 # line break after binary operator effect on readability is subjective
5+
# line too long, it is covered by pylint
6+
E501,
7+
# bare except, bad practice, to be removed in the future
8+
E722,
9+
# imported but unused, too many violations, to be removed in the future
10+
F401,
11+
# redefinition of unused, to be removed in the future
12+
F811,
13+
# code flow is too complex, too many violations, to be removed in the future
14+
C901,
15+
# line break after binary operator effect on readability is subjective
16+
W504
1117
exclude =
1218
tests
1319
build

Diff for: azure-devops/azext_devops/dev/pipelines/build.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def build_list(definition_ids=None, branch=None, organization=None, project=None
123123
return builds
124124

125125

126-
def build_cancel(build_id, open=False, organization=None, project=None, detect=None):
126+
def build_cancel(build_id, open=False, organization=None, project=None, detect=None): # pylint: disable=redefined-builtin
127127
"""Cancels if build is running.
128128
:param build_id: ID of the build.
129129
:type build_id: int

Diff for: azure-devops/azext_devops/dev/repos/arguments.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def load_code_arguments(self, _):
2222
with self.argument_context('repos policy') as context:
2323
context.argument('policy_configuration', options_list=('--policy-configuration', '--config'),
2424
help='Local file path for configuration file. ' +
25-
'Please use backslash(\) when typing in directory path. ')
25+
'Please use \\backslash when typing in directory path.')
2626
context.argument('policy_id', options_list=('--policy-id', '--id'),
2727
help='ID of the policy.')
2828
context.argument('repository_id', help='Id of the repository on which to apply the policy')

Diff for: doc/security_tokens.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,4 @@ If the tokens have variable-length path parts, then a separator character is use
132132

133133
Token format for project level permissions : 'repoV2/PROJECT_ID/REPO_ID'
134134

135-
For more information on this namespace and its tokens refer this [blog](https://devblogs.microsoft.com/devops/git-repo-tokens-for-the-security-service/)
135+
For more information on this namespace and its tokens refer this [blog](https://devblogs.microsoft.com/devops/git-repo-tokens-for-the-security-service/)

Diff for: doc/troubleshooting_common_errors.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
|----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
77
| Team level iterations| `VS1530019: Cannot find iteration with id 'b1e33737-e943-xxxx-xxxx-e3f1cbaxxxx'. The iteration might have been deleted, or it might not be selected for your team.` | Cannot find iteration: When you try to add a backlog iteration to a team. | You can only add child iterations of backlog iteration to your team. Create child iterations of your backlog iteration using command `az boards iteration project create --name "child_iteration_name" --path <BacklogIterationPath>`. Get the identifier of this iteration and add it to your team using `az boards iteration team add -h` command.|
88
| Team level Areas | `DefaultValue` | If you are trying to add your first area to a team without passing the flag --set-as-default. |Pass `--set-as-default` when adding an area to a team or use `az boards area team update` command to change the default area for the team. Refer help for `az boards area team add -h`|
9-
| Team level Areas | `TF400499: You have not set your team field.`| Adding/removing/updating area to team | Be cautious while working with team areas, --path parameter for team area must be `\ProjectName\RootAreaName\ChildArea1` and not `\ProjectName\Area\RootAreaName\ChildArea1`. Team area commands don't expect 'Area' keyword to be passed in the --path parameter. |
9+
| Team level Areas | `TF400499: You have not set your team field.`| Adding/removing/updating area to team | Be cautious while working with team areas, --path parameter for team area must be `\ProjectName\RootAreaName\ChildArea1` and not `\ProjectName\Area\RootAreaName\ChildArea1`. Team area commands don't expect 'Area' keyword to be passed in the --path parameter. |

Diff for: tests/test_pipelinesBuildCancelTest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ def test_build_cancel(self):
2626
queued_build_id = queue_build_output["id"]
2727

2828
#Cancel the running build
29-
cancel_running_build_command = 'az pipelines build cancel --id ' + str(queued_build_id) + ' --detect false --output json'
29+
cancel_running_build_command = 'az pipelines build cancel --build-id ' + str(queued_build_id) + ' --detect false --output json'
3030
cancel_running_build_output = self.cmd(cancel_running_build_command).get_output_in_json()
3131
assert cancel_running_build_output["status"] == "cancelling"

0 commit comments

Comments
 (0)