XSF Discussion - 2022-12-20


  1. nicoco

    is the standards@ mailing list manually moderated or did I mess up sending an email somehow?

  2. lanmao

    hello everyone

  3. emus

    nicoco: you can check the logs. see xmpp.org

  4. nicoco

    emus: you mean archives?

  5. emus

    https://xmpp.org/community/mailing-lists/

  6. Zash

    nicoco: It has been known to be slow. Double check the address tho?

  7. moparisthebest

    can anyone help me with xpath? this is expected: $ xmllint --xpath '/xep/header/revision/version/text()' xep-0367.xml --nowarning --dtdvalid xep.dtd 0.3 0.2 0.1 0.0.1 this is not expected: $ xmllint --xpath '/xep/header/author/email/text()' xep-0367.xml --nowarning --dtdvalid xep.dtd cpetchell@atlassian.com the output I did expect was: sam@samwhited.com cpetchell@atlassian.com mwild1@gmail.com is xmllint not expanding entities? can I make it somehow?

  8. Zash

    xmllint has a flag to expand entitites IIRC

  9. singpolyma

    You're getting only one item when you expect three?

  10. Zash

    `xmllint --nonet --noent --loaddtd "$@"`

  11. moparisthebest

    here is the definition so you don't have to look it up https://github.com/xsf/xeps/blob/master/xep-0367.xml#L28

  12. moparisthebest

    grepping the man page for entities doesn't show anything that looks relevant

  13. moparisthebest

    singpolyma, yep, the 2 showing up are entities which is why I suspect that's the problem

  14. moparisthebest

    singpolyma, yep, the 2 not showing up are entities which is why I suspect that's the problem

  15. Zash

    moparisthebest, add `--noent`

  16. moparisthebest

    haha that did it Zash thanks much

  17. mjk

    add no entities to get some entities

  18. moparisthebest

    unclear why "no entities" makes entities work but hey I'm not going to ask

  19. Zash

    moparisthebest, no entities in _output_ I guess

  20. Zash

    `--nonet` (no network) is also nice ;)

  21. moparisthebest

    Guus, you'll probably want that in your script too ^

  22. Zash

    > --noent > Substitute entity values for entity references. By default, xmllint leaves entity references in place.

  23. mjk

    I'm guessing, --nonet then means it wont use HTTP PUT for output

  24. Guus

    > Guus, you'll probably want that in your script too ^ Script more or less successfully parsed all existing XEPs. I'd prefer to merge and iteratively improve when needed.

  25. moparisthebest

    Though some innocent soul in the future may use an entity and then have to discover --noent all over again lol

  26. Guus

    Let's cross that bridge if we ever get there. It's been a couple of weeks, but I think that the script actually tests for the inclusion of an entity. That might break?

  27. Guus

    I am not very interested in spending more cycles on this, for improvements that might maybe prevent a potential future issue. Something something perfect in the way of good something.

  28. Guus

    If someone wants to have at it, by all means, go for it.

  29. Zash

    moparisthebest, `tools/xep2md.sh` remembers it

  30. jonas’

    Zash, I'm gonna force-push xep-sla.md away, ok?

  31. jonas’

    we don't typically have .md files and I'd rather not duplicate stuff

  32. Zash

    Okay

  33. Zash

    > [FAIL] XPATH value /xep/header/number/text() ('ProtoXEP') does not equal 'XXXX' (but should). Oh no!

  34. Zash

    Better reject it for having the forbidden value of "xxxx"

  35. moparisthebest

    everyone's git author email matches with their '/xep/header/author/email/text()' right? I'm going to assume yes and the script will shame people where this isn't true

  36. jonas’

    Zash, thanks, will fix

  37. jonas’

    moparisthebest, don't assume that

  38. jonas’

    why would you have to?

  39. jonas’

    I have too many email addresses to keep them in sync everywhere

  40. Zash

    Aha! It's from `xep-template.xml`

  41. moparisthebest

    jonas’: > Is the XEP in Experimental or Deferred state and the PR opener is not an author of the XEP?

  42. Zash

    Should the script allow lowercase and/or should the template be adjusted?

  43. moparisthebest

    how else would I determine "PR opener is not an author of the XEP" ?

  44. jonas’

    Zash, fixed

  45. jonas’

    (allowing case-insensitive)

  46. moparisthebest

    it's just going to be a warning for manual review anyway, but I don't think there's another way?

  47. jonas’

    (allowing lowercase)

  48. jonas’

    moparisthebest, yes

  49. Zash

    moparisthebest, do the assumption, leave room for some override?

  50. Zash

    mailmap mebbe?

  51. jonas’

    also I don't like git email addresses as validation for that purpose, because I can just set GIT_AUTHOR_EMAIL

  52. Zash

    git author vs github account vs True Identity™ ????

  53. moparisthebest

    well we can start putting PGP keys into author and requiring signed commits

  54. singpolyma

    jonas’: that would be what to set to fix it yes

  55. singpolyma

    moparisthebest: ooh

  56. moparisthebest

    until then though this will have to do lol

  57. jonas’

    moparisthebest, please no

  58. singpolyma

    You can fetch key from GitHub account too if you ever wanted that way

  59. jonas’

    moparisthebest, you can do it as a heuristic, but I'm fairly certain it'll break for a non-trivial number of people

  60. moparisthebest

    yea I assume it will too

  61. jonas’

    but please don't shame people when it happens :)

  62. moparisthebest

    I just assume they'll feel shame when the script says their other email has to approve this change, I can't help it

  63. jonas’

    heh

  64. Zash

    do things understand the code owner stuff linux uses?

  65. jonas’

    ideally I'd like to have github handles in xep.ent really

  66. jonas’

    ohhh codeowners

  67. jonas’

    interesting idea

  68. Zash

    also https://git-scm.com/docs/gitmailmap is a thing that might be of use

  69. singpolyma

    You can fetch key from GitHub account too if you ever wanted that way

  70. moparisthebest

    how is approver determined if it's not defined https://xmpp.org/extensions/xep-0072.html

  71. moparisthebest

    this says council, but the xml has no <approver/>

  72. Zash

    Is it ever not Council for Standards Track ?

  73. moparisthebest

    maybe we can just fix old xeps instead of special-casing them ?

  74. Zash

    jonas’, but how do I deal with the lack of evolve in git after that force-push?

  75. Zash

    > mercurial.error.ProgrammingError: git support can't handle octopus merges, found a commit with 11 parents :( 😵️

  76. moparisthebest

    rekt

  77. moparisthebest

    $ git --no-pager log --format=%aE 7eaa3962a83ebde2607c0a778cda6281981f8444..HEAD nicoco@nicoco.fr truenicoco@users.noreply.github.com why github why

  78. moparisthebest

    perhaps trying to guess PR author with git commit author is a fools errand

  79. jonas’

    Zash: ignore!

  80. Zash

    ignore? IGNORE? I can't ignore duplicated commits!

  81. Zash

    `git branch -f xep-sla zash/xep-sla` or something then

  82. jonas’

    ignore

  83. jonas’

    because your PR will vanish in a second

  84. jonas’

    (or be marked as merged anyway)

  85. moparisthebest

    I almost wrote a bash function to check if the version has been increased but I don't think it's doable https://paste.rs/SSR

  86. moparisthebest

    0.0.0.2 0.0.081203 ?????

  87. moparisthebest

    I guess "version block has been added and version is not the same" is good enough?

  88. Zash

    checking for unequal version would probably be good enough yee

  89. jonas’

    `0.0.081203` lewat

  90. jonas’

    moparisthebest, could you also check that the version matched `\d+\.\d+\.\d+`? Non-semver-y versions are the bane of my existence.

  91. jonas’

    moparisthebest, could you also check that the version matches `\d+\.\d+\.\d+`? Non-semver-y versions are the bane of my existence.

  92. moparisthebest

    for new ones only, and hard-error? I like it

  93. jonas’

    yes & yes

  94. jonas’

    thanks a lot

  95. jonas’

    (btw, I didn't expect implementation discussion for the tooling to happen here; I was monitoring editor@ more closely than this place recently)

  96. jonas’

    (so if I missed any questions please repeat)

  97. moparisthebest

    ah sorry, I mainly asked because bigger audience for xmllint/xpath question then forgot to switch back over :/