Skip to content

Conversation

@MichaelChirico
Copy link
Contributor

As discussed internally, there might be some rare cases where jj tries to update to an error lacking permissions for the current user at the current time.

@MichaelChirico MichaelChirico requested a review from a team as a code owner August 19, 2025 16:51
@MichaelChirico
Copy link
Contributor Author

Unsure what to do with this:

TypeError: Cannot read properties of undefined (reading 'state')
Error: Unhandled error: TypeError: Cannot read properties of undefined (reading 'state')
    at eval (eval at callAsyncFunction (/home/runner/work/_actions/actions/github-script/v7.0.1/dist/index.js:35424:16), <anonymous>:33:20)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async main (/home/runner/work/_actions/actions/github-script/v7.0.1/dist/index.js:35522:20)

@martinvonz
Copy link
Member

Unsure what to do with this:

I also have no idea what that is about. Maybe it's something temporary. Try rerunning the check if you haven't already.

@MichaelChirico
Copy link
Contributor Author

Hm, possibly it's an action that can't work on commit to forks? I've encountered that elsewhere...

@martinvonz
Copy link
Member

Hm, possibly it's an action that can't work on commit to forks? I've encountered that elsewhere...

Oh, good point. @icorbrey: I think this is a happening in the check you added. Do you have time to look into it?

@MichaelChirico
Copy link
Contributor Author

MichaelChirico commented Aug 19, 2025

No JS expert (or even novice, really) but with Gemini assist + poring over https://github.com/jj-vcs/jj/blob/main/.github/workflows/pr.yml I can reason that:

  • I have not correctly formatted my commit descriptions (oops)
  • However there are no githubActionsBot reviews, therefore latestReview is empty / doesn't have a .state attribute

Thus we reach here and see the error:

if (latestReview.state !== 'CHANGES_REQUESTED') {

I think I can reverse engineer how to fix it in this PR by getting out of the badCommits.length>0 branch.

I can have a go at fixing the GHA in a separate PR.

@MichaelChirico MichaelChirico force-pushed the patch-1 branch 2 times, most recently from 953d975 to cb4accd Compare August 19, 2025 17:20
@MichaelChirico
Copy link
Contributor Author

OK, that item is ✅ now

@icorbrey
Copy link
Contributor

Huh, didn't run into that with my testing. Sorry about that!

@martinvonz
Copy link
Member

Looks like we forgot to review this. It looks good to me but I'm not allowed to approve. Can someone else (review and) approve it?

@MichaelChirico
Copy link
Contributor Author

help -- I'm in git hell. I don't know how to handle the merge commit that's here now.

@PhilipMetzger
Copy link
Contributor

I know this video has been helpful to others struggling with Git: https://youtu.be/ElRzTuYln0M otherwise consider using jj on Git instead of Piper for this :-).

@MichaelChirico MichaelChirico force-pushed the patch-1 branch 4 times, most recently from aa2cbec to 0e9f5d1 Compare September 23, 2025 19:11
@MichaelChirico
Copy link
Contributor Author

Thanks for the video -- TIL about fixup, that's nice.

Unfortunately it didn't really help in my case, I think the issue was ultimately that I'd forgotten to pull the merge commit I made in the browser from my branch (argh) so it wasn't showing up locally.

I then managed to bork things even more thoroughly a few times -- the joys of git :)

I think it's finally fixed 🤞

@MichaelChirico
Copy link
Contributor Author

Hi all, friendly ping :)

@martinvonz
Copy link
Member

The PR is already approved so you should be able to merge it. Or is it still blocked by failing CI? You can try re-running the Windows tests.

@MichaelChirico
Copy link
Contributor Author

Oh, thanks. I saw the Approval but it was before two more reviewer comments, I wasn't sure whether to wait for follow-up from those reviewers before shipping.

@MichaelChirico MichaelChirico added this pull request to the merge queue Oct 10, 2025
Merged via the queue into jj-vcs:main with commit 2b261a2 Oct 10, 2025
28 of 29 checks passed
@MichaelChirico MichaelChirico deleted the patch-1 branch October 10, 2025 22:15
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.

5 participants