Submit

Back to the channels

#repopack

  1. phaleth I was trying to read #392, but it's just like walls of text
  2. phaleth I think only the description of the current state is useful, the rest should just be abandoned, it's not helpful at all
  3. blue ok, I'll make it better phaleth
  4. phaleth wait, it's just like waste of tokens
  5. phaleth it doesn't give any important detail, except for the git to ssh part, but that part of the description is difficult to read
  6. blue no I mean, I'll separate what we currently have, from the desireable state, and break it up into tasks
  7. blue breaking up something big into small digestable parts is a central part of making things work :)
  8. blue we'll create an `architecture` directory, with different documents
  9. blue instead of a huge file
  10. phaleth yeah, but the new ideas there are not great :D
  11. blue some of them we need to retain somewhere. like using *.in.repopack.app etc.
  12. phaleth that one we will need for sure, but why not just implement that already for each user?
  13. phaleth btw you should change porkbun credentials since clanker was in the haproxy dir it knows them
  14. blue you mean the API ones?
  15. blue I can change the API key, but where do I need to update it?
  16. blue https://repopack.com/project/repopack/tasks/560
  17. blue this is on your suggestion phaleth
  18. phaleth it's stored in vaultwarden as two values
  19. phaleth I do not have those keys anywhere else
  20. blue now I mean, if I revoke the old API key, and cfeate a new one, where do I need to record it on the server
  21. blue just haproxy config?
  22. blue s/now/no/
  23. phaleth just in vaultwarden, haproxy configs do not matter at the moment, I will be moving haproxy to a container
  24. blue k
  25. phaleth I like https://repopack.com/project/repopack/tasks/560
  26. blue yes, will be done done
  27. blue soon done*
  28. blue phaleth: #570 is active
  29. phaleth yeah, clanker has no idea what to do prolly
  30. blue I think it's almost ready
  31. blue as you can see the problem was that the full job json object, with id, wasn't accepted
  32. blue I'm now moving to a flag-based design which is anyway easier to work with
  33. blue I also discovered that the route code it produced was terrible
  34. blue so told it to make it more the way it should be in primate
  35. blue with proper pema validation
  36. phaleth it looked terrible when I looked at it yesterday
  37. phaleth it's prolly not using rcompat as well in majority of the places
  38. blue yes
  39. phaleth it does not tell what should I run instead of that command above, it's just mudding the waters
  40. blue it's not done yet
  41. blue btw pha
  42. blue phaleth
  43. blue https://repopack.com/project/repopack/code/blob/web/routes/api/v0/jobs/%5Bjob%5D/index.ts?ref=task%2F570-unable-to-make-job-artifacts-public-for-a-projec
  44. blue if you look at lines 39-41
  45. blue that's a pema gap
  46. blue https://repopack.com/project/primate/tasks/192
  47. blue so sometimes the ugly isn't the clanker: it's upstream primate lacking smth
  48. blue those unknown keys, or at least one key must be present, those are missing pema capabilities that will be added in 0.43
  49. phaleth time to go back to the roots
  50. blue ya
  51. blue planning primate 0.43 for today
  52. phaleth great
  53. blue this release already kinda has too much
  54. blue phaleth: https://repopack.com/project/repopack/tasks/569
  55. blue this is just for public repos, yes?
  56. blue we don't have yet proper support for public repos, until I can figure out excluding .js from it
  57. phaleth it mentions that there should be some sort of access token for private repos provided via query string param
  58. blue hm, ok
  59. phaleth yeah, it means scope for the token and so on, it's a rabbit hole
  60. blue k, yeah
  61. blue phaleth: could you do me a favour
  62. blue run `rp update`
  63. blue then in flog project, update the job;s artifacts to public?
  64. blue `rp job update` will help you
  65. blue usage: rp job update <job-number> [--source <ref|trigger:branch-ref>] [--artifact-access project|public] [--description <text>]
  66. blue `rp job update 1 --artifact-access public`
  67. blue can you try it?
  68. phaleth yeah, it updated the access to public
  69. blue great
  70. blue and now you can download artifacts?
  71. phaleth yeah, the download urls are public
  72. blue good
  73. blue phaleth: soon rebuilding flog with your fix
  74. blue just making it build automatically from master, and I need a small fix in repopack for that
  75. blue phaleth: flog job now automatically rebuild on master merges
  76. phaleth ok
  77. blue did it fix your issue that you reported?
  78. phaleth I'm gonna try
  79. blue would be nice to completely move to flog, as part of 0.43
  80. blue and get rid of all nub/pnpm nonsense in the monorepo
  81. phaleth neither curl or wget can download the new artifact file
  82. phaleth I guess it's a problem of quotes
  83. phaleth nope, just can't download that
  84. phaleth curl -v -L -C - -o flog.tar.gz 'https://repopack.com/project/flog/jobs/1/runs/4/artifacts/flog-0.0.0-dev.98af3a547abd-linux-amd64.tar.gz'
  85. phaleth seems to be blocked again
  86. blue let me see
  87. phaleth will have to put it to superarch.org again :D
  88. blue phaleth: curl -fL -o flog.tar.gz 'https://repopack.com/api/v0/jobs/1/runs/4/artifacts/flog-0.0.0-dev.98af3a547abd-linux-amd64.tar.gz?project=flog'
  89. blue this should work. but I will improve the ergonomics of it so you don't need to go via the api
  90. blue phaleth: https://repopack.com/project/repopack/tasks/591
  91. phaleth yeah, that works, no need to worry about ergonomics
  92. phaleth [1/2] STEP 9/12: RUN flog install --ignore-scripts --no-lockfile
  93. phaleth flog: error: install importer . dependency apekit: validate typescript@6.0.3 package manifest: /app/primate/.flog-install-1628046316/node_modules/apekit/node_modules/typescript/package.json: field "devDependencies.@types/node" has invalid value "latest": invalid registry range: invalid comparator "latest": expected decimal digits
  94. phaleth Error: building at STEP "RUN flog install --ignore-scripts --no-lockfile": while running runtime: exit status 1
  95. phaleth I can report that
  96. blue yes report, I'll have it fixed
  97. phaleth flog#22
  98. blue thx
  99. blue phaleth: flog 22 is in, https://repopack.com/project/flog/jobs/1?run=8
  100. blue oof, the job failed
  101. phaleth hmm
  102. phaleth that one should be easy for clanker to fix
  103. blue yes
  104. phaleth how to push a commit to remote branch without triggering a review?
  105. blue https://repopack.com/project/flog/jobs/1?run=9
  106. blue phaleth: commits never trigger a review automatically, that's an rp/API actoin
  107. phaleth git push does not work
  108. blue what do you get
  109. blue btw the build succeeded phaleth
  110. phaleth https://paste.debian.net/plainh/099c19fc
  111. phaleth another error
  112. phaleth flog#24
  113. blue phaleth: https://dpaste.com/9FH9BL47J
  114. blue 24 is in flight
  115. phaleth I will not be able to access dpaste
  116. phaleth actually I can access that
  117. phaleth ok, that helped, got few of those files to remote without changing state of the task
  118. blue ok. if you need rp helpers for that, tell me. trying to kill git
  119. blue https://repopack.com/project/flog/jobs/1?run=10
  120. blue phaleth: ^
  121. phaleth clanker just barfled more go files
  122. blue yes
  123. blue actually, #24's commit didn't add any new files
  124. phaleth installed 561 packages and 0 workspace links (431 cache hits, 130 downloads)
  125. phaleth fails on build step
  126. blue task?
  127. phaleth sure, will create
  128. phaleth but 431 cache hits sounds cool
  129. blue ya, aiming for the stars here
  130. phaleth flog#25
  131. blue on it
  132. phaleth more go code
  133. blue yes
  134. phaleth it learns to parse pnpm-workspace.yaml, that's nice
  135. phaleth maybe it'll be a drop in replacement for pnpm
  136. blue I intend to remove that, pnpm-workspace.yaml is an abomination
  137. blue it's better to support workspaces inside package.json
  138. blue it's so nice now that rp can reparent tasks
  139. phaleth heh, ok
  140. blue because sometimes you have code dependencies you don't know about from the get-go
  141. blue look at this
  142. blue https://repopack.com/project/repopack/tasks/564
  143. blue 564 started with 593, 594 and 595 all being its direct children
  144. blue but they kind of build on each other, so rp needed to reparent 594 on 593, and 595 on 594
  145. blue this reduces the amount of times you need to solve conflicts
  146. blue #25 is merged, job rebuilding
  147. phaleth yeah, but I'm building pnpm monorepo with flog
  148. blue the primate repo?
  149. phaleth and if it can support that then that means it's usable
  150. phaleth yeah, I'm building old primate repo
  151. phaleth from github
  152. blue ok, fair enough. I get we can leave pnpm support in
  153. blue I guess*
  154. phaleth yeah, absolutely
  155. blue pnpm-workspace.yaml* support
  156. blue but I'm not gonna support foreign lock files like bun.lock
  157. blue flog.lock will be the standard
  158. phaleth clanker just gotta figure out how to fix all the security problems so repos can be made public
  159. blue ya
  160. phaleth why make another lock file?
  161. blue for identity, mostly
  162. phaleth and probably json
  163. blue ya it's json
  164. phaleth you can take a look at nub.lock
  165. phaleth large json is difficult to process
  166. blue what does nub.lock do?
  167. phaleth not sure, but not json
  168. phaleth https://repopack.com/project/primate/code/blob/nub.lock
  169. blue that's ugly
  170. phaleth lol, all of them are ugly
  171. phaleth the thing is to not make yet another standard
  172. phaleth deno.lock, nub.lock, bun.lock, ...
  173. phaleth can you tell how to execute primate with flog?
  174. phaleth [1/2] STEP 12/12: RUN flog primate build --target=node
  175. phaleth flog: error: unknown command "primate"
  176. phaleth it got very far
  177. blue it should be `flog run`, no?
  178. blue or better, `flog x`
  179. phaleth ok, help isn't saying anything about x
  180. phaleth flog: error: unknown command "x"
  181. blue yes, flog x doesn't exist yet :)
  182. phaleth heh
  183. blue because flog isn't a runtime
  184. blue though it should work anyway
  185. blue there's npx, pnpx
  186. phaleth ok, then I ll use npx
  187. blue can you create a task for `flog x`?
  188. blue we wnat to be able to use primate without npm / pnpm / bun
  189. phaleth npx cannot find packages
  190. phaleth ok, sure
  191. blue https://repopack.com/project/flog/tasks/13
  192. blue hype
  193. phaleth https://repopack.com/project/flog/tasks/27
  194. blue thx
  195. blue phaleth: https://flog.repopack.app/
  196. nevet flog — predictable JavaScript package management
  197. blue maybe you can point flog.run at that
  198. blue phaleth: https://repopack.com/project/flog/code/blob/flog.lock?ref=task%2F13-launch-the-self-hosted-flog-run-primate-website
  199. phaleth cool
  200. blue phaleth: flog x is being done
  201. phaleth https://flog.run/
  202. nevet flog — predictable JavaScript package management
  203. blue NICE!

Search posts