qa: Add emojis to test_runner path and wallet filename #13859

pull MarcoFalke wants to merge 1 commits into bitcoin:master from MarcoFalke:Mf1808-qaWalletEmoji changing 2 files +3 −2
  1. MarcoFalke commented at 0:53 am on August 3, 2018: member

    Now that wallet filenames are properly quoted when used for rpc (#13823), we can add some unicode symbols to the test_runner path. Thus, the “extern” wallet that uses a full path has a unicode symbol in its name.

    Should add unicode coverage to

    • listwallets
    • wallet.getwalletinfo
    • (un)loadwallet
  2. MarcoFalke added the label Tests on Aug 3, 2018
  3. fanquake commented at 0:55 am on August 3, 2018: member

    Concept ACK

    I feel like this is an opportunity to use ₿ somewhere.

  4. skeees commented at 0:57 am on August 3, 2018: contributor
    Concept ACK stronger ACK if you mine the commit hash
  5. MarcoFalke force-pushed on Aug 3, 2018
  6. DrahtBot commented at 2:03 am on August 3, 2018: member
    • #13863 (travis: move script sections to files in .travis/ subject to shellcheck by scravy)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  7. practicalswift commented at 7:58 am on August 3, 2018: contributor
    utACK fa5a3f51cc4b3dae2f134fae1745f392ca6e5e47
  8. MarcoFalke force-pushed on Aug 3, 2018
  9. MarcoFalke force-pushed on Aug 3, 2018
  10. qa: Create unicode tempdir in test_runner 5e17777777
  11. scravy commented at 5:12 pm on August 3, 2018: contributor
    utACK fa5a3f51cc4b3dae2f134fae1745f392ca6e5e47 – the macos build failed with a timeout, maybe restart the build?
  12. MarcoFalke force-pushed on Aug 3, 2018
  13. ken2812221 commented at 4:51 am on August 4, 2018: contributor
    utACK 5e1777777790e855a9f3c8604208bc9bd6c8c99f. You have seven “7” in your commit hash.
  14. practicalswift commented at 5:49 am on August 4, 2018: contributor
    utACK 5e1777777790e855a9f3c8604208bc9bd6c8c99f
  15. laanwj commented at 2:27 pm on August 6, 2018: member
    💜-ACK 5e1777777790e855a9f3c8604208bc9bd6c8c99f
  16. laanwj merged this on Aug 6, 2018
  17. laanwj closed this on Aug 6, 2018

  18. laanwj referenced this in commit 238432302a on Aug 6, 2018
  19. MarcoFalke deleted the branch on Aug 6, 2018
  20. ryanofsky commented at 8:34 pm on August 7, 2018: member

    This seems to be causing travis errors:

    0Traceback (most recent call last):
    1  File "test/functional/test_runner.py", line 616, in <module>
    2    main()
    3  File "test/functional/test_runner.py", line 233, in main
    4    os.makedirs(tmpdir)
    5  File "/usr/lib/python3.6/os.py", line 220, in makedirs
    6    mkdir(name, mode)
    7UnicodeEncodeError: 'ascii' codec can't encode character '\u20bf' in position 17: ordinal not in range(128)
    

    https://travis-ci.org/bitcoin/bitcoin/jobs/402357380#L3946

    I see same error locally if I run LC_ALL=C test/functional/test_runner.py, but perhaps this is expected.

  21. MarcoFalke commented at 9:00 pm on August 7, 2018: member

    @ryanofsky The travis error is due to a travis bug, where it wouldn’t use the most recent travis yaml when a build is reset/rerun.

    Locally, you’d have to pick a language setting that is UTF-8 or set LC_ALL=C.UTF-8

  22. scravy commented at 10:10 pm on August 7, 2018: contributor
  23. JeremyRubin commented at 1:13 am on November 7, 2019: contributor

    I like this and think it’s fun… but is it possible we can revert this? It breaks clipboard copy-paste behavior on my system so it makes it a bit annoying to copy the directiory to examine the directory on failed test.

    It’s a minor annoyance, but idk if it’s worth it?

  24. MarcoFalke commented at 2:10 pm on November 7, 2019: member
    @JeremyRubin We should absolutely test wallet behaviour for non-ascii directory and file paths. Especially given that it was broken in the past and some Bitcoin Core users have a non-ascii name.
  25. JeremyRubin commented at 3:23 pm on November 7, 2019: contributor

    Ah I guess I mean just the test runner part.

    I’m fine with it being non ASCII, but copy paste highlighting treats the Emojis as whitespace on my system which makes it a bit more painful to inspect the tmp dir when debugging.

    On Thu, Nov 7, 2019, 6:11 AM MarcoFalke notifications@github.com wrote:

    @JeremyRubin https://github.com/JeremyRubin We should absolutely test wallet behaviour for non-ascii directory and file paths. Especially given that it was broken in the past and some Bitcoin Core users have a non-ascii name.

    — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bitcoin/bitcoin/pull/13859?email_source=notifications&email_token=AAGYN6Y5KFF6R4QEPPK3ON3QSQOX5A5CNFSM4FNU3AR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDMQXLA#issuecomment-551095212, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGYN6ZLWGCNPJKXSAVAXF3QSQOX5ANCNFSM4FNU3ARQ .

  26. MarcoFalke commented at 3:31 pm on November 7, 2019: member

    The test runner path defines the root dir for the temp test dirs, and some of our wallets use absolute paths that are not in the datadir or wallet dir. So the root dir is the only place where an emoji could be injected to make the path non-ascii.

    Have you reported the clipboard bug upstream?

  27. ryanofsky commented at 4:02 pm on November 7, 2019: member

    Have you reported the clipboard bug upstream?

    I have the same problem with gnome terminal. They are really stubborn about their UI and in the past removed the ability to customize this behavior:

    https://bugzilla.gnome.org/show_bug.cgi?id=730632

    But maybe there is a way to customize it again:

    https://askubuntu.com/questions/8413/can-i-specify-what-characters-set-the-double-click-selection-boundary-in-gnome-t

    Though I think my real solution should just be to get a better terminal. Or maybe github could shadowban Marco’s emojis so only he can be amused by them and everybody else will just wonder why he’s so happy all the time.

  28. MarcoFalke commented at 4:37 pm on November 7, 2019: member
    Maybe we could add an OPT_OUT_OF_EMOJI environment variable that the test_runner checks before using emojis? The environment variable could be set in your .bashrc.
  29. deadalnix referenced this in commit 1e7ec00d6c on May 5, 2020
  30. UdjinM6 referenced this in commit 04cf057672 on Jun 29, 2021
  31. UdjinM6 referenced this in commit 56df77cd9f on Jun 29, 2021
  32. UdjinM6 referenced this in commit 1f8e0730f8 on Jun 29, 2021
  33. UdjinM6 referenced this in commit 273a594c1f on Jun 29, 2021
  34. UdjinM6 referenced this in commit 6a3d8ae15f on Jun 30, 2021
  35. UdjinM6 referenced this in commit 17d89ffadf on Jul 1, 2021
  36. UdjinM6 referenced this in commit 99bd57d7df on Jul 2, 2021
  37. UdjinM6 referenced this in commit 37edce56fb on Jul 2, 2021
  38. DrahtBot locked this on Feb 15, 2022

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-10-04 19:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me