Back to the channels
#repopack
- phaleth I was trying to read #392, but it's just like walls of text
- phaleth I think only the description of the current state is useful, the rest should just be abandoned, it's not helpful at all
- blue ok, I'll make it better phaleth
- phaleth wait, it's just like waste of tokens
- 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
- blue no I mean, I'll separate what we currently have, from the desireable state, and break it up into tasks
- blue breaking up something big into small digestable parts is a central part of making things work :)
- blue we'll create an `architecture` directory, with different documents
- blue instead of a huge file
- phaleth yeah, but the new ideas there are not great :D
- blue some of them we need to retain somewhere. like using *.in.repopack.app etc.
- phaleth that one we will need for sure, but why not just implement that already for each user?
- phaleth btw you should change porkbun credentials since clanker was in the haproxy dir it knows them
- blue you mean the API ones?
- blue I can change the API key, but where do I need to update it?
- blue https://repopack.com/project/repopack/tasks/560
- blue this is on your suggestion phaleth
- phaleth it's stored in vaultwarden as two values
- phaleth I do not have those keys anywhere else
- 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
- blue just haproxy config?
- blue s/now/no/
- phaleth just in vaultwarden, haproxy configs do not matter at the moment, I will be moving haproxy to a container
- blue k
- phaleth I like https://repopack.com/project/repopack/tasks/560
- blue yes, will be done done
- blue soon done*
- blue phaleth: #570 is active
- phaleth yeah, clanker has no idea what to do prolly
- blue I think it's almost ready
- blue as you can see the problem was that the full job json object, with id, wasn't accepted
- blue I'm now moving to a flag-based design which is anyway easier to work with
- blue I also discovered that the route code it produced was terrible
- blue so told it to make it more the way it should be in primate
- blue with proper pema validation
- phaleth it looked terrible when I looked at it yesterday
- phaleth it's prolly not using rcompat as well in majority of the places
- blue yes
- phaleth it does not tell what should I run instead of that command above, it's just mudding the waters
- blue it's not done yet
- blue btw pha
- blue phaleth
- 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
- blue if you look at lines 39-41
- blue that's a pema gap
- blue https://repopack.com/project/primate/tasks/192
- blue so sometimes the ugly isn't the clanker: it's upstream primate lacking smth
- blue those unknown keys, or at least one key must be present, those are missing pema capabilities that will be added in 0.43
- phaleth time to go back to the roots
- blue ya
- blue planning primate 0.43 for today
- phaleth great
- blue this release already kinda has too much
- blue phaleth: https://repopack.com/project/repopack/tasks/569
- blue this is just for public repos, yes?
- blue we don't have yet proper support for public repos, until I can figure out excluding .js from it
- phaleth it mentions that there should be some sort of access token for private repos provided via query string param
- blue hm, ok
- phaleth yeah, it means scope for the token and so on, it's a rabbit hole
- blue k, yeah
- blue phaleth: could you do me a favour
- blue run `rp update`
- blue then in flog project, update the job;s artifacts to public?
- blue `rp job update` will help you
- blue usage: rp job update <job-number> [--source <ref|trigger:branch-ref>] [--artifact-access project|public] [--description <text>]
- blue `rp job update 1 --artifact-access public`
- blue can you try it?
- phaleth yeah, it updated the access to public
- blue great
- blue and now you can download artifacts?
- phaleth yeah, the download urls are public
- blue good
- blue phaleth: soon rebuilding flog with your fix
- blue just making it build automatically from master, and I need a small fix in repopack for that
- blue phaleth: flog job now automatically rebuild on master merges
- phaleth ok
- blue did it fix your issue that you reported?
- phaleth I'm gonna try
- blue would be nice to completely move to flog, as part of 0.43
- blue and get rid of all nub/pnpm nonsense in the monorepo
- phaleth neither curl or wget can download the new artifact file
- phaleth I guess it's a problem of quotes
- phaleth nope, just can't download that
- 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'
- phaleth seems to be blocked again
- blue let me see
- phaleth will have to put it to superarch.org again :D
- 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'
- blue this should work. but I will improve the ergonomics of it so you don't need to go via the api
- blue phaleth: https://repopack.com/project/repopack/tasks/591
- phaleth yeah, that works, no need to worry about ergonomics
- phaleth [1/2] STEP 9/12: RUN flog install --ignore-scripts --no-lockfile
- 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
- phaleth Error: building at STEP "RUN flog install --ignore-scripts --no-lockfile": while running runtime: exit status 1
- phaleth I can report that
- blue yes report, I'll have it fixed
- phaleth flog#22
- blue thx
- blue phaleth: flog 22 is in, https://repopack.com/project/flog/jobs/1?run=8
- blue oof, the job failed
- phaleth hmm
- phaleth that one should be easy for clanker to fix
- blue yes
- phaleth how to push a commit to remote branch without triggering a review?
- blue https://repopack.com/project/flog/jobs/1?run=9
- blue phaleth: commits never trigger a review automatically, that's an rp/API actoin
- phaleth git push does not work
- blue what do you get
- blue btw the build succeeded phaleth
- phaleth https://paste.debian.net/plainh/099c19fc
- phaleth another error
- phaleth flog#24
- blue phaleth: https://dpaste.com/9FH9BL47J
- blue 24 is in flight
- phaleth I will not be able to access dpaste
- phaleth actually I can access that
- phaleth ok, that helped, got few of those files to remote without changing state of the task
- blue ok. if you need rp helpers for that, tell me. trying to kill git
- blue https://repopack.com/project/flog/jobs/1?run=10
- blue phaleth: ^
- phaleth clanker just barfled more go files
- blue yes
- blue actually, #24's commit didn't add any new files
- phaleth installed 561 packages and 0 workspace links (431 cache hits, 130 downloads)
- phaleth fails on build step
- blue task?
- phaleth sure, will create
- phaleth but 431 cache hits sounds cool
- blue ya, aiming for the stars here
- phaleth flog#25
- blue on it
- phaleth more go code
- blue yes
- phaleth it learns to parse pnpm-workspace.yaml, that's nice
- phaleth maybe it'll be a drop in replacement for pnpm
- blue I intend to remove that, pnpm-workspace.yaml is an abomination
- blue it's better to support workspaces inside package.json
- blue it's so nice now that rp can reparent tasks
- phaleth heh, ok
- blue because sometimes you have code dependencies you don't know about from the get-go
- blue look at this
- blue https://repopack.com/project/repopack/tasks/564
- blue 564 started with 593, 594 and 595 all being its direct children
- blue but they kind of build on each other, so rp needed to reparent 594 on 593, and 595 on 594
- blue this reduces the amount of times you need to solve conflicts
- blue #25 is merged, job rebuilding
- phaleth yeah, but I'm building pnpm monorepo with flog
- blue the primate repo?
- phaleth and if it can support that then that means it's usable
- phaleth yeah, I'm building old primate repo
- phaleth from github
- blue ok, fair enough. I get we can leave pnpm support in
- blue I guess*
- phaleth yeah, absolutely
- blue pnpm-workspace.yaml* support
- blue but I'm not gonna support foreign lock files like bun.lock
- blue flog.lock will be the standard
- phaleth clanker just gotta figure out how to fix all the security problems so repos can be made public
- blue ya
- phaleth why make another lock file?
- blue for identity, mostly
- phaleth and probably json
- blue ya it's json
- phaleth you can take a look at nub.lock
- phaleth large json is difficult to process
- blue what does nub.lock do?
- phaleth not sure, but not json
- phaleth https://repopack.com/project/primate/code/blob/nub.lock
- blue that's ugly
- phaleth lol, all of them are ugly
- phaleth the thing is to not make yet another standard
- phaleth deno.lock, nub.lock, bun.lock, ...
- phaleth can you tell how to execute primate with flog?
- phaleth [1/2] STEP 12/12: RUN flog primate build --target=node
- phaleth flog: error: unknown command "primate"
- phaleth it got very far
- blue it should be `flog run`, no?
- blue or better, `flog x`
- phaleth ok, help isn't saying anything about x
- phaleth flog: error: unknown command "x"
- blue yes, flog x doesn't exist yet :)
- phaleth heh
- blue because flog isn't a runtime
- blue though it should work anyway
- blue there's npx, pnpx
- phaleth ok, then I ll use npx
- blue can you create a task for `flog x`?
- blue we wnat to be able to use primate without npm / pnpm / bun
- phaleth npx cannot find packages
- phaleth ok, sure
- blue https://repopack.com/project/flog/tasks/13
- blue hype
- phaleth https://repopack.com/project/flog/tasks/27
- blue thx
- blue phaleth: https://flog.repopack.app/
- nevet flog — predictable JavaScript package management
- blue maybe you can point flog.run at that
- blue phaleth: https://repopack.com/project/flog/code/blob/flog.lock?ref=task%2F13-launch-the-self-hosted-flog-run-primate-website
- phaleth cool
- blue phaleth: flog x is being done
- phaleth https://flog.run/
- nevet flog — predictable JavaScript package management
- blue NICE!