Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: sync versions of dependencies #7301

Closed
wants to merge 1 commit into from

Conversation

pjonsson
Copy link
Contributor

@pjonsson pjonsson commented Oct 26, 2024

What this PR does

The ^ on the request version was lost
in #6986 (cc @ljowen), so put it back so
we get a slightly less ancient version that
is what terriajs-server also uses.

Also remove the addition of moment,
that is already installed because
of the dependencies of terriajs.

Test me

Run the CI-flow that runs this script.

Checklist

  • There are unit tests to verify my changes are correct or unit tests aren't applicable (if so, write quick reason why unit tests don't exist)
  • I've updated relevant documentation in doc/.
  • I've updated CHANGES.md with what I changed.
  • I've provided instructions in the PR description on how to test this PR.

The ^ on the request version was lost
in TerriaJS#6986, so put it back so we get
a slightly less ancient version that
is what terriajs-server also uses.

Also remove the addition of moment,
that is already installed because
of the dependencies of terriajs.
@pjonsson
Copy link
Contributor Author

Noticed that moment is already installed in TerriaMap because of the dependencies of terriajs, so updated this to not yarn add moment instead of syncing the version to match what is in package.json.

@ljowen ljowen self-assigned this Dec 23, 2024
@@ -19,7 +19,7 @@ gh api /repos/${GITHUB_REPOSITORY}/statuses/${GITHUB_SHA} -f state=pending -f co
# Install some tools we need from npm
npm install -g https://github.com/terriajs/sync-dependencies
npm install -g yarn@^1.19.0
yarn add -W request@2.83.0
yarn add -W request@^2.88.2
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sync-dependencies got converted to got 5 years ago: TerriaJS/sync-dependencies#3

What is it in this workflow that requires installing request?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's buildprocess/ci-cleanup.js that uses request.

Copy link
Contributor

Choose a reason for hiding this comment

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

AFAICT it's only used in buildprocess/ci-cleanup.js now that's we running node v20 on CI we could just use fetch here instead

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That seems reasonable.

The deployment stuff is difficult to test for those of us who don't push to a branch of this repository though, could this PR be merged to fix the immediate issues and then someone at Terria takes care of the long-term solution of converting to fetch when that is convenient for you?

Copy link
Contributor

Choose a reason for hiding this comment

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

I've created a PR here just need to work out where the type error is coming from #7547

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Replacing the deprecated request is better than updating it, so closing this in favor of #7547.

@pjonsson pjonsson closed this Mar 12, 2025
@pjonsson pjonsson deleted the ci-build-updates branch March 12, 2025 08:04
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