-
nicoco
is the standards@ mailing list manually moderated or did I mess up sending an email somehow?
-
lanmao
hello everyone
-
emus
nicoco: you can check the logs. see xmpp.org
-
nicoco
emus: you mean archives?
-
emus
https://xmpp.org/community/mailing-lists/
-
Zash
nicoco: It has been known to be slow. Double check the address tho?
-
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?
-
Zash
xmllint has a flag to expand entitites IIRC
-
singpolyma
You're getting only one item when you expect three?
-
Zash
`xmllint --nonet --noent --loaddtd "$@"`
-
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
-
moparisthebest
grepping the man page for entities doesn't show anything that looks relevant
-
moparisthebest
singpolyma, yep, the 2 showing up are entities which is why I suspect that's the problem✎ -
moparisthebest
singpolyma, yep, the 2 not showing up are entities which is why I suspect that's the problem ✏
-
Zash
moparisthebest, add `--noent`
-
moparisthebest
haha that did it Zash thanks much
-
mjk
add no entities to get some entities
-
moparisthebest
unclear why "no entities" makes entities work but hey I'm not going to ask
-
Zash
moparisthebest, no entities in _output_ I guess
-
Zash
`--nonet` (no network) is also nice ;)
-
moparisthebest
Guus, you'll probably want that in your script too ^
-
Zash
> --noent > Substitute entity values for entity references. By default, xmllint leaves entity references in place.
-
mjk
I'm guessing, --nonet then means it wont use HTTP PUT for output
-
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.
-
moparisthebest
Though some innocent soul in the future may use an entity and then have to discover --noent all over again lol
-
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?
-
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.
-
Guus
If someone wants to have at it, by all means, go for it.
-
Zash
moparisthebest, `tools/xep2md.sh` remembers it
-
jonas’
Zash, I'm gonna force-push xep-sla.md away, ok?
-
jonas’
we don't typically have .md files and I'd rather not duplicate stuff
-
Zash
Okay
-
Zash
> [FAIL] XPATH value /xep/header/number/text() ('ProtoXEP') does not equal 'XXXX' (but should). Oh no!
-
Zash
Better reject it for having the forbidden value of "xxxx"
-
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
-
jonas’
Zash, thanks, will fix
-
jonas’
moparisthebest, don't assume that
-
jonas’
why would you have to?
-
jonas’
I have too many email addresses to keep them in sync everywhere
-
Zash
Aha! It's from `xep-template.xml`
-
moparisthebest
jonas’: > Is the XEP in Experimental or Deferred state and the PR opener is not an author of the XEP?
-
Zash
Should the script allow lowercase and/or should the template be adjusted?
-
moparisthebest
how else would I determine "PR opener is not an author of the XEP" ?
-
jonas’
Zash, fixed
-
jonas’
(allowing case-insensitive)✎ -
moparisthebest
it's just going to be a warning for manual review anyway, but I don't think there's another way?
-
jonas’
(allowing lowercase) ✏
-
jonas’
moparisthebest, yes
-
Zash
moparisthebest, do the assumption, leave room for some override?
-
Zash
mailmap mebbe?
-
jonas’
also I don't like git email addresses as validation for that purpose, because I can just set GIT_AUTHOR_EMAIL
-
Zash
git author vs github account vs True Identity™ ????
-
moparisthebest
well we can start putting PGP keys into author and requiring signed commits
-
singpolyma
jonas’: that would be what to set to fix it yes
-
singpolyma
moparisthebest: ooh
-
moparisthebest
until then though this will have to do lol
-
jonas’
moparisthebest, please no
-
singpolyma
You can fetch key from GitHub account too if you ever wanted that way
-
jonas’
moparisthebest, you can do it as a heuristic, but I'm fairly certain it'll break for a non-trivial number of people
-
moparisthebest
yea I assume it will too
-
jonas’
but please don't shame people when it happens :)
-
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
-
jonas’
heh
-
Zash
do things understand the code owner stuff linux uses?
-
jonas’
ideally I'd like to have github handles in xep.ent really
-
jonas’
ohhh codeowners
-
jonas’
interesting idea
-
Zash
also https://git-scm.com/docs/gitmailmap is a thing that might be of use
-
singpolyma
You can fetch key from GitHub account too if you ever wanted that way
-
moparisthebest
how is approver determined if it's not defined https://xmpp.org/extensions/xep-0072.html
-
moparisthebest
this says council, but the xml has no <approver/>
-
Zash
Is it ever not Council for Standards Track ?
-
moparisthebest
maybe we can just fix old xeps instead of special-casing them ?
-
Zash
jonas’, but how do I deal with the lack of evolve in git after that force-push?
-
Zash
> mercurial.error.ProgrammingError: git support can't handle octopus merges, found a commit with 11 parents :( 😵️
-
moparisthebest
rekt
-
moparisthebest
$ git --no-pager log --format=%aE 7eaa3962a83ebde2607c0a778cda6281981f8444..HEAD nicoco@nicoco.fr truenicoco@users.noreply.github.com why github why
-
moparisthebest
perhaps trying to guess PR author with git commit author is a fools errand
-
jonas’
Zash: ignore!
-
Zash
ignore? IGNORE? I can't ignore duplicated commits!
-
Zash
`git branch -f xep-sla zash/xep-sla` or something then
-
jonas’
ignore
-
jonas’
because your PR will vanish in a second
-
jonas’
(or be marked as merged anyway)
-
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
-
moparisthebest
0.0.0.2 0.0.081203 ?????
-
moparisthebest
I guess "version block has been added and version is not the same" is good enough?
-
Zash
checking for unequal version would probably be good enough yee
-
jonas’
`0.0.081203` lewat
-
jonas’
moparisthebest, could you also check that the version matched `\d+\.\d+\.\d+`? Non-semver-y versions are the bane of my existence.✎ -
jonas’
moparisthebest, could you also check that the version matches `\d+\.\d+\.\d+`? Non-semver-y versions are the bane of my existence. ✏
-
moparisthebest
for new ones only, and hard-error? I like it
-
jonas’
yes & yes
-
jonas’
thanks a lot
-
jonas’
(btw, I didn't expect implementation discussion for the tooling to happen here; I was monitoring editor@ more closely than this place recently)
-
jonas’
(so if I missed any questions please repeat)
-
moparisthebest
ah sorry, I mainly asked because bigger audience for xmllint/xpath question then forgot to switch back over :/