From: "softworkz ." <softworkz-at-hotmail.com@ffmpeg.org> To: Kacper Michajlow <kasper93@gmail.com> Cc: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Subject: Re: [FFmpeg-devel] [PATCH 0/3] tests/fate: Improvements for running FATE on Windows/MSYS2 Date: Tue, 17 Jun 2025 13:49:42 +0000 Message-ID: <DM8P223MB036543389CC8CB98D4BBDC27BA73A@DM8P223MB0365.NAMP223.PROD.OUTLOOK.COM> (raw) In-Reply-To: <CABPLASQFXGE2Rt9T=aOJvwWvCS3R9wq96BtJotJZGC=sJhp9QQ@mail.gmail.com> > -----Original Message----- > From: Kacper Michajlow <kasper93@gmail.com> > Sent: Tuesday, June 17, 2025 3:18 PM > To: softworkz . <softworkz@hotmail.com> > Cc: FFmpeg development discussions and patches <ffmpeg- > devel@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH 0/3] tests/fate: Improvements for running > FATE on Windows/MSYS2 > > On Tue, 17 Jun 2025 at 03:46, softworkz . <softworkz@hotmail.com> wrote: > > > > > > > > > -----Original Message----- > > > From: Kacper Michajlow <kasper93@gmail.com> > > > Sent: Tuesday, June 17, 2025 3:00 AM > > > To: softworkz . <softworkz@hotmail.com> > > > Cc: FFmpeg development discussions and patches <ffmpeg- > > > devel@ffmpeg.org> > > > Subject: Re: [FFmpeg-devel] [PATCH 0/3] tests/fate: Improvements for > > > running FATE on Windows/MSYS2 > > > > > > On Tue, 17 Jun 2025 at 01:05, softworkz . <softworkz@hotmail.com> > wrote: > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Kacper Michajlow <kasper93@gmail.com> > > > > > Sent: Tuesday, June 17, 2025 12:44 AM > > > > > To: FFmpeg development discussions and patches <ffmpeg- > > > > > devel@ffmpeg.org> > > > > > Cc: softworkz <softworkz@hotmail.com> > > > > > Subject: Re: [FFmpeg-devel] [PATCH 0/3] tests/fate: Improvements > > > > > for running FATE on Windows/MSYS2 > > > > > > > > > > On Mon, 12 May 2025 at 12:00, ffmpegagent > > > > > <ffmpegagent@gmail.com> > > > > > wrote: > > > > > > > > > > > > When setting up the new Patchword builders I noticed some > > > > > > issues when running FATE tests on Windows. Initially I had > > > > > > them suppressed on the builders, but this patchset should finally fix > it. > > > > > > > > > > > > softworkz (3): > > > > > > tests/fate: Fix subtitle fate tests on Windows > > > > > > tests/source-check: Fix make inclusion-guard check > > > > > > EOL-agnostic > > > > > > > > > > I think ffmpeg repositories should always be checked out with LF > > > > > line endings, there is nothing that expects those sources to > > > > > have CRLF. If you like you can set attributes to all files to LF > > > > > (not only subs) > > > > > > > > FATE already fails when setting LF for all subtitle ref files. > > > > > > > > > > What do you mean? Everything is LF based. I don't see any failures. > > > > Hi Kasper, > > > > A common misconception is that autocrlf=off would mean that you are > > dealing just with LF line endings in Git - but that's not the case, > > even the opposite is true: Disabling autocrlf is what actually enables > > check-in of files with CRLF - often accidentally. But it's not always > > accidental. Some of the FATE reference files for subtitle tests > > actually _do_ have CRLF line endings. By specifying LF in > > .gitattributes, CRLF would get replaced by LF and the tests will fail. > > Setting LF in .gitattributes is something totally different from autocrlf=off. > > The latter means "do not change line endings back-and-forth when > > checking In and out", but what you set in .gitattributes trumps > > autocrlf - i.e. autocrlf doesn't act on files with a .gitattributes entry about > line endings. > > I know how autocrlf works. I only said that imposing default logic that > "Windows always must use CRLF" and git implicitly will break your committed > line endings by default was a short sighted design decision. I believe the original intention was simply to avoid that Windows users would make commits with CRLF. I see it having both advantages as well as disadvantages. I never had major trouble with it, but I've experienced trouble in several cases in the past, when Windows users had set autocrlf to off (different projects, not FFmpeg). > It's good to have options to do the conversion IF the user wants that or is > configured as needed for a certain repository/platform. Absolutely, yes! > > > The patch may look like as if I had forgotten some of the subtitle ref > > files, but no: I had to carefully choose the ones who need it and > > which must not be changed. > > Could you be more specific? Which ones? I think rcombs and astiob changed > all remaining CRLF sometime in last year or even earlier. I know, but that was about ASS primarily. Which ones? All the subtitle refs that I've not included in the patch in the .gitattributes files. You can easily try be adding the remaining ones in the same way and running FATE. > Either way, files are committed in the proper way in the repository, so just > make your git client not break that on checkout. It's not about myself. It's that autocrlf is on by default on Windows and we cannot change that. In this regard, I also do not accept the narrative that this would be an "improper" way. It is not - it is a common work pattern on Windows and nothing is wrong about it. It's working fine and only those few FATE tests are causing errors. It is in our best interest that people are running FATE before submitting patches and when FATE is failing already even without any changes, then it discourages people to even deal with FATE. The fix for this is easy and simple, that's why I don't think it makes sense to argue about what people should do and how they should work when the reality is different. Especially, when people are getting to the point when they see FATE failing, it's already too late because they already have their working setup. > > > It works fine as is, MSYS2 won't convert this because it's separated with |. > > > > The fix is only needed when you are running make fate interactively > > from a command line in an MSYS2 shell. > > Hmm, I see. Normally, I don't run FATE on MSYS2 like this myself. I came across that issue when preparing the CI builds where I tested the script commands locally. It's safe in a way that it doesn't affect any other environments. Thanks and best regards, sw _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
prev parent reply other threads:[~2025-06-17 13:49 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2025-05-12 9:59 ffmpegagent 2025-05-12 9:59 ` [FFmpeg-devel] [PATCH 1/3] tests/fate: Fix subtitle fate tests on Windows softworkz 2025-05-12 9:59 ` [FFmpeg-devel] [PATCH 2/3] tests/source-check: Fix make inclusion-guard check EOL-agnostic softworkz 2025-05-12 9:59 ` [FFmpeg-devel] [PATCH 3/3] tests/hevc: Fix concat input when running in MSYS2 shell softworkz 2025-05-12 16:53 ` Zhao Zhili 2025-05-12 17:04 ` softworkz . 2025-05-12 17:24 ` Zhao Zhili 2025-05-12 17:52 ` softworkz . 2025-05-13 14:23 ` [FFmpeg-devel] [PATCH v2 0/3] tests/fate: Improvements for running FATE on Windows/MSYS2 ffmpegagent 2025-05-13 14:23 ` [FFmpeg-devel] [PATCH v2 1/3] tests/fate: Fix subtitle fate tests on Windows softworkz 2025-05-13 14:23 ` [FFmpeg-devel] [PATCH v2 2/3] tests/source-check: Fix make inclusion-guard check EOL-agnostic softworkz 2025-05-22 10:41 ` Andreas Rheinhardt 2025-05-22 11:12 ` softworkz . 2025-05-22 11:20 ` softworkz . 2025-05-13 14:23 ` [FFmpeg-devel] [PATCH v2 3/3] tests/hevc: Fix concat input when running in MSYS2 shell softworkz 2025-05-22 2:55 ` [FFmpeg-devel] [PATCH v2 0/3] tests/fate: Improvements for running FATE on Windows/MSYS2 softworkz . 2025-06-16 22:43 ` [FFmpeg-devel] [PATCH " Kacper Michajlow 2025-06-16 23:05 ` softworkz . 2025-06-17 0:59 ` Kacper Michajlow 2025-06-17 1:46 ` softworkz . 2025-06-17 13:18 ` Kacper Michajlow 2025-06-17 13:49 ` softworkz . [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=DM8P223MB036543389CC8CB98D4BBDC27BA73A@DM8P223MB0365.NAMP223.PROD.OUTLOOK.COM \ --to=softworkz-at-hotmail.com@ffmpeg.org \ --cc=ffmpeg-devel@ffmpeg.org \ --cc=kasper93@gmail.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git