Skip to content

Release 3.4.0 #8092

Closed
Closed

Description

@zanchey

Tracking issue for 3.4.0.

It was definitely easier to get 3.3.0 out the door with better changelog hygiene during the release, and a shorter release cycle. Let's aim to do that again.

Activity

  1. self-assigned this
    on Jun 29, 2021
  2. added this to the fish 3.4.0 milestone on Jun 29, 2021
  3. faho commented on Oct 22, 2021

    @faho
    Member

    There is one more issue open in the 3.4.0 milestone, and it's #8376, which is entirely non-critical.

    As far as I'm concerned, the release is good to go whenever!

  4. IlanCosman commented on Dec 9, 2021

    @IlanCosman
    Contributor

    Any way I/others can help out with this? Idk, like reviewing the commits to see if we've missed anything in the changelog?

    I'll admit I started using features from 3.4 in the development branch for my project, so I'm extra eager to see 3.4 released, so I can release as well 😂 T'would be a lovely holiday present ❄️😛

  5. zanchey commented on Dec 9, 2021

    @zanchey
    MemberAuthor

    Doing the washing up at my place would help a lot, but it's pretty hard to get to our part of the world at present.

    In lieu of that, changelog work is the only blocker. I'll commit the list of issues/changes that don't need to be in there, and then you can use the same commands I do to see what is missing:

    for issue in (cat (gh issue list --state closed --milestone "fish 3.4.0" -L 500 | psub) (gh pr list --state all --search "milestone:\"fish 3.4.0\"" -L 500 | psub) | sort -n | cut -f 1) 
        egrep --quiet '\W'$issue CHANGELOG.rst; or echo https://github.com/fish-shell/fish-shell/issues/$issue
    end

    If you think an issue can be ignored (eg it only touches the docs/build infrastructure, refactor, cleanup, no behaviour change) you can drop a note here. If you think you can summarise it nicely, either do so in the issue or here.

    That would be great.

  6. zanchey commented on Dec 9, 2021

    @zanchey
    MemberAuthor

    I'm seeing a lot of test failures on Cygwin, if anyone wants to try the reproduce those.

  7. floam commented on Dec 9, 2021

    @floam
    Member

    How do I even test that?

  8. zanchey commented on Dec 9, 2021

    @zanchey
    MemberAuthor

    You'd need a Windows installation and a Cygwin installation on top.

  9. added a commit that references this issue on Dec 15, 2021
  10. zanchey commented on Dec 15, 2021

    @zanchey
    MemberAuthor

    @andrew-schulman might be able to test the latest master on Cygwin for us. I have a very old installation on an even older version of Windows.

  11. andrew-schulman commented on Dec 15, 2021

    @andrew-schulman
    Contributor

    Yes, I also see test failures in Cygwin x86-64, with the current master (4389658):

    The following tests FAILED:
         34 - expand (Failed)
         60 - autosuggest_suggest_special (Failed)
         64 - history_races (Failed)
         66 - string (Failed)
         92 - check-all-fish-files.fish (Failed)
         96 - colon-delimited-var.fish (Failed)
        106 - deep-cmdsub.fish (Failed)
        145 - jobs.fish (Failed)
        148 - locale-numeric.fish (Failed)
        169 - set.fish (Failed)
        180 - string.fish (Failed)
        182 - symlinks-not-overwritten.fish (Failed)
        185 - threads.fish (Failed)
    

    That seems bad, but I couldn't trigger any problems in a few minutes of testing. I went back and checked the build of 3.3.1 - it also failed the tests, but at a much earlier stage:

    [5/8] cd /home/x/dev/cygwin/fish/fish-3.3.1-1.x86_64/build && env XDG_DATA_DIRS= XDG_DATA_HOME=/home/x/dev/cygwin/fish/fish-3.3.1-1.x86_64/build/test/xdg_data XDG_CONFIG_HOME=/home/x/dev/cygwin/fish/fish-3.3.1-1.x86_64/build/test/xdg_config XDG_RUNTIME_DIR=/home/x/dev/cygwin/fish/fish-3.3.1-1.x86_64/build/test/xdg_runtime ./fish_tests
    0 / 5...done (2)
    1 / 5...done (21)
    2 / 5...done (401)
    3 / 5...done (8001)
    4 / 5...done (160001)
    FAILED: CMakeFiles/serial_test_low_level
    

    So that doesn't help much. 3.3.1 has been running without problems for months. Thoughts?

  12. faho commented on Dec 16, 2021

    @faho
    Member

    Yes, I also see test failures in Cygwin x86-64, with the current master (4389658):

    @andrew-schulman Do you have the actual error messages? If it's too long for here you can upload it as a gist.

  13. faho commented on Dec 16, 2021

    @faho
    Member

    Okay, let me go through one by one:

    line 3655: complete() for cd returned the wrong expected string for command cd test/autosuggest_test/3
      actual: foo/bar/
    expected: foo\bar/
    

    This is windows shenanigans, it seems we don't unixize the path here.

    
    Testing file checks/colon-delimited-var.fish ... �[31mFailure�[0m:
    
      The CHECK on line 8 wants:
        �[1ma:.:b�[0m
    
      but there was no remaining output to match.
    

    This test seems entirely non-functional. Is env just completely broken?

    
    Testing history race conditions
    �[31mError: Item dropped from history: 1 235�[0m
    �[31mError: Item dropped from history: 1 234�[0m
    �[31mError: Item dropped from history: 1 233�[0m
    �[31mError: Item dropped from history: 1 209�[0m
    �[31mError: Item dropped from history: 1 208�[0m
    �[31mError: Item dropped from history: 1 183�[0m
    �[31mError: Item dropped from history: 1 177�[0m
    �[31mError: Item dropped from history: 1 176�[0m
    �[31mError: Item dropped from history: 1 175�[0m
    �[31mError: Item dropped from history: 1 174�[0m
    

    This could be a race (the test is a bit flaky, especially on underpowered machines like public CI uses), or something isn't saving as it should.

    Testing file checks/deep-cmdsub.fish ... �[31mFailure�[0m:
    
      There were no remaining checks left to match stderr:1:
        �[1mselect: Bad file descriptor�[0m
    
      Context:
        �[31mselect: Bad file descriptor�[0m <= no more checks
        �[31mselect: Bad file descriptor�[0m
        �[31mselect: Bad address�[0m
        �[31mselect: Bad address�[0m
        �[31mselect: Bad address�[0m
        �[31mselect: Bad address�[0m
    

    Well, that's lovely - it seems select returns an error we aren't expecting. Same thing for threads.fish

    
    Testing file checks/locale-numeric.fish ... �[31mFailure�[0m:
    
      There were no remaining checks left to match stderr:1:
        �[1mInteger 42 in \'42.5\' followed by non-digit�[0m
    
      Context:
        �[31mInteger 42 in \'42.5\' followed by non-digit�[0m <= no more checks
        �[31mchecks/locale-numeric.fish (line 36): �[0m
        �[31m    test 42.5 -gt 37.2�[0m
        �[31m    ^�[0m
    

    We do setlocale(LC_NUMERIC, "C") to fix our locale as using "." as the decimal separator, and that doesn't take.

    According to https://www.cygwin.com/cygwin-ug-net/setup-locale.html:

    You can set all of them but Cygwin itself only honors the variables LC_ALL, LC_CTYPE, and LANG, in this order

    That's broken.

    So you'll have to find a patch, most likely replacing all uses of wcstod that use a C locale (i.e. not the one in builtin printf) with wcstod_l and provide a C locale.

    Testing file checks/jobs.fish ... �[31mFailure�[0m:
    
      The CHECKERR on line 43 wants:
        �[1mbg: invalid option -23�[0m
    
      which failed to match line stderr:1:
        �[1mps: unknown option -- o�[0m
    
      Context:
        �[31mps: unknown option -- o�[0m <= no check matches
        �[31mTry `ps --help\' for more information.�[0m <= no check matches
    

    incompatibility in what ps accepts, should be possible to work around.

    Testing file checks/string.fish ... �[31mFailure�[0m:
    
      The CHECK on line 61 wants:
        �[1m..🐟�[0m
    
      which failed to match line stdout:22:
        �[1m🐟�[0m
    
      additional output on stderr:1:15:
        �[1mstring pad: Padding should be a character '🐟'
    

    wcslen or the conversion to wchar_t is broken.

    
    ----------------------------------------------------------
    Testing file checks/symlinks-not-overwritten.fish ... �[31mFailure�[0m:
    
      The CHECK on line 23 wants:
        �[1mfish_variables is still a symlink�[0m
    
      which failed to match line stdout:1:
        �[1mfish_variables was never written�[0m
    
      Context:
        �[31mfish_variables was never written�[0m <= does not match CHECK '�[34mfish_variables is still a symlink�[0m' on line 23
    

    Possibly incompatibility in cmp, or universal variables are broken (but considering other tests seem to work that appears unlikely?).

    
    Testing file checks/abbr.fish ... �[31mFailure�[0m:
    
      The CHECKERR on line 47 wants:
        �[1mabbr --add: Abbreviation \'a b c\' cannot have spaces in the word�[0m
    
      which failed to match line stderr:1:
        �[1mwarning: Locking the universal var file took too long (0.373 seconds).�[0m
    
      Context:
        �[31mwarning: Locking the universal var file took too long (0.373 seconds).�[0m <= no check matches
        �[1mabbr --add: Abbreviation \'a b c\' cannot have spaces in the word�[0m
    

    System is slow in locking, which leads to a spurious warning. The actual test seems to work. This warning appears in a few other places as well, we might want to relax or remove it.

    The pexpect tests were skipped because pexpect wasn't installed. I'm not sure how much there is of value, it might test console interactions, but I have no idea how well pexpect works on cygwin to begin with.

    
    Testing file checks/check-all-fish-files.fish ... �[31mFailure�[0m:
    
      There were no remaining checks left to match stderr:1:
        �[1m~/home/ASchulma/dev/cygwin/fish/fish-3.4.0-1.x86_64/src/fish-shell/share/tools/web_config/sample_prompts/disco.fish (line 66): Invalid token \'\\U1F4a9\'�[0m
    
      Context:
        �[31m~/home/ASchulma/dev/cygwin/fish/fish-3.4.0-1.x86_64/src/fish-shell/share/tools/web_config/sample_prompts/disco.fish (line 66): Invalid token \'\\U1F4a9\'�[0m <= no more checks
        �[31m    and set -g __fish_git_prompt_char_dirtystate \\U1F4a9�[0m
        �[31m                                                 ^�[0m
        �[31mwarning: Error while reading file /home/ASchulma/dev/cygwin/fish/fish-3.4.0-1.x86_64/src/fish-shell/share/tools/web_config/sample_prompts/disco.fish�[0m
    

    More issues in wchar conversion - U+1F4A9 doesn't fit into two bytes.


    Okay, so the gist of this is:

    • Problems in wchar conversion - this might be a big one, and we really need some help with it
    • Your system is slower than our tests are prepared for, but that shouldn't be a problem in using the thing
    • A bug in the core file completion logic that doesn't unixize the path correctly - you might find this one in practice
    • A difference in select semantics that might just be an error we're not prepared for (so we add another errno value somewhere), or it's a problem we need to work around
    • Locale switching is just broken
    • ps works differently
    • Either cmp works differently or uvars have a problem
    • Maybe Cygwin's env is broken and running env PATH="a::b" CDPATH="d::e" MANPATH="x::y" /path/to/fish /path/to/script doesn't work?

    None of these are major, the locale switching can probably be ifdef'd back at the cost of some performance.

    Something like

    diff --git a/src/wutil.cpp b/src/wutil.cpp
    index 55c8affef..fad566a05 100644
    --- a/src/wutil.cpp
    +++ b/src/wutil.cpp
    @@ -708,7 +708,7 @@ double fish_wcstod(const wchar_t *str, wchar_t **endptr) {
             }
             return ret;
         }
    -    return std::wcstod(str, endptr);
    +    return wcstod_l(str, endptr, fish_c_locale());
     }
     
     file_id_t file_id_t::from_stat(const struct stat &buf) {
  14. andrew-schulman commented on Dec 16, 2021

    @andrew-schulman
    Contributor

    Ugh. OK, well I'd say don't hold up releasing 3.4.0 on account of these things. I'll work on them as I have time and submit patches when I have them. I may open separate issues if I'm not sure how to deal with them.

  15. zanchey commented on Jan 1, 2022

    @zanchey
    MemberAuthor

    OK, we are very close! I would appreciate thoughts on reverting 79d1b3e - it leaves the documentation in two different styles, and I can un-revert it straight after release. (@floam ?)

  16. faho commented on Jan 1, 2022

    @faho
    Member

    @zanchey There are more commits that did work on that, and I'm not sure they're all easily revertable.

    As an incomplete list:

    79d1b3e is particularly dirty as it includes reformatting and rewording and some unexplained changes to the python.

    But essentially, most commits between 79d1b3e and 4efb1b1 that touch doc_src would have to be reverted AFAICT.

  17. floam commented on Jan 2, 2022

    @floam
    Member
  18. floam commented on Jan 2, 2022

    @floam
    Member
  19. zanchey commented on Jan 8, 2022

    @zanchey
    MemberAuthor

    OK, let's leave those. The CSS needs work though - @krobelus' patch in 79d1b3e#r62788729 is on the way there but needs fixing in dark mode, doesn't apply to single-line synopses output by my version of Sphinx (4.3.2), and needs work on the string manpage.

  20. Zesko commented on Jan 29, 2022

    @Zesko

    This release is 99% done after 6 months, only 1% is the issue and testing here?
    Thanks!

  21. added a commit that references this issue on Mar 12, 2022
    c7e4350
  22. locked as resolved and limited conversation to collaborators on Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions