Skip to content

chore(ci): core build caches api.txt - #27167

Merged
liamdebeasi merged 1 commit into
mainfrom
FW-2243
Apr 11, 2023
Merged

liamdebeasi merged 1 commit into
mainfrom
FW-2243

Conversation

@liamdebeasi

@liamdebeasi liamdebeasi commented Apr 11, 2023 •

Copy link
Copy Markdown
Contributor

What is the current behavior?

Unbuilt changes in core are not always being caught because the api.txt file is not cached.

Stencil will potentially update both the src/components.d.ts and api.txt files when there are built changes to the public API. We need to check both files when accounting for unbuilt changes.

Example: #25858

This had updates to api.txt that were not built.

Built changes PR: #25933

Example of this change catching api.txt changes as intended: #27165

What is the new behavior?

  • GitHub Actions core build step caches api.txt

Does this introduce a breaking change?

  • Yes
  • No

Other information

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@liamdebeasi
liamdebeasi marked this pull request as ready for review April 11, 2023 14:14
@liamdebeasi
liamdebeasi requested a review from a team as a code owner April 11, 2023 14:14
@liamdebeasi
liamdebeasi enabled auto-merge April 11, 2023 14:37
@liamdebeasi
liamdebeasi added this pull request to the merge queue Apr 11, 2023
Merged via the queue into main with commit be92506 Apr 11, 2023
@liamdebeasi
liamdebeasi deleted the FW-2243 branch April 11, 2023 16:59
liamdebeasi added a commit that referenced this pull request Apr 17, 2023
<!-- Please refer to our contributing documentation for any questions on
submitting a pull request, or let us know here if you need any help:
https://ionicframework.com/docs/building/contributing -->

<!-- Some docs updates need to be made in the `ionic-docs` repo, in a
separate PR. See
https://github.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#modifying-documentation
for details. -->

<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->

<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->

## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->


<!-- Issues are required for both bug fixes and features. -->
Unbuilt changes in `core` are not always being caught because the
`api.txt` file is not cached.

Stencil will potentially update both the `src/components.d.ts` and
`api.txt` files when there are built changes to the public API. We need
to check both files when accounting for unbuilt changes.

Example: #25858

This had updates to `api.txt` that were not built.

Built changes PR:
#25933

Example of this change catching `api.txt` changes as intended:
#27165

## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

- GitHub Actions core build step caches `api.txt`

## Does this introduce a breaking change?

- [ ] Yes
- [x] No

<!-- If this introduces a breaking change, please describe the impact
and migration path for existing applications below. -->


## Other information

<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->
liamdebeasi added a commit that referenced this pull request Apr 19, 2023
<!-- Please refer to our contributing documentation for any questions on
submitting a pull request, or let us know here if you need any help:
https://ionicframework.com/docs/building/contributing -->

<!-- Some docs updates need to be made in the `ionic-docs` repo, in a
separate PR. See
https://github.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#modifying-documentation
for details. -->

<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->

<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->

## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->


<!-- Issues are required for both bug fixes and features. -->
Unbuilt changes in `core` are not always being caught because the
`api.txt` file is not cached.

Stencil will potentially update both the `src/components.d.ts` and
`api.txt` files when there are built changes to the public API. We need
to check both files when accounting for unbuilt changes.

Example: #25858

This had updates to `api.txt` that were not built.

Built changes PR:
#25933

Example of this change catching `api.txt` changes as intended:
#27165

## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

- GitHub Actions core build step caches `api.txt`

## Does this introduce a breaking change?

- [ ] Yes
- [x] No

<!-- If this introduces a breaking change, please describe the impact
and migration path for existing applications below. -->


## Other information

<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->
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.

2 participants