Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@fALKENdk
Copy link
Contributor

@fALKENdk fALKENdk commented Dec 6, 2025

The Azure Pipelines schema requires fetchDepth to be a string, but the generator was outputting a number.
This fix changes the value to a string to match the official schema specification.

Current Behavior

The generator creates azure-pipelines.yml with fetchDepth: 0 (number), which causes YAML schema validation error because the Azure Pipelines schema expects fetchDepth to be a string.

According to the Azure Pipelines schema, fetchDepth is defined as:

"fetchDepth": {
    "description": "Depth of Git graph to fetch",
    "$ref": "#/definitions/string"
}

Expected Behavior

The generator should output fetchDepth: '0' (string) to match the schema specification and prevent validation errors.

The Azure Pipelines schema requires fetchDepth to be a string, but the generator was outputting a
number.
This fix changes the value to a string to match the official schema specification.
@fALKENdk fALKENdk requested review from a team as code owners December 6, 2025 00:18
@fALKENdk fALKENdk requested a review from jaysoo December 6, 2025 00:18
@netlify
Copy link

netlify bot commented Dec 6, 2025

👷 Deploy request for nx-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit cd7b676

@vercel
Copy link

vercel bot commented Dec 6, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
nx-dev Ready Ready Preview Dec 15, 2025 9:57pm

@nx-cloud
Copy link
Contributor

nx-cloud bot commented Dec 8, 2025

View your CI Pipeline Execution ↗ for commit cd7b676

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ✅ Succeeded 17m 16s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 2m 31s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 11s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-12-16 13:10:41 UTC

Copy link
Contributor

@nx-cloud nx-cloud bot left a comment

Choose a reason for hiding this comment

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

Important

A new CI pipeline execution was requested that may update the conclusion below...

Nx Cloud has identified a possible root cause for your failed CI:

Our analysis determined this is an environment_state issue, not related to the PR changes. The local npm registry at localhost:4873 is missing the has-tostringtag package, causing all tests to fail during workspace creation before the PR's Azure Pipelines YAML changes are even evaluated. The fetchDepth type change (number to string) has no connection to package resolution or registry configuration.

No code changes were suggested for this issue.

If the issue was transient, you can trigger a rerun by pushing an empty commit:

git commit --allow-empty -m "chore: trigger rerun"
git push

Nx Cloud View detailed reasoning on Nx Cloud ↗


🎓 Learn more about Self-Healing CI on nx.dev

@Coly010 Coly010 merged commit 5ccc0a8 into nrwl:master Dec 16, 2025
16 of 18 checks passed
FrozenPandaz added a commit that referenced this pull request Dec 16, 2025
)

The Azure Pipelines schema requires fetchDepth to be a string, but the
generator was outputting a number.
This fix changes the value to a string to match the official schema
specification.

## Current Behavior
The generator creates `azure-pipelines.yml` with `fetchDepth: 0`
(number), which causes YAML schema validation error because the Azure
Pipelines schema expects `fetchDepth` to be a string.

According to the [Azure Pipelines
schema](https://raw.githubusercontent.com/microsoft/azure-pipelines-vscode/master/service-schema.json),
`fetchDepth` is defined as:
```json
"fetchDepth": {
    "description": "Depth of Git graph to fetch",
    "$ref": "#/definitions/string"
}
```

## Expected Behavior
The generator should output `fetchDepth: '0'` (string) to match the
schema specification and prevent validation errors.

Co-authored-by: Jason Jean <[email protected]>
@github-actions
Copy link
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants