XSF Editor Team - 2022-12-20


  1. moparisthebest

    jonas’, MattJ first go https://github.com/xsf/xeps/pull/1255

  2. jonas’ looks

  3. moparisthebest

    on a different topic, I have a proposal here: https://github.com/xsf/xeps/issues/1236#issuecomment-1360252549

  4. jonas’

    Thanks. Skimmed, will have to think on that.

  5. moparisthebest

    tl;dr find a way to use existing git viewing tools to solve the attic for us

  6. jonas’

    yeah

  7. jonas’

    my issue is that we sometimes have more than one commit for a single document between revision blocks

  8. jonas’

    i.e. it's not obvious which state version X of document Y is just by looking at the commit log

  9. jonas’

    unless you also look for revision blocks

  10. jonas’

    but that's effectively the tagging issue really

  11. jonas’

    ah, there's something else, too.

  12. moparisthebest

    going forward, all changes are going to be required to have new version blocks right?

  13. moparisthebest

    in the past, oh well too late

  14. jonas’

    yes, but they're not required to do all changes in a single commit

  15. jonas’

    you can have multiple commits and then "seal them off" with a commit adding a revision block

  16. jonas’

    but as I just wrote on github: your idea is nice for viewing, but I don't see how it helps with deduplicating sending emails

  17. jonas’

    but as I just wrote on github: your idea is nice for viewing, but I don't see how it helps with automatically sending emails

  18. moparisthebest

    maybe if people want emails they subscribe to github for commit notifications?

  19. jonas’

    no.

  20. jonas’

    we cannot subscribe standards@ to commit notifications, can we

  21. jonas’

    and also 'you can have multiple commits and then "seal them off" with a commit adding a revision block', that would be a significant amount of noise.

  22. jonas’

    and commit notifications don't substitute "LAST CALL" things, which are also handled `send-updates.py` based on XEP state changes

  23. moparisthebest

    "sealing them off" would be "merging a PR" right?

  24. jonas’

    no, sealing them off would be a commit with a revision block followed by no further commits touching that file in a single PR.

  25. jonas’

    please see https://github.com/xsf/xeps/issues/1238 and https://github.com/xsf/xeps/issues/1239 for thoughts on that

  26. moparisthebest

    is there a reason to not just squash PRs so 1 PR == 1 commit and then it's a simple matter of "when a PR is merged, send an email for each XEP updated" ?

  27. jonas’

    squashing PRs is evil

  28. jonas’

    </ideology>

  29. moparisthebest

    not doing it introduces problems

  30. jonas’

    that's too radical a change for me to accept right now

  31. jonas’

    and what I also don't like is how hard that ties us into github

  32. moparisthebest

    but ok pretend I didn't say *we* squash them and instead the policy is just that the PR author ensures there is only 1 commit

  33. jonas’

    and commit notifications are still not as readable as the current emails

  34. moparisthebest

    (ie, *they* are expected to squash them)

  35. jonas’

    they wouldn't include links to the rendered version for instance

  36. jonas’

    that's even worse, moparisthebest ;)

  37. moparisthebest

    yea I don't want to be tied to github either, but with any system merging a PR lets us run some code then, which would send an email for each XEP changed

  38. moparisthebest

    it's pretty common for each PR to be required to only have 1 commit

  39. jonas’

    let me try to remember why I didn't just do that in gitlab ci

  40. jonas’

    moparisthebest, not where I live/work

  41. jonas’

    but aaanyway

  42. jonas’

    right, race conditions

  43. moparisthebest

    what's a race?

  44. jonas’

    emails should only be sent after the build is over. the build takes longer than a few seconds. merging multiple PRs sequentially causes all kinds of fun then

  45. jonas’

    emails should only be sent after the build is over. the build takes longer than a few seconds. merging multiple PRs in parallel then causes all kinds of fun then

  46. moparisthebest

    the build is only going to send emails to the latest version right?

  47. moparisthebest

    the build is only going to send emails with links to the latest version right?

  48. jonas’

    it depends™

  49. jonas’

    well, yes

  50. jonas’

    though the notifications include the revision block notice

  51. jonas’

    and one would expect emails for all versions

  52. moparisthebest

    well if the git viewer can render xeps then there is no build step, and we can link directly to versions

  53. jonas’

    the git viewer cannot though

  54. jonas’

    and the XSF won't host a git server

  55. moparisthebest

    that was my proposal, have a git viewer that can

  56. jonas’

    yeah, no, we're not going to host a forge, sorry

  57. jonas’

    (iteam member hat)

  58. moparisthebest

    viewer does not imply forge

  59. moparisthebest

    also github can render markdown and we can convert xml to markdown automatically

  60. jonas’

    I think I'm getting too tired of this

  61. jonas’

    I'll have to give this some thought

  62. jonas’

    (10:30 pm local time, bedtime since 30mins really)

  63. jonas’

    (should head there)

  64. moparisthebest

    anyway even if we continue doing builds the current way I think we can avoid races just by only doing 1 build + email at a time

  65. moparisthebest

    but yes get some sleep, thanks for the pointers today

  66. jonas’

    yw

  67. jonas’

    thanks for the PR!

  68. jonas’

    (you got comments on that one, too)

  69. moparisthebest

    addressed some of those and commented on the others, please feel free to get sleep before looking again :D

  70. moparisthebest

    on the other topic, I really think 1 PR == 1 change == 1 commit is the right thing to do here and vastly simplifies everything, and I can't come up with a reason it wouldn't work for any change, but that's just my gut feeling, let me know what you think