jdev - 2022-01-21


  1. debacle has left

  2. doge has left

  3. homebeach has left

  4. Matrix Traveler (bot) has left

  5. Matrix Traveler (bot) has joined

  6. homebeach has joined

  7. syrupthinker has left

  8. FireFly has left

  9. drops has joined

  10. SouL has left

  11. dezant has left

  12. suohua has joined

  13. dezant has joined

  14. marc0s has left

  15. marc0s has joined

  16. doge has joined

  17. suohua has left

  18. suohua has joined

  19. rubi has left

  20. selurvedu has left

  21. suohua has left

  22. selurvedu has joined

  23. alacer has left

  24. rubi has joined

  25. thomaslewis has left

  26. thomaslewis has joined

  27. thomaslewis has left

  28. al has left

  29. thomaslewis has joined

  30. thomaslewis has left

  31. thomaslewis has joined

  32. thomaslewis has left

  33. alacer has joined

  34. thomaslewis has joined

  35. thomaslewis has left

  36. thomaslewis has joined

  37. thomaslewis has left

  38. qwestion has left

  39. doge has left

  40. qwestion has joined

  41. al has joined

  42. qwestion has left

  43. qwestion has joined

  44. doge has joined

  45. doge has left

  46. doge has joined

  47. doge has left

  48. doge has joined

  49. doge has left

  50. qwestion has left

  51. Kev has left

  52. Kev has joined

  53. al has left

  54. rubi has left

  55. rubi has joined

  56. moparisthebest

    everyone and their brother has a `sendxmpp`, does anyone know of a `receivexmpp` ? and/or how do you do automated end-to-end tests ?

  57. xnamed has left

  58. moparisthebest

    of the "spin up server, send message, ensure message was recieved" variety

  59. doge has joined

  60. jubalh has left

  61. selurvedu has left

  62. doge has left

  63. doge has joined

  64. Yagizа has joined

  65. qy

    moparisthebest: Clix?

  66. qy

    Never used it, just heard it mentioned

  67. moparisthebest

    http://code.matthewwild.co.uk/clix/file/tip/clix/receive.lua looking likely, thanks qy !

  68. rafasaurus has left

  69. rafasaurus has joined

  70. moparisthebest

    ah https://matthewwild.co.uk/projects/scansion/ but I actually need to control how the client connects so probably not

  71. moparisthebest

    actually this looks perfect https://matthewwild.co.uk/projects/scansion/character-classes/client/

  72. doge has left

  73. serge90 has left

  74. dezant has left

  75. jgart has left

  76. serge90 has joined

  77. jgart has joined

  78. doge has joined

  79. sonny has left

  80. sonny has joined

  81. SouL has joined

  82. tsk has left

  83. pasdesushi has joined

  84. 9lakes has left

  85. 9lakes has joined

  86. tsk has joined

  87. dezant has joined

  88. marc0s has left

  89. marc0s has joined

  90. Millesimus has joined

  91. Millesimus has left

  92. thomaslewis has joined

  93. thomaslewis has left

  94. doge has left

  95. atomicwatch has joined

  96. msavoritias has joined

  97. serge90 has left

  98. serge90 has joined

  99. emus has joined

  100. pasdesushi has left

  101. pasdesushi has joined

  102. wurstsalat has joined

  103. doge has joined

  104. thomaslewis has joined

  105. thomaslewis has left

  106. Ingolf has left

  107. doge has left

  108. Ingolf has joined

  109. doge has joined

  110. Ingolf has left

  111. COM8 has joined

  112. Ingolf has joined

  113. jubalh has joined

  114. jonas’

    moparisthebest, what's your goal?

  115. jonas’

    there's my xmpp-blackbox-exporter for monitoring tests (I can imagine making it support messages one day), aioxmpp does have an end-to-end test suite used in CI of both aioxmpp and at least OpenFire

  116. jonas’

    scansion is used by prosody e2e tests

  117. jonas’

    (for a certain definition of e2e, though)

  118. dezant has left

  119. COM8 has left

  120. Millesimus has joined

  121. Alex has left

  122. Alex has joined

  123. Martin has left

  124. Martin has joined

  125. marc0s has left

  126. PapaTutuWawa has joined

  127. kikuchiyo has left

  128. Millesimus has left

  129. marmistrz has joined

  130. kikuchiyo has joined

  131. FireFly has joined

  132. marc0s has joined

  133. dezant has joined

  134. Millesimus has joined

  135. syrupthinker has joined

  136. Apollo has left

  137. 9lakes has left

  138. 9lakes has joined

  139. Millesimus has left

  140. doge has left

  141. Millesimus has joined

  142. msavoritias has left

  143. msavoritias has joined

  144. Millesimus has left

  145. lovetox has left

  146. debacle has joined

  147. lovetox has joined

  148. serge90 has left

  149. xecks has left

  150. debacle has left

  151. debacle has joined

  152. Millesimus has joined

  153. doge has joined

  154. MattJ has joined

  155. sonny has left

  156. sonny has joined

  157. syrupthinker has left

  158. Apollo has joined

  159. xecks has joined

  160. kikuchiyo has left

  161. kikuchiyo has joined

  162. debacle has left

  163. debacle has joined

  164. kikuchiyo has left

  165. kikuchiyo has joined

  166. Apollo has left

  167. Millesimus has left

  168. Apollo has joined

  169. doge has left

  170. Sam

    moparisthebest: I have a thing for that. Right now it's not made to work outside my own project, but a minimal front end could make it scriptable https://pkg.go.dev/mellium.im/xmpp/internal/integration

  171. 9lakes has left

  172. goffi has joined

  173. larma has joined

  174. Millesimus has joined

  175. debacle has left

  176. Wojtek has joined

  177. sonny has left

  178. sonny has joined

  179. 9lakes has joined

  180. Millesimus has left

  181. larma has left

  182. jubalh has left

  183. Sam

    Finally merged IBB support… the last time the design doc where I decided to do this was modified was a tiny bit over 2 years ago. That one took a while :)

  184. jgart has left

  185. rafasaurus has left

  186. rafasaurus has joined

  187. xnamed has joined

  188. COM8 has joined

  189. COM8 has left

  190. COM8 has joined

  191. COM8 has left

  192. sonny has left

  193. sonny has joined

  194. huhn has left

  195. moparisthebest has left

  196. serge90 has joined

  197. huhn has joined

  198. inky has left

  199. 9lakes has left

  200. 9lakes has joined

  201. emus has left

  202. inky has joined

  203. inky has left

  204. emus has joined

  205. inky has joined

  206. inky has left

  207. inky has joined

  208. 9lakes has left

  209. rafasaurus has left

  210. nephele has joined

  211. moparisthebest has joined

  212. nephele has left

  213. nephele has joined

  214. 9lakes has joined

  215. moparisthebest

    jonas’, the goal is to set up 2 servers (prosody for now), a DNS server (bind9 probably), and have a client connect to each server and send/recieve a message successfully

  216. MattJ

    It's the kind of thing scansion was designed for, but there are plenty of ways to do it

  217. nephele has left

  218. nephele has joined

  219. Sam

    moparisthebest: what is the thing you are actually testing?

  220. moparisthebest

    Sam, xmpp-proxy, so DNS lookups, TLS validation, the connectivity between client and server and server and server

  221. rafasaurus has joined

  222. xnamed has left

  223. moparisthebest

    MattJ, yep scansion seems perfect for the client end, for the rest I'm thinking docker-compose looks like a good fit but open to suggestions

  224. MattJ

    Yep, I'd definitely reach for docker-compose (or terraform if you want to extend to *actual* servers rather than containers)

  225. Sam

    oh nifty, I guess I've seen this at some point because it was in my broweser history but I had forgotten. this might be useful to me too if I added it to my integration test library; thanks.

  226. pulkomandy has left

  227. pulkomandy has joined

  228. tsk has left

  229. moparisthebest

    during POC stage it was fine to test manually with 2 prosody's and gajim on my LAN but that's beyond annoying to continue haha

  230. Wojtek has left

  231. Wojtek has joined

  232. nephele has left

  233. tsk has joined

  234. sonny has left

  235. sonny has joined

  236. sonny has left

  237. sonny has joined

  238. larma has joined

  239. pulkomandy has left

  240. moparisthebest

    Sam: your test library requires the program, eg prosody, to be installed locally looks like? I guess it could be ran inside a container

  241. debacle has joined

  242. Sam

    Yah, it doesn't download it or anything, it expects to find it in the path. It could be modified to point it at an existing instance easily enough though, probably with an option to locate prosody instead of starting it

  243. moparisthebest

    For now I have to do some pretty obscene things to the prosody config so I'll take a manual approach I guess

  244. 9lakes has left

  245. inky has left

  246. Sam

    Yah, that's one of the reasons I wrote that library instead of just spinning up a container (I wanted to be able to control the config easier)

  247. jubalh has joined

  248. moparisthebest

    plus I have to point it at a custom DNS server and make it trust my fake certificate authority, all really hard/annoying to do locally but trivial with a container

  249. Ingolf has left

  250. Ingolf has joined

  251. Sam

    I always just generate a self-signed cert and feed it to both prosody and the client, but at some point I should probably figure out a better way to handle that in case I need to test anything around certs later

  252. 9lakes has joined

  253. sonny has left

  254. sonny has joined

  255. sonny has left

  256. sonny has joined

  257. nephele has joined

  258. nephele has left

  259. nephele has joined

  260. larma has left

  261. larma has joined

  262. dezant has left

  263. xnamed has joined

  264. 9lakes has left

  265. Sam

    Actually, I was forgetting, the big issue I've had when trying to run this in containers is that they refuse to let me fork as anything other than root (even though everything is root by default and I can never figure out how it's possible to get permission denied)

  266. marmistrz has left

  267. Sam

    Mostly it's not an issue, but one day I'm going to think something's working and it's going to turn out to be failing as a normal user and I'll be sad.

  268. moparisthebest

    I think it'll be possible to run all this with rootless podman which would be the ideal situation, but, guess I'll find out :)

  269. Sam

    I've never looked into how that works; I assume everything in the container is tagged as being owned by the user that executed podman and if you try to do root-y things it will fail?

  270. nephele has left

  271. Matrix Traveler (bot) has left

  272. homebeach has left

  273. Matrix Traveler (bot) has joined

  274. homebeach has joined

  275. xnamed has left

  276. 9lakes has joined

  277. moparisthebest

    it uses the linux feature to "allow user X to use UIDs/GIDs 10000-11000" so each user in your container can have their own uid/gid but all mapped to you

  278. qrpnxz has left

  279. sonny has left

  280. sonny has joined

  281. moparisthebest

    and depends what you mean by root-y things, like you still have "root" inside the container and can delete / inside the container etc

  282. Sam

    oh right, that makes sense

  283. xnamed has joined

  284. sonny has left

  285. Sam

    Inside the container is the big problem for me. I can't understand why "sudo -u prosody echo test" works but "fork(prosody, echo test)" or whatever doesn't

  286. sonny has joined

  287. rafasaurus has left

  288. moparisthebest

    with rootless, sudo shouldn't work but fork should, I think...

  289. sonny has left

  290. moparisthebest

    I'm pretty new to rootless containers though, I've basically only used them for builds so far

  291. sonny has joined

  292. Sam

    Sudo would still work because like you said you're still root inside the container, no? I dunno, I don't really understand Unixy things like this. Been a long time since I did ops work that required debugging this kind of thing

  293. moparisthebest

    I only know it doesn't because I read this last night lol https://www.redhat.com/sysadmin/sudo-rootless-podman

  294. sonny has left

  295. rafasaurus has joined

  296. sonny has joined

  297. larma has left

  298. larma has joined

  299. sonny has left

  300. sonny has joined

  301. sonny has left

  302. sonny has joined

  303. sonny has left

  304. sonny has joined

  305. Sam

    My only real experience running this in containers was getting it going on Codeberg CI as an experiment. The issues were mostly just "things are root and ipv6 isn't supported", so I have very limited experience TBF

  306. xnamed has left

  307. qy

    It uses a user namespace

  308. sonny has left

  309. sonny has joined

  310. qy

    And tl;dr sudo will never work in a user namespace

  311. Sam

    oh yah, that makes sense

  312. Sam

    I used to do this sort of thing for a job; I don't think I realized just how much I'd forgotten.

  313. 9lakes has left

  314. qy

    Heh

  315. sonny has left

  316. sonny has joined

  317. sonny has left

  318. sonny has joined

  319. inky has joined

  320. Sam

    That makes me wonder if fork/exec is just disabled in this container. I wonder if this CI system supports --privileged

  321. 9lakes has joined

  322. Zash

    process count limits mebbe?

  323. Wojtek has left

  324. Wojtek has joined

  325. xnamed has joined

  326. Sam

    hmm, nope, --privileged doesn't fix it locally either. Oh well.

  327. 9lakes has left

  328. Sam

    Not that it really matters, it's someone elses CI with no secrets on it and limited network access, prosody can just be root.

  329. 9lakes has joined

  330. mh has joined

  331. 9lakes has left

  332. xnamed has left

  333. nephele has joined

  334. xnamed has joined

  335. qrpnxz has joined

  336. sonny has left

  337. sonny has joined

  338. sonny has left

  339. jonathan has joined

  340. sonny has joined

  341. 9lakes has joined

  342. nephele has left

  343. 9lakes has left

  344. doge has joined

  345. alacer has left

  346. Millesimus has joined

  347. marc0s has left

  348. marc0s has joined

  349. 9lakes has joined

  350. 9lakes has left

  351. 9lakes has joined

  352. pulkomandy has joined

  353. doge has left

  354. emus has left

  355. sonny has left

  356. sonny has joined

  357. pulkomandy has left

  358. pulkomandy has joined

  359. thomaslewis has joined

  360. pulkomandy has left

  361. pulkomandy has joined

  362. pulkomandy has left

  363. pulkomandy has joined

  364. Yagizа has left

  365. Yagizа has joined

  366. Yagizа has left

  367. thomaslewis has left

  368. Yagizа has joined

  369. syrupthinker has joined

  370. sonny has left

  371. sonny has joined

  372. sonny has left

  373. sonny has joined

  374. inky has left

  375. inky has joined

  376. larma has left

  377. emus has joined

  378. thomaslewis has joined

  379. syrupthinker has left

  380. thomaslewis has left

  381. tsk has left

  382. Yagizа has left

  383. syrupthinker has joined

  384. tsk has joined

  385. rafasaurus has left

  386. rafasaurus has joined

  387. thomaslewis has joined

  388. thomaslewis has left

  389. marmistrz has joined

  390. thomaslewis has joined

  391. thomaslewis has left

  392. thomaslewis has joined

  393. thomaslewis has left

  394. thomaslewis has joined

  395. thomaslewis has left

  396. homebeach has left

  397. Matrix Traveler (bot) has left

  398. Matrix Traveler (bot) has joined

  399. homebeach has joined

  400. thomaslewis has joined

  401. thomaslewis has left

  402. thomaslewis has joined

  403. thomaslewis has left

  404. larma has joined

  405. 9lakes has left

  406. thomaslewis has joined

  407. 9lakes has joined

  408. thomaslewis has left

  409. 9lakes has left

  410. PapaTutuWawa has left

  411. 9lakes has joined

  412. rafasaurus has left

  413. rafasaurus has joined

  414. Millesimus has left

  415. rafasaurus has left

  416. Millesimus has joined

  417. rafasaurus has joined

  418. qrpnxz has left

  419. qrpnxz has joined

  420. Wojtek has left

  421. 9lakes has left

  422. qrpnxz has left

  423. qrpnxz has joined

  424. PapaTutuWawa has joined

  425. marc0s has left

  426. marc0s has joined

  427. alacer has joined

  428. Millesimus has left

  429. 9lakes has joined

  430. marc0s has left

  431. marc0s has joined

  432. qrpnxz has left

  433. qrpnxz has joined

  434. marmistrz has left

  435. COM8 has joined

  436. marc0s has left

  437. marc0s has joined

  438. 9lakes has left

  439. Millesimus has joined

  440. 9lakes has joined

  441. COM8 has left

  442. thomaslewis has joined

  443. alacer has left

  444. qrpnxz has left

  445. qrpnxz has joined

  446. thomaslewis has left

  447. 9lakes has left

  448. marc0s has left

  449. marc0s has joined

  450. 9lakes has joined

  451. 9lakes has left

  452. alacer has joined

  453. alacer has left

  454. 9lakes has joined

  455. 9lakes has left

  456. Alacer_dsrt has joined

  457. 9lakes has joined

  458. Alacer_dsrt has left

  459. thomaslewis has joined

  460. Millesimus has left

  461. Millesimus has joined

  462. rafasaurus has left

  463. rafasaurus has joined

  464. thomaslewis has left

  465. COM8 has joined

  466. thomaslewis has joined

  467. COM8 has left

  468. Ge0rG has left

  469. junaid has left

  470. rafasaurus has left

  471. 9lakes has left

  472. thomaslewis has left

  473. rafasaurus has joined

  474. 9lakes has joined

  475. Millesimus has left

  476. marmistrz has joined

  477. xnamed has left

  478. xnamed has joined

  479. PapaTutuWawa has left

  480. thomaslewis has joined

  481. Millesimus has joined

  482. jubalh has left

  483. thomaslewis has left

  484. wurstsalat has left

  485. Ge0rG has joined

  486. wurstsalat has joined

  487. qwestion has joined

  488. kikuchiyo has left

  489. kikuchiyo has joined

  490. xnamed has left

  491. Alacer_dsrt has joined

  492. Alacer_dsrt has left

  493. jgart has joined

  494. marc0s has left

  495. marc0s has joined

  496. thomaslewis has joined

  497. thomaslewis has left

  498. wurstsalat has left

  499. wurstsalat has joined

  500. Millesimus has left

  501. marmistrz has left

  502. goffi has left

  503. qwestion has left

  504. Millesimus has joined

  505. thomaslewis has joined

  506. xnamed has joined

  507. thomaslewis has left

  508. thomaslewis has joined

  509. thomaslewis has left

  510. 9lakes has left

  511. Millesimus has left

  512. rafasaurus has left

  513. marc0s has left

  514. marc0s has joined

  515. marc0s has left

  516. marc0s has joined

  517. jubalh has joined

  518. wurstsalat has left

  519. wurstsalat has joined

  520. Millesimus has joined

  521. 9lakes has joined

  522. rafasaurus has joined

  523. marc0s has left

  524. marc0s has joined

  525. homebeach has left

  526. Matrix Traveler (bot) has left

  527. Matrix Traveler (bot) has joined

  528. homebeach has joined

  529. marc0s has left

  530. marc0s has joined

  531. drops has left

  532. drops has joined

  533. drops has left

  534. drops has joined

  535. syrupthinker has left

  536. Vaulor has left

  537. Vaulor has joined

  538. wurstsalat has left

  539. wurstsalat has joined

  540. thomaslewis has joined

  541. wurstsalat has left

  542. wurstsalat has joined

  543. thomaslewis has left

  544. xnamed has left

  545. thomaslewis has joined

  546. thomaslewis has left

  547. pasdesushi has left

  548. marc0s has left

  549. marc0s has joined

  550. nephele has joined