Skip to content

Fix source indexer stage - #7694

Open
jjonescz wants to merge 14 commits into
dotnet:mainfrom
jjonescz:complog
Open

Fix source indexer stage#7694
jjonescz wants to merge 14 commits into
dotnet:mainfrom
jjonescz:complog

Conversation

@jjonescz

@jjonescz jjonescz commented Aug 11, 2026

Copy link
Copy Markdown
Member

Validation: https://dev.azure.com/dnceng/internal/_build/results?buildId=3044826&view=results

(Ignore the intermediate commits, they contain some experiments; this should be squashed on merge.)

Microsoft Reviewers: Open in CodeFlow

@jjonescz
jjonescz marked this pull request as ready for review August 11, 2026 15:19
@jjonescz
jjonescz requested a review from a team as a code owner August 11, 2026 15:19
Copilot AI lite review requested due to automatic review settings August 11, 2026 15:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts the Azure Pipelines configuration to fix/unstick the source indexing stage by reusing the repository’s restore/build steps in a shared template and wiring those steps into the source-index job.

Changes:

  • Introduces a reusable RestoreAndBuild.yml pipeline template encapsulating Node setup, restore, solution generation, and build.
  • Refactors BuildAndTest.yml to consume the new restore/build template instead of duplicating those steps.
  • Updates azure-pipelines.yml to drive source indexing via a parameterized condition and to run restore/build as preSteps for the source-index job.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
eng/pipelines/templates/RestoreAndBuild.yml New shared restore/build step template used by build/test and source-index preSteps.
eng/pipelines/templates/BuildAndTest.yml Switches restore/build steps to use the shared template.
azure-pipelines.yml Updates source index configuration (condition, build script variable, and preSteps using the shared template).

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread azure-pipelines.yml
Comment thread azure-pipelines.yml
Comment thread eng/pipelines/templates/RestoreAndBuild.yml
Comment thread azure-pipelines.yml
enableMicrobuild: true
enableTelemetry: true
enableSourceIndex: ${{ variables['enableSourceIndex'] }}
enableSourceIndex: true

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Does this mean that it will enable source index updating even for PRs now?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No, the condition just moved (because I needed it to depend on a runtime variable forceEnableSourceIndex for testing, and ${{ }} can only use compile time variables).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants