Skip to content
View ponsfrilus's full-sized avatar
🤖
Ideas are easy. Execution is everything.
🤖
Ideas are easy. Execution is everything.

Organizations

@donax @fixme-lausanne @epfl-sdf @epfl-dojo @epfl-enacit2 @epfl-si @epfl-fsd @r-engineeringresumes

Block or report ponsfrilus

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
ponsfrilus/README.md

Hello World 👋

Nicolas Borboën aka ‟ponsfrilus„

Hello world! I'm a full stack engineer working @epfl-si in Lausanne, Switzerland.
Apparently, I'm hanging around on GitHub since 16 years and 11 months.
You can reach me on mastodon @mastodon.social@ponsfrilus or LinkedIn.
I'm also a teacher, a bots breeder, a happy husband and father of 2.

#EPFL | #EPFL-SI | #EPFL-FSD | #EPFL-Dojo | #EPFL-Dojo-kata 🔥 | #1TBS

GitHub followers Twitter Follow



My last starred repos

My last commits

[feature] Compute adhoc metrics in background, add more

Compute the ad hoc metrics every 5 minutes in a background thread, so a slow query cannot make /metrics time out (which also drops the web and Sidekiq metrics). Add metrics on users by state, sign-ins, active users, known instances, statuses by visibility, polls, hashtags, media size, reports, unavailable and blocked domains, remote follows, and the time of the last refresh.

[fix] Prometheus exporter: raise the metrics timeout to 8s

In production, ruby_mastodon_user_count was missing, as were all the other metrics served by the mastodon-prometheus-exporter container. Each request to /metrics logged "Generating Prometheus metrics text timed out", and ruby_collector_working was 0.

By default, prometheus_exporter stops generating the metrics after 2 seconds. In production, the first run of the ad hoc collector (adhoc.rb) in a new process takes about 2.6s (database connection, schema loading, cold PostgreSQL cache). A warm run takes about 0.04s. The first run was stopped at 2s, so it seems that the warm-up never completed. Each following request (Prometheus every 15s, the Docker healthcheck every 30s) timed out too. On test, the first run finishes in less than 2s, so the problem did not occur there.

Set --timeout to 8s, which is less than the 10s Prometheus scrape_timeout.

Measured in production:

  • collector run in a new process: 2.58s, then 0.04s;
  • timeouts in the logs: 60 in 10 minutes before the change, 0 after;
  • after the change: ruby_collector_working 1, ruby_mastodon_user_count 775.
[bump] to version v4.7.7
[bump] Version to 2.2.1

Release the fix that reads all EPFL group members, so the sync CronJob stops failing on sidoc-access. Merging to main builds and pushes quay-its.epfl.ch/svc1755/sync:2.2.1.

[fix] Keep the last 5 failed sync jobs

With a limit of 1, only the most recent failed job was kept, so the history of failures was lost after one hour. Keeping 5 shows whether a failure is new or repeated across runs.

[fix] Read all EPFL group members in the sync

The EPFL API returns 100 members per page by default. Since sidoc-access went past 100 members (171 now), the access step saw the others as missing, tried to add them again, and the API rejected the whole request with 400 "Déjà membre". Every run has exited with code 1 since 2026-11-25, and no new authorization holder was added to sidoc-access.

Ask for one large page (pagesize=5000), and fail if a group reaches that size, so the list is never cut short without an error. This also covers the admins step, which reads OUTLINE_ADMIN_GROUP the same way.

[doc] Add the project brief and gitignore

Record the owner's requests verbatim in brief.md so that every later change can be traced back to a requirement:

  • 2 grids per page, PDF output
  • prompt for the grid sizes (for example 5x5 up to 12x12)
  • solutions at the end of the PDF, 4 grids per page
  • grids spread from easy to extreme
  • prompt for the number of grids (default 64)

The sources are the Innoludic Yakazu page and Yakazu Player.

.gitignore is added before any other file so that generated PDFs, dependencies and local environment files are never committed.

[doc] Announcements
[bump] to version v4.7.6
[fix] pgdump
⏰ Updated on Fri, 04 Dec 2026 21:37:49 GMT

Pinned Loading

  1. Awesome-TPI Awesome-TPI Public

    Dépôt regroupant des ressources utiles aux apprentis, chefs de projet et experts pour les taravaux pratiques individuels (TPI) de fin d'apprentissage des informaticien·ne·s CFC.

    HTML 21 1

  2. octave-x11-novnc-docker octave-x11-novnc-docker Public

    A docker that runs Octave (and a little bit more)

    JavaScript 52 12

  3. ponsfrilus.tdesktop-theme ponsfrilus.tdesktop-theme Public

    A low-poly Telegram theme

    Makefile 12

  4. dockerGUI dockerGUI Public

    Testing GUI apps with Docker

    7

  5. arch-novnc arch-novnc Public

    Docker container running ArchLinux accessible through novnc in a browser

    Dockerfile 16 7

  6. EPFLArrival EPFLArrival Public

    A vue application for EPFL's newcomers (but not only...)

    JavaScript 12 6