Skip to content

Refactor init-windows CI jobs - #12213

Merged
Jon Thysell (jonthysell) merged 1 commit into
microsoft:mainfrom
jonthysell:sep_cli_ci
Oct 16, 2023
Merged

Refactor init-windows CI jobs#12213
Jon Thysell (jonthysell) merged 1 commit into
microsoft:mainfrom
jonthysell:sep_cli_ci

Conversation

@jonthysell

@jonthysell Jon Thysell (jonthysell) commented Oct 6, 2023

Copy link
Copy Markdown
Contributor

Description

PR #12183 shoe-horned a new variable and branching path in our existing cli-init.yml CI job to support the new react-native init-windows command.

However, this makes the pipeline hard to parse and maintain. This PR factors out the new new project path into a separate set of jobs, so we can leave the "old" pipeline as-is, run both for now, but have and easier time updating the new one (and eventually just delete the old one when it's no longer necessary).

Type of Change

  • New feature (non-breaking change which adds functionality)

Why

To make the new new project CI easier to maintain and drift from the old new project CI.

What

Created a new cli-init-windows.yml job, which calls a new "template-focused" react-native-init-windows.yml template, and also factored out code common to both it and to react-native-init.yml (like starting/stopping verdaccio) into reusable templates.

Screenshots

N/A

Testing

Ran the new pipelines

Changelog

Should this change be included in the release notes: no

Microsoft Reviewers: Open in CodeFlow

@jonthysell
Jon Thysell (jonthysell) marked this pull request as ready for review October 6, 2023 21:47
@jonthysell
Jon Thysell (jonthysell) enabled auto-merge (squash) October 6, 2023 22:02
@jonthysell
Jon Thysell (jonthysell) merged commit 7ebb749 into microsoft:main Oct 16, 2023
@jonthysell
Jon Thysell (jonthysell) deleted the sep_cli_ci branch October 16, 2023 20:03
Jon Thysell (jonthysell) pushed a commit that referenced this pull request Oct 16, 2023
Backport this into 0.73 to keep the pipelines aligned.

PR #12183 show-horned a new variable and branching path in our existing `cli-init.yml` CI job to support the new `react-native init-windows` command.

However, this makes the pipeline hard to parse and maintain. This PR factors out the new new project path into a separate set of jobs, so we can leave the "old" pipeline as-is, run both for now, but have and easier time updating the new one (and eventually just delete the old one when it's no longer necessary).

- New feature (non-breaking change which adds functionality)

To make the new new project CI easier to maintain and drift from the old new project CI.

Created a new `cli-init-windows.yml` job, which calls a new "template-focused" `react-native-init-windows.yml` template, and also factored out code common to both it and to `react-native-init.yml` (like starting/stopping verdaccio) into reusable templates.

N/A

Ran the new pipelines

Should this change be included in the release notes: _no_
Yajur Grover (YajurG) pushed a commit to YajurG/react-native-windows that referenced this pull request Oct 18, 2023
## Description

PR microsoft#12183 show-horned a new variable and branching path in our existing `cli-init.yml` CI job to support the new `react-native init-windows` command.

However, this makes the pipeline hard to parse and maintain. This PR factors out the new new project path into a separate set of jobs, so we can leave the "old" pipeline as-is, run both for now, but have and easier time updating the new one (and eventually just delete the old one when it's no longer necessary).

### Type of Change

- New feature (non-breaking change which adds functionality)

### Why

To make the new new project CI easier to maintain and drift from the old new project CI.

### What

Created a new `cli-init-windows.yml` job, which calls a new "template-focused" `react-native-init-windows.yml` template, and also factored out code common to both it and to `react-native-init.yml` (like starting/stopping verdaccio) into reusable templates.

## Screenshots
N/A

## Testing
Ran the new pipelines

## Changelog
Should this change be included in the release notes: _no_
Jon Thysell (jonthysell) pushed a commit that referenced this pull request Oct 20, 2023
Backport PR #12213 into 0.73

## Description
PR #12183 show-horned a new variable and branching path in our existing `cli-init.yml` CI job to support the new `react-native init-windows` command.

However, this makes the pipeline hard to parse and maintain. This PR factors out the new new project path into a separate set of jobs, so we can leave the "old" pipeline as-is, run both for now, but have and easier time updating the new one (and eventually just delete the old one when it's no longer necessary).

### Type of Change
- New feature (non-breaking change which adds functionality)

### Why
To make the new new project CI easier to maintain and drift from the old new project CI.

### What
Created a new `cli-init-windows.yml` job, which calls a new "template-focused" `react-native-init-windows.yml` template, and also factored out code common to both it and to `react-native-init.yml` (like starting/stopping verdaccio) into reusable templates.

## Screenshots
N/A

## Testing
Ran the new pipelines

## Changelog
Should this change be included in the release notes: _no_
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