Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

Breaking: Origami version 2 compatible version of origami-ci-tools #95

Closed
wants to merge 19 commits into from

Conversation

JakeChampion
Copy link
Contributor

This is the main branch for the work required to make this project compatible with Origami version 2.

Work will be done in branches off of this branch (version-3).

@JakeChampion JakeChampion requested a review from a team as a code owner January 11, 2021 17:59
@github-actions github-actions bot added the cli Relates to an Origami cli label Jan 11, 2021
@JakeChampion
Copy link
Contributor Author

This is currently released as v3.0.0-beta.2

@JakeChampion JakeChampion added this to the npm milestone Jan 12, 2021
dependabot bot and others added 5 commits January 14, 2021 11:36
npm  7 no longer creates the root prefix.
it also expects `lib` and `bin` to already exist.

which is _fine_.
@JakeChampion JakeChampion marked this pull request as draft January 15, 2021 13:40
@JakeChampion JakeChampion removed the request for review from a team January 15, 2021 13:40
@notlee notlee requested review from a team and removed request for a team January 18, 2021 14:17
@JakeChampion JakeChampion added the current Used to mark an issue as planned for Origami's current six-week cycle label Jan 26, 2021
notlee and others added 5 commits January 28, 2021 11:20
It is out of date. The correct version is included in the published
package (it is added automatically during CI)
Each command must export a `globalDependencies` object
notlee and others added 5 commits February 15, 2021 17:25
Previously this did not work as expected as `semver.coerce` does not
appear to handle prerelease versions. Relates to:
npm/node-semver#357

Instead we can use `semver.prerelease` for our purposes.

We should improve test coverage here but I suspect this action
may disappear in the near future (either with a move to a mono
repo, or by extracting the bundle size notice and using a similar
approach to services for publishing).
`origami-bundle-size-cli` can no longer support bundle size
comparisons for commit refs. We intend to solve the problem of
ensuring component bundle sizes are kept in check some other way
in the future
@notlee
Copy link
Contributor

notlee commented Feb 17, 2021

hey @Financial-Times/origami-core, ci-tools does less than it used:

On branch:

obt init
obt verify
obt test

On release:

  • figures out if it's a prerelease or not
  • npm publish ... accordingly

Since its doing less I don't think it's helping us keep our release flows consistent across components, but does add an extra step to updating them. I'm in favour of revisiting how we make it less of a pain to update all component workflows in the future (still holding out mono repo hopes) but for now think it would be a good idea to deprecate ci-tools in favour of handling pre-releases the same way we do for non-components:

Thoughts?

@JakeChampion
Copy link
Contributor Author

hey @Financial-Times/origami-core, ci-tools does less than it used:

On branch:

obt init
obt verify
obt test

On release:

* figures out if it's a prerelease or not

* `npm publish ...` accordingly

Since its doing less I don't think it's helping us keep our release flows consistent across components, but does add an extra step to updating them. I'm in favour of revisiting how we make it less of a pain to update all component workflows in the future (still holding out mono repo hopes) but for now think it would be a good idea to deprecate ci-tools in favour of handling pre-releases the same way we do for non-components:

* [https://github.com/Financial-Times/origami-build-tools/blob/master/.github/workflows/publish-to-npm-as-latest.yml](https://github.com/Financial-Times/origami-build-tools/blob/master/.github/workflows/publish-to-npm-as-latest.yml?rgh-link-date=2021-02-17T16%3A35%3A00Z)

* [https://github.com/Financial-Times/origami-build-tools/blob/master/.github/workflows/publish-to-npm-as-prerelease.yml](https://github.com/Financial-Times/origami-build-tools/blob/master/.github/workflows/publish-to-npm-as-prerelease.yml?rgh-link-date=2021-02-17T16%3A35%3A00Z)

Thoughts?

Yes, completely agree here, lets move it to a github workflow 👍

notlee added a commit that referenced this pull request Feb 18, 2021
The `newVersion` variable was renamed but all usecases were
not removed/updated.
#108

This should have been caught be testing or even linting. However
since origami-ci-tools will likely be deprecated soon let's not
add those now:
#95 (comment)
@notlee notlee mentioned this pull request Feb 18, 2021
notlee added a commit that referenced this pull request Feb 18, 2021
The `newVersion` variable was renamed but all usecases were
not removed/updated.
#108

This should have been caught be testing or even linting. However
since origami-ci-tools will likely be deprecated soon let's not
add those now:
#95 (comment)
@notlee notlee mentioned this pull request Feb 18, 2021
JakeChampion pushed a commit that referenced this pull request Feb 18, 2021
The `newVersion` variable was renamed but all usecases were
not removed/updated.
#108

This should have been caught be testing or even linting. However
since origami-ci-tools will likely be deprecated soon let's not
add those now:
#95 (comment)
@notlee
Copy link
Contributor

notlee commented Feb 22, 2021

Closing as we're going to replace ci-tools with updated workflows for the reasons listed above, as done here for o-test-component: Financial-Times/o-test-component#100

We will already be creating issues to upgrade components to spec v2 and I've made a note of this step for the checklist

@notlee notlee closed this Feb 22, 2021
@notlee notlee deleted the version-3 branch February 22, 2021 15:13
@JakeChampion JakeChampion restored the version-3 branch February 26, 2021 00:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cli Relates to an Origami cli current Used to mark an issue as planned for Origami's current six-week cycle
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants