Skip to content

Create PR from fork - #1

Draft
webwarrior-ws wants to merge 3 commits into
developfrom
create-pr-from-fork
Draft

webwarrior-ws wants to merge 3 commits into
developfrom
create-pr-from-fork

Conversation

@webwarrior-ws

Copy link
Copy Markdown
Collaborator

If there are no permissions to push to the repository in question.

@webwarrior-ws
webwarrior-ws marked this pull request as draft September 9, 2026 13:09
Comment thread packages/pi-orchestrator/src/pi/prompt.ts Outdated
Comment thread packages/pi-orchestrator/src/pi/prompt.ts Outdated
Comment thread action.yml
@knocte knocte changed the title Create pr from fork Create PR from fork Sep 9, 2026
@knocte

knocte commented Sep 9, 2026

Copy link
Copy Markdown

CI is broken

@knocte

knocte commented Sep 10, 2026

Copy link
Copy Markdown

CI is still broken. @webwarrior-ws do you have github email notifications about this enabled?

@webwarrior-ws

Copy link
Copy Markdown
Collaborator Author

CI is still broken. @webwarrior-ws do you have github email notifications about this enabled?

I've disabled notifications for CI failures because it's just noise in most cases.

But I've seen that CI is still broken. It fails on "Upload coverage to Codecov". Perhaps authentication issue? I don't know what this Codecov service is.

@knocte

knocte commented Sep 10, 2026

Copy link
Copy Markdown

ok I thought it was still complaining about prettier format

@knocte

knocte commented Sep 10, 2026

Copy link
Copy Markdown

But I've seen that CI is still broken. It fails on "Upload coverage to Codecov".

Let's create a PR upstream that changes that step to not be executed in forks.

@knocte

knocte commented Sep 10, 2026

Copy link
Copy Markdown

ok I thought it was still complaining about prettier format

So can conventions' PR be merged now?

@webwarrior-ws

Copy link
Copy Markdown
Collaborator Author

ok I thought it was still complaining about prettier format

So can conventions' PR be merged now?

Yes

@knocte

knocte commented Sep 10, 2026

Copy link
Copy Markdown

Ok done, but please rebase before testing

@knocte

knocte commented Sep 10, 2026

Copy link
Copy Markdown

It seems the experiment worked, so let's squash these commits and after that include the commit from PR2 as 1st commit of this one, to get green CI.

@webwarrior-ws

Copy link
Copy Markdown
Collaborator Author

It seems the experiment worked, so let's squash these commits and after that include the commit from PR2 as 1st commit of this one, to get green CI.

Done.

Comment thread packages/pi-orchestrator/src/pi/prompt.ts Outdated
@webwarrior-ws
webwarrior-ws force-pushed the create-pr-from-fork branch 2 times, most recently from a8c21b8 to 52bf206 Compare September 10, 2026 10:24
@knocte

knocte commented Sep 10, 2026

Copy link
Copy Markdown

This mirrors how human contributors work.

Let's add to this: "(especially in an environment where the repo to work with is public/open but direct commit access is not, while PRs are accepted from any github user account, regardless of the permissions of the latter)".

After that, you can propose new PR upstream, with that single commit (not 2 commits).

@knocte

knocte commented Sep 10, 2026

Copy link
Copy Markdown

@webwarrior-ws Given that the maintainer merged already your first PR, you can actually remove that commit from here, rebase, and then propose the same commit that ends up here (same commit hash) in the new PR for upstream. Let's do this before or at EOD time, not Monday. Cheers

@knocte

knocte commented Sep 17, 2026

Copy link
Copy Markdown

@webwarrior-ws Given that the maintainer merged already your first PR, you can actually remove that commit from here,

Why was this not done? I still see the commit "GithubCI: don't run "Upload coverage to Codecov" step in forks" here

If there are insufficient rights to push to the repository,
agent will open a PR from a fork. This mirrors how human
contributors work (especially in an environment where the repo
to work with is public/open but direct commit access is not,
while PRs are accepted from any github user account, regardless
of the permissions of the latter).
@knocte

knocte commented Sep 17, 2026

Copy link
Copy Markdown

Missing commit that updates dist/ ?

@github-actions

github-actions Bot commented Sep 17, 2026

Copy link
Copy Markdown

Fallow combined report

Quality gate passed

No findings for this pull request.

Generated by fallow.

@knocte

knocte commented Sep 17, 2026

Copy link
Copy Markdown

Upstream's commits are never titled "Build bundle" for dist/ updates.

And added tests for new functionality.
@webwarrior-ws

Copy link
Copy Markdown
Collaborator Author

Should I update shaftoe#411 to this PR's branch?

@knocte

knocte commented Sep 17, 2026

Copy link
Copy Markdown

What do you think I'm going to reply to that?

@webwarrior-ws

Copy link
Copy Markdown
Collaborator Author

What do you think I'm going to reply to that?

If I had to guess, I'd guess "yes". But I'd rather get an actual answer.

@knocte

knocte commented Sep 17, 2026

Copy link
Copy Markdown

You're wrong, I would reply: did you test this? And of course what I would hoping is that with this question you understand that I'm asking if you tested all scenarios: when it should create a fork when fork doesn't exist, when it should not create a fork because it already exists, and when it should not create a fork because pushing directly works.

@webwarrior-ws

Copy link
Copy Markdown
Collaborator Author

You're wrong, I would reply: did you test this? And of course what I would hoping is that with this question you understand that I'm asking if you tested all scenarios: when it should create a fork when fork doesn't exist, when it should not create a fork because it already exists, and when it should not create a fork because pushing directly works.

The second scenario was already tested.

For the first one, I can ask pi to create a PR in repo where nodefect doesn't have a fork.

But the third one I can't really test. Not for a situation where it's not nodefect's own repo.

@knocte

knocte commented Sep 17, 2026

Copy link
Copy Markdown

For the first one, I can ask pi to create a PR in repo where nodefect doesn't have a fork.

Why did you start testing this already? Please stop making me hand-hold you all the time, I told you you're a software developer, not a programmer.

But the third one I can't really test. Not for a situation where it's not nodefect's own repo.

Bullshit excuses, you can test it perfectly. If you need X, Y, Z in order to do it, you can ask me, instead of saying that you can't.

@knocte

knocte commented Sep 17, 2026

Copy link
Copy Markdown

BTW I REMIND YOU THAT CONVENTIONS IS POINTING AT PR3 NOW, NOT THIS PR. THEREFORE ANY TESTING YOU'RE DOING IS NOT AGAINST THIS CODE. (AND I CHECKED THAT BOTH BRANCHES DIFFER BEFORE POSTING THIS COMMENT.)

@webwarrior-ws

Copy link
Copy Markdown
Collaborator Author

BTW I REMIND YOU THAT CONVENTIONS IS POINTING AT PR3 NOW, NOT THIS PR. THEREFORE ANY TESTING YOU'RE DOING IS NOT AGAINST THIS CODE. (AND I CHECKED THAT BOTH BRANCHES DIFFER BEFORE POSTING THIS COMMENT.)

They differ only in some debug output redirection.

@knocte

knocte commented Sep 17, 2026

Copy link
Copy Markdown

I don't care? I only care about commit hashes. If commit hashes are not the same, you're not testing the same thing. And same argument I will have whenever you intend to push this work to upstream PR later: I will compare commit hashes, and if they are not the same, I will not consider the work done.

@knocte

knocte commented Sep 17, 2026

Copy link
Copy Markdown

BTW upstream's PR's commit hash is f0d2, why the hell do we have a different commit hash here? fix that first before testing anything!!!!!

@webwarrior-ws

webwarrior-ws commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator Author

BTW upstream's PR's commit hash is f0d2, why the hell do we have a different commit hash here? fix that first before testing anything!!!!!

Because these PRs are from different branches. I asked earlier if I should update upstream PR to this and you said to test first.

@knocte

knocte commented Sep 17, 2026

Copy link
Copy Markdown

I'M TALKING ABOUT THE 1ST COMMIT OF THIS PR!!!! NOT THE REST!!!!

@knocte

knocte commented Sep 17, 2026

Copy link
Copy Markdown

I KNOW THAT THIS PR HAS MORE COMMITS THAN UPSTREAM PR, I KNOW HOW TO COUNT!!!

@webwarrior-ws

Copy link
Copy Markdown
Collaborator Author

This PR was rebased. The upstream PR wasn't.

@knocte

knocte commented Sep 17, 2026

Copy link
Copy Markdown

YOU CREATED THE UPSTREAM PR AFTER YOUR 1ST PR WAS MERGED!!! THEREFORE THERE WAS NO NEED TO REBASE THIS

@knocte

knocte commented Sep 17, 2026

Copy link
Copy Markdown

FFS! even tho you created the 2nd upstream PR after your 1st was merged, you didn't rebase it before creating it!!!

@webwarrior-ws

Copy link
Copy Markdown
Collaborator Author

@webwarrior-ws Given that the maintainer merged already your first PR, you can actually remove that commit from here,

Why was this not done? I still see the commit "GithubCI: don't run "Upload coverage to Codecov" step in forks" here

YOU CREATED THE UPSTREAM PR AFTER YOUR 1ST PR WAS MERGED!!! THEREFORE THERE WAS NO NEED TO REBASE THIS

I rebased to get rid of "GithubCI: don't run "Upload coverage to Codecov" step in forks" commit.

@webwarrior-ws

Copy link
Copy Markdown
Collaborator Author

FFS! even tho you created the 2nd upstream PR after your 1st was merged, you didn't rebase it before creating it!!!

There was no need to.

@knocte

knocte commented Sep 17, 2026

Copy link
Copy Markdown

I rebased to get rid of "GithubCI: don't run "Upload coverage to Codecov" step in forks" commit.

YOU SHOULD HAVE REBASED BEFORE CREATING THE 2ND UPSTREAM PR FFS! THIS WAY YOU WOULDNT HAVE NEEDED TO REBASE THIS REPO!!!!!

@knocte

knocte commented Sep 17, 2026

Copy link
Copy Markdown

Sighhhhhhhhhhhh, so now we need to force-push that upstream PR in order to update it, FFS

@knocte

knocte commented Sep 17, 2026

Copy link
Copy Markdown

Sighhhhhhhhhhhh, so now we need to force-push that upstream PR in order to update it, FFS

You're allowed to do the above, now that I realise that there's no other way. BUT DO NOT UPDATE UPSTREAM PR UNTIL YOU HAVE TESTED ALL 3 SCENARIOS!!!!! AND I WANT ALL COMMIT HASHES TO MATCH!!!!

@webwarrior-ws

Copy link
Copy Markdown
Collaborator Author

I tried to test the first scenario: tarsgate/conventions#369

And it failed, but not because there's a bug in tools, but because the agent tried to open a PR against skynot from conventions repo.

So I don't know what to make of it.

@knocte

knocte commented Sep 17, 2026

Copy link
Copy Markdown

So I don't know what to make of it.

What happens there is that you're not testing what I told you to test, you're testing a 4th scenario that we didn't talk about: when bot needs to create a PR on a repo that is different than where the workflow is running (and by different I mean completely different: we're not talking about a fork-or-not-fork difference, it's not conventions!). YOU HAVE TO TEST THOSE 3 SCENARIOS WITH THE CONVENTIONS REPO BECAUSE IT IS IN THE CONVENTIONS REPO WHERE THE BOT'S WORKFLOW IS!!!!

@webwarrior-ws

Copy link
Copy Markdown
Collaborator Author

Then I need:

  1. https://github.com/nodefect/conventions fork to be deleted for testing scenario 1
  2. nodefect given push permission to https://github.com/tarsgate/conventions repo for testing scenario 3

@knocte

knocte commented Sep 17, 2026

Copy link
Copy Markdown

Then I need:

Those things are better that you ask me in the channel so that I can do FASTER than acting on an email.

@knocte

knocte commented Sep 17, 2026

Copy link
Copy Markdown

https://github.com/nodefect/conventions fork to be deleted for testing scenario 1

Better to test scenario 2 before you ask me for that, no? This way you don't need to wait for me and can start working already.

@webwarrior-ws

Copy link
Copy Markdown
Collaborator Author

https://github.com/nodefect/conventions fork to be deleted for testing scenario 1

Better to test scenario 2 before you ask me for that, no? This way you don't need to wait for me and can start working already.

It was already tested. Or do you insist it to be re-tested with this particular branch?

@webwarrior-ws

Copy link
Copy Markdown
Collaborator Author

Testing scenario 2: tarsgate/conventions#370

@knocte

knocte commented Sep 17, 2026

Copy link
Copy Markdown

Or do you insist it to be re-tested with this particular branch?

COMMIT HASHES, DO THEY MATCH??? DONT TALK TO ME ABOUT BRANCHES!!!!!

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