GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ci: use macOS 14 by millsp · Pull Request #22904 · prisma/orm

Conversation

@millsp

@millsp millsp commented Jan 31, 2024

Copy link
Copy Markdown
Contributor

No description provided.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@millsp
ci: use macOS 14
9485417
@github-actions

github-actions Bot commented Jan 31, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
packages/client/runtime/library.js 176.89 KB (0%)
packages/client/runtime/library.d.ts 81 B (0%)
packages/client/runtime/binary.js 595.72 KB (0%)
packages/client/runtime/binary.d.ts 26 B (0%)
packages/client/runtime/edge.js 155.72 KB (0%)
packages/client/runtime/edge-esm.js 155.61 KB (0%)
packages/client/runtime/wasm.js 111.84 KB (0%)
packages/client/runtime/index-browser.js 33.5 KB (0%)
packages/client/runtime/index-browser.d.ts 89 B (0%)
packages/cli/build/index.js 2.71 MB (0%)
packages/client/prisma-client-0.0.0.tgz 2.91 MB (0%)
packages/cli/prisma-0.0.0.tgz 3.87 MB (0%)
packages/bundle-size/da-workers-libsql/output.tgz 890.29 KB (0%)
packages/bundle-size/da-workers-neon/output.tgz 937.52 KB (0%)
packages/bundle-size/da-workers-pg/output.tgz 958.92 KB (0%)
packages/bundle-size/da-workers-pg-worker/output.tgz 911.99 KB (0%)
packages/bundle-size/da-workers-planetscale/output.tgz 879.47 KB (0%)
packages/bundle-size/da-workers-d1/output.tgz 863.56 KB (0%)
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@millsp
Merge branch 'main' into ci/use-macos-14
63bcae2
@Jolg42

Jolg42 commented Feb 8, 2024

Copy link
Copy Markdown
Contributor

There is no release yet rhysd/actionlint#392

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Jolg42 Jolg42 added this to the 5.10.0 milestone Feb 8, 2024
@Jolg42 Jolg42 assigned millsp Feb 8, 2024
@millsp millsp added the topic: tech debt Initiatives to improve the experience of working with the code base label Feb 8, 2024
@Jolg42 Jolg42 modified the milestones: 5.10.0, 5.11.0 Mar 4, 2024
@Jolg42
Merge branch 'main' into ci/use-macos-14
84118c9
@Jolg42
Jolg42 marked this pull request as ready for review March 4, 2024 10:54
@Jolg42
Jolg42 requested a review from a team as a code owner March 4, 2024 10:54
@Jolg42
Jolg42 requested review from jkomyno and removed request for a team March 4, 2024 10:54
@Jolg42

Jolg42 commented Mar 4, 2024

Copy link
Copy Markdown
Contributor

Before
https://github.com/prisma/prisma/actions/runs/8138532997/usage
Screenshot 2024-03-04 at 11 57 45

After
https://github.com/prisma/prisma/actions/runs/8138538197/usage?pr=22904
Screenshot 2024-03-04 at 11 57 34

millsp reacted with rocket emoji
All reactions
  • 🚀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Jolg42
Jolg42 approved these changes Mar 4, 2024
View reviewed changes
@Jolg42
Jolg42 merged commit 1b96064 into main Mar 4, 2024
@Jolg42
Jolg42 deleted the ci/use-macos-14 branch March 4, 2024 10:58
@adriencaccia adriencaccia mentioned this pull request May 3, 2024
chore/fix codpseed flamegraphs adriencaccia/prisma#3
Open
@wmadden-electric wmadden-electric mentioned this pull request Oct 9, 2026
fix(v7): repair CI on every v7 pull request, and update mariadb to 3.5.4 with its IPv6 parsing change #30668
Merged
wmadden pushed a commit that referenced this pull request Oct 9, 2026
@wmadden-electric @claude
fix(v7): repair CI on every v7 pull request, and update mariadb to 3.…
d329959
…5.4 with its IPv6 parsing change (#30668)

Every pull request to `v7` currently fails CI, whatever it changes. Here
is what [#30368](#30368), a one-line
client fix, gets today:

```
Lint             pnpm audit --prod  ->  7 vulnerabilities found (5 high, 2 moderate)
macOS (3 jobs)   brew install mysql ->  compiles MySQL 26.7.0 from source -> make: *** [all] Error 2
```

This PR makes `v7` CI pass again in three ways:

1. It updates the two vulnerable dependencies that have patched
releases: `mariadb` and `source-map-js`.
2. It tells `pnpm audit` to ignore two advisories, for `braces` and
`sprintf-js`. These have no patched release, and Prisma can't be
attacked through them.
3. It moves the macOS jobs from the deprecated `macos-14` runner to
`macos-latest`.

The `mariadb` update reaches users. `@prisma/adapter-mariadb` now
depends on `mariadb` 3.5.4 instead of 3.5.3, and it stops rewriting IPv6
hosts in connection strings, because 3.5.4 accepts them as written.
Without that second change, the update would break IPv6 connections.

## Why CI broke without a code change

`v7` last passed CI on 16 September. Nothing in the repository broke it.
Two things outside the repository changed after that date.

### New security advisories fail the audit step

The Lint job ends with `pnpm audit --prod`. That step fails when any
production dependency has a known advisory. Since 16 September,
advisories were published against four packages in our lockfile:

| Package | Reached through | Advisories | What this PR does |
| --- | --- | --- | --- |
| `mariadb` 3.5.3 | `@prisma/adapter-mariadb`, a direct dependency | 4
(3 high) | Bumps it to 3.5.4, a patch release with the fixes |
| `source-map-js` 1.2.1 | `@prisma/config` > `c12` > `magicast` | 1
(high) | Adds a pnpm override that forces at least 1.2.2 |
| `braces` 3.0.3 | `@prisma/client-generator-ts` > `fast-glob` >
`micromatch` |
[GHSA-vfj7-8cjw-p6xm](GHSA-vfj7-8cjw-p6xm)
(high) | Ignores it |
| `sprintf-js` 1.1.3 | `@prisma/adapter-mssql` > `mssql` > `tedious` |
[GHSA-hp3w-g68c-fv3c](GHSA-hp3w-g68c-fv3c)
(moderate) | Ignores it |

The first two have fixes, so we take them. The overrides follow the same
pattern as [#30314](#30314), the
previous audit fix on `v7`.

The last two can't be fixed by upgrading. Their advisories name 3.0.4
and 1.1.4 as the patched versions, but neither version exists on npm:
3.0.3 and 1.1.3 are the latest releases. Both advisories describe a
crash that happens only when an attacker controls the input string, and
in Prisma no attacker can:

- The generator calls `fast-glob`, which uses `braces`, only with
patterns built from the user's own output folder (`generateClient.ts`).
- `tedious`, the SQL Server driver, calls `sprintf` only with its own
fixed message templates, for debug output and error messages.

So `pnpm-workspace.yaml` now lists both advisory IDs under
`auditConfig.ignoreGhsas`, with this reason written next to them. Once
fixed releases exist, the ignores can go.

### Updating `mariadb` needs a change to the adapter

`mariadb` 3.5.3 parsed connection strings with a regular expression that
rejected the colons in a bracketed IPv6 host such as `[::1]`. So
`@prisma/adapter-mariadb` rewrote that host to a percent-encoded form,
which the old parser decoded back into `::1`
([#29026](#29026)):

```
mariadb://user:pass@[::1]:3306/db  ->  mariadb://user:pass@%3A%3A1:3306/db
```

`mariadb` 3.5.4 parses connection strings with the standard `URL` parser
instead, and it accepts `[::1]` as written. It no longer decodes the
host, so the rewritten string made the driver look up a host literally
named `%3A%3A1`. The adapter's IPv6 tests caught this. The adapter now
passes the bracketed host through unchanged, and the tests check that
the driver accepts it and connects to a server listening on `::1`. The
release notes for 3.5.4 don't mention this parser change. Its other
changes are security limits, such as the new `maxAllowedColumns` option,
and bug fixes.

### Homebrew dropped macOS 14

The cross-platform test jobs run on Windows and macOS, and on macOS they
install MySQL with `brew install mysql`. Homebrew no longer ships
prebuilt packages for macOS 14, so that command now compiles MySQL from
source, and the compile fails. GitHub has deprecated the `macos-14`
runner as well.

We pinned `macos-14` in
[#22904](#22904) in March 2024, when
it was the newest runner, and nobody moved the pin after that. This PR
switches those jobs, and `build-engine-branch.yml`, to `macos-latest`,
which is macOS 26 on Apple Silicon today. The same jobs already use
`windows-latest`, and one other macOS job in `test-template.yml` already
used `macos-latest`.

## How it was checked

- `pnpm audit --prod` exits 0 locally. The lockfile diff touches only
`mariadb`, `source-map-js` and `iconv-lite`, which `mariadb` 3.5.4
depends on.
- The `@prisma/adapter-mariadb` unit tests pass locally, including the
IPv6 test that connects to a server on `::1`.
- ESLint and Prettier pass on every changed file.
- The macOS change can only be checked by this PR's own CI run.

Agent: nestor-69

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jkomyno jkomyno Awaiting requested review from jkomyno jkomyno was automatically assigned from prisma/orm-ts
1 more reviewer
@Jolg42 Jolg42 Jolg42 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@millsp millsp

Labels

topic: tech debt Initiatives to improve the experience of working with the code base

Projects

None yet

Milestone

5.11.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@millsp @Jolg42
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.