-
Notifications
You must be signed in to change notification settings - Fork 2
chore: SW-1779 migrate Zephyr scripts to internal ts-lib-zephyr-nodejs #161
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
Open
owilliams-tetrascience
wants to merge
6
commits into
main
Choose a base branch
from
claude/gifted-babbage-b7b42e
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
6e665a9
chore: migrate zephyr scripts to internal zephyr library
owilliams-tetrascience 80f7716
fix: guard zephyr report job to same-repo triggering runs
owilliams-tetrascience 6df9f49
fix: address review feedback on zephyr migration
owilliams-tetrascience 6a24063
fix: load ts-lib-zephyr-nodejs via runtime dynamic import
owilliams-tetrascience 817a82c
fix: hardcode JFrog read registry URL in zephyr workflows
owilliams-tetrascience 0f230b6
chore: use shared install-jfrog-npm-package action in zephyr workflows
owilliams-tetrascience File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Were there blockers to publishing ts-lib-zephyr-nodejs publicly? It seems like all of this wiring + the other PR would be unnecessary if that is possible, and less code is almost always better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question.
ts-lib-zephyr-nodejsis intentionally private: it's an internal test-infra lib that hardcodes TetraScience Zephyr/JFrog specifics and has no external audience, and its own repo (license: UNLICENSED, nopublishConfig) publishes only to JFrog — so publishing it to public npm would be a decision (and maintenance/security commitment) owned by that repo's team, out of scope for this migration. The wiring here is the standard pattern other TS repos already use to consume it (data-app repos, ts-service-web), so #161 stays consistent with them rather than forking a new distribution model. If the zephyr-lib team does decide to publish it publicly later, this collapses to a normalpackage.jsondep and we can drop the JFrog step + #29 — worth raising with them, but not a blocker for this PR.🤖 Addressed by Claude Code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Digging into this a bit — I don't think
ts-lib-zephyr-nodejsis actually intentionally private. It'sprivatebecause that's the org default, but there's no deliberate decision behind it:src/has zero TetraScience/JFrog-specific code (the only TS references are in the README/CI/CODEOWNERS), and it's a generic Zephyr Scale Cloud reporter/provisioner — clear external audience. TheUNLICENSED+ JFrog-only publishing are cookiecutter leftovers, not a distribution choice.And it's our team's library, so this is our call to make. Since we're now consuming it from a public repo, I'd rather publish it to public npm than carry the JFrog leaf-tarball wiring here — that also lets us drop this step and
ts-ci-cd-lib#29entirely (the "less code" win).Could you fold that into the integration work? It's roughly:
license: UNLICENSED→Apache-2.0+ committedLICENSEfile (matches@tetrascience-npm/tetrascience-react-ui)@tetrascience-npm/ts-lib-zephyr-nodejs+publishConfig: { access: "public", registry: "https://registry.npmjs.org" }publish.ymlat public npm (mirror thedata-apps-clienttrusted-publishing setup; first version needs a manual bootstrap)npmScopesblock to.yarnrc.ymlto avoid the JFrog__archiveUrllockfile pinningThen #161 collapses to a normal
package.jsondep.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair — I overstated "intentionally private"; you're right that it's org-default + cookiecutter leftovers, the
src/is generic, and it's your team's call. Public npm is the cleaner end state and collapses #161 to a normal dep + drops #29. 👍One thing to sequence so we don't fragment: a few repos already depend on the unscoped
ts-lib-zephyr-nodejsfrom JFrog (ts-service-web, a couple of data-app repos, ts-desktop-apps). Renaming to@tetrascience-npm/ts-lib-zephyr-nodejsmeans those keep resolving the old name from JFrog until they migrate — so it's a coordinated cutover, and the library has to be published publicly first (the first-version manual bootstrap) before #161 can depend on it.Confirming scope/ordering with @OWilliams now. If we green-light it, the plan is: (1) library PR — Apache-2.0 + LICENSE, scope rename,
publishConfigpublic,publish.yml→ public trusted-publishing (mirror data-apps-client) + bootstrap v-first; (2) rework #161 to a plainpackage.jsondep +.yarnrc.ymlnpmScopes, reverting the JFrog step and the dynamic-import shim; (3) close #29. I'll hold this thread open until we lock the direction.🤖 Addressed by Claude Code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Library PR is up: tetrascience/ts-lib-zephyr-nodejs#14 — renames to
@tetrascience-npm/ts-lib-zephyr-nodejs, Apache-2.0 + LICENSE,publishConfigpublic, andpublish.yml→ public npm via OIDC trusted publishing (mirrors this repo'spublish-public.yml).yarn check+ all 368 tests pass.Sequencing from here: (1) merge #14 + the one-time bootstrap (register the repo as a trusted publisher on npmjs, ensure a PROD env, mint the first public version — called out in that PR); (2) once a version is live on public npm, I'll flip this PR to a plain
package.jsondep (reverting the JFrog step + dynamic-import shim) and close ts-ci-cd-lib#29. Keeping #161 on JFrog until then so it stays green/mergeable if needed.🤖 Addressed by Claude Code