Skip to content
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

Bring back trunk-ng into trunk #623

Merged
merged 163 commits into from
Dec 11, 2023
Merged

Conversation

ctron
Copy link
Collaborator

@ctron ctron commented Dec 6, 2023

This PR brings back the changes from trunk-ng into trunk.

There are a few non-technical changes in there too:

  • Drop the manual changelog for an auto-generated on using conventional commits
  • Drop the PR template (just let people bring what they think is best)
  • Drop the auto-close GitHub PR/issues bot (I think it's a bad idea to just close user contributed feedback due to the lack of activity from the project)
  • Drop the custom rustfmt file (stick to defaults)
  • Drop the blog (last updated 2021)

Also, those changes come in with all their commits, un-squashed. I know this is a lot of personal taste. However, I believe that having the full history of a PR makes some sense. Maybe ask on the PR to squash certain commits. But then again, let's make it easy for people to contribute.

ctron and others added 30 commits August 21, 2023 11:31
Ultimately, deeper investigation has revealed that std::fs::copy will
generate modification events on the source file (the file being copied)
on some platforms. This has proven to be a source of difficulty for the
FS watcher, and has lead to infinite build loops, despite the fact that
none of the files / directories being watched were actually changed.

Here we implement a post-build cooldown interval of 1s. This ensures
that in very fast builds, we do not end up receiving a modification
event due to std::fs::copy (from the copy source).

Moreover, any FS events which have accumulated during the 1s cooldown
will be purged. Altogether this will hopefully fully address the
recursive build issue, and will hopefully not disrupt the development
workflow.

Also, update deps, changelog and a few README items.
This should allow to work around issues on windows, where the FS events
don't get detected well.
@ctron ctron force-pushed the feature/back_to_trunk_1 branch 3 times, most recently from e8900e2 to a6c5b54 Compare December 6, 2023 07:48
@ctron ctron force-pushed the feature/back_to_trunk_1 branch from a6c5b54 to 522d138 Compare December 6, 2023 07:50
@ctron ctron marked this pull request as ready for review December 6, 2023 08:05
Copy link
Member

@thedodd thedodd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woot woot! Thanks boss, glad to see all of this progress made.

@ctron
Copy link
Collaborator Author

ctron commented Dec 6, 2023

If that's ok with you, I would like to try a release. If I'll mess it up, I'll owe you a few beers more 😉

@ctron
Copy link
Collaborator Author

ctron commented Dec 6, 2023

@thedodd It looks like I can't rebase this PR, but I definitely don't want to squash it either. Would you be ok with doing a one-time merge with this?

@thedodd
Copy link
Member

thedodd commented Dec 6, 2023

@ctron you should still be able to rebase it, but you will have to do it on the CLI, not in GH. Even if we enable merge commits, it will still requite the conflicts to be resolved.

Do you know the source of the conflicts? Different point in history where you branched off?

Also, why not squash? That will make the rebase MUCH easier.

@ctron
Copy link
Collaborator Author

ctron commented Dec 6, 2023

@ctron you should still be able to rebase it, but you will have to do it on the CLI, not in GH. Even if we enable merge commits, it will still requite the conflicts to be resolved.

No, when doing a merge commit, it won't require a linear history. That makes things a lot easier.

Do you know the source of the conflicts? Different point in history where you branched off?

Yes. There had been commits post my fork. Which are merged now too. But not in a linear history.

Also, why not squash? That will make the rebase MUCH easier.

Because that would erase the history of all committers having contributed to that.

So yes, I should be able to merge locally and then push the result. But I wanted to check with you first.

@ctron
Copy link
Collaborator Author

ctron commented Dec 7, 2023

So it looks like the master branch is protected in a way that I can't directly push merge commits.

@ctron ctron mentioned this pull request Dec 10, 2023
4 tasks
@thedodd
Copy link
Member

thedodd commented Dec 11, 2023

@ctron ok, I've disabled the linear history requirement on master. Looks like your PR can be merged straight away. I'll let you do the honors. Once I see this PR merged, then I'll press the button to move the repo over to the new org.

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.