| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…ets try to retrieve commits that added files
🦋 Changeset detectedLatest commit: 8ac0acd The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Sorry, something went wrong.
|
I will address the failing tests later - I don't think this should block the potential PR approval though (unless you think otherwise). |
Sorry, something went wrong.
There was a problem hiding this comment.
Could you add the command that was run to the error that is thrown?
Sorry, something went wrong.
We've explicitly intended to support running Changesets without git and the tests failing seem like they would break that? |
Sorry, something went wrong.
Sure thing.
That's interesting - because the original report was stating that the infinite loop has been caused by the lack of git in the container but that would mean that our tests would not be able to complete before this change here. So there has to be some additional thing about the setup of the reporter. Gonna try to investigate this later. |
Sorry, something went wrong.
Sorry, something went wrong.
I ran into this infinite loop with no error printed in a GitHub Workflow when I ran changeset version in a shallow checkout without git credentials: on:
workflow_dispatch:
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
with:
# don’t save GITHUB_TOKEN to .git/config; use credential helper instead
# because we don't want postinstall scripts
# to have access to write credentials
persist-credentials: false
- name: Install node
uses: actions/setup-node@v4
- name: configure git to use $GIT_PASSWORD for github credential
shell: bash
run: |
set -eux
git config --global credential.https://github.com.helper '!f(){ test "$1" = get && printf "username=x-access-token\npassword=%s\n" "$GIT_PASSWORD"; }; f'
- run: npm ci --ignore-scripts
# - run: npm reinstall dependencies with postinstall scripts
- run: npx changeset version
env:
# I didn’t realize that I need this:
# GIT_PASSWORD: ${{ github.token }}
Steps to reproduce locally: First, do a shallow clone git clone --depth=1 --branch=<branch> https://github.com/<org>/<repo>.git Then, remove github credentials
Then run changeset version npm ci --ignore-scripts npx changeset version |
Sorry, something went wrong.
Codecov Report❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.
@@ Coverage Diff @@
## main #584 +/- ##
==========================================
- Coverage 85.51% 85.49% -0.03%
==========================================
Files 70 70
Lines 2548 2550 +2
Branches 686 688 +2
==========================================
+ Hits 2179 2180 +1
- Misses 338 339 +1
Partials 31 31 ☔ View full report in Codecov by Harness.
|
Sorry, something went wrong.
I believe #1045 may be the solution to the core problem |
Sorry, something went wrong.
There was a problem hiding this comment.
I went ahead and revert some non-0 handling since it's impossible for them to return non-0. @Andarist can you check the code again?
Honestly, not really happy with the git functions, some doesn't error and returns a boolean, some throws an error, some does a console.log. Argument format is also a bit sporadic. But I don't really want to change those for now.
Sorry, something went wrong.
|
I agree this package isn't particularly consistent - it woul be nice to clean it up some time later. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This addresses the direct problem in #571 . We need to investigate the issue more to address the core of the problem though.
fix #571