This commit is contained in:
Alexis Métaireau 2024-09-27 18:35:27 +02:00
parent 4bf6c5d928
commit ab208277a3
No known key found for this signature in database
GPG key ID: 1C21B876828E5FF2
3 changed files with 181 additions and 0 deletions

View file

@ -189,3 +189,59 @@ And create the volumes with the cli:
fly volume create umap_data -r iad -n2 fly volume create umap_data -r iad -n2
fly deploy fly deploy
``` ```
## The final file
Here is the final `fly.toml` file I came up with:
```toml
app = "umap"
console_command = "umap shell"
primary_region = "iad"
[build]
dockerfile = "Dockerfile"
[env]
SITE_URL = "https://umap-dev.notmyidea.org"
UMAP_ALLOW_ANONYMOUS = "True"
WEBSOCKET_ENABLED = "True"
WEBSOCKET_HOST = "0.0.0.0"
WEBSOCKET_URI = "wss://umap-dev.notmyidea.org:8001"
[[mounts]]
destination = "/srv/umap/uploads"
source = "umap_data"
[processes]
django = "/srv/umap/docker/entrypoint.sh"
ws = "/venv/bin/python /venv/lib/python3.11/site-packages/umap/ws.py"
[[services]]
internal_port = 8_000
processes = [ "django" ]
protocol = "tcp"
[[services.ports]]
force_https = true
handlers = [ "http" ]
port = 80
[[services.ports]]
handlers = [ "http", "tls" ]
port = 443
[[services]]
internal_port = 8_001
processes = [ "ws" ]
protocol = "tcp"
[[services.ports]]
handlers = [ "tls" ]
port = 8_001
[[vm]]
cpu_kind = "shared"
cpus = 1
memory = "1gb"
```

View file

@ -3,7 +3,75 @@ title: dangerzone
save_as: dangerzone/index.html save_as: dangerzone/index.html
template: worklog-en template: worklog-en
--- ---
## Mercredi 18 Septembre 2024 ()
- Merged #906 - Fix wrong container runtime detection on Linux
- Changed the caching strategy for the Github actions, now we have a `build-dev --sync` flag to pull / build / push to the ghcr if needed, the PR is now ready for review
- Started looking back at how to make colima work on OSX, currently failing due to compatibility issues with gVisor wanting to write to /tmp
## Mardi 17 Septembre 2024 (8h, 4/5)
- Continued working on the migration to Github Actions, it's now working, probably some polishing tomorrow. Build times are down to 9mn!
- Read some user research about DZ
- Minor changes to the PR to show an error to the end users when there is a containerd misconfiguration.
## Lundi 16 Septembre 2024 (8h, 3/5)
- Continued the migration to Github Actions, now using the GHCR and more caching.
- Sync with Alex and plan for the rest of the week
- Debugging on some issues opened by end users
## Jeudi 12 Septembre 2024 (8h, 4/5)
- I did work on migrating our CI to Github (from CircleCI), and spent some time changing what's being cached. It still needs some more work, probably will happen next week.
- Did some review of the tasks in the next milestone, took the opportunity to close some issues in the repo.
## Mercredi 11 Septembre 2024 (5h, 5/5)
- Updated the "remove stdeb" branch and merged it https://github.com/freedomofpress/dangerzone/pull/901
- Updated the runtime detection and error displaying PR https://github.com/freedomofpress/dangerzone/pull/906
## Mardi 10 Septembre 2024 (7h, 5/5)
- Proofread the gVisor x Dangerzone article, did some editing and changes to the overall diagram.
- Changed the architecture to "any" for the debian packages
- Merged various PRs, now that the CI is green again (https://github.com/freedomofpress/dangerzone/pull/905, https://github.com/freedomofpress/dangerzone/pull/902, https://github.com/freedomofpress/dangerzone/pull/915, https://github.com/freedomofpress/dangerzone/pull/904)
- 1:1 with Harris
## Lundi 09 Septembre 2024 (8h, 5/5)
- Quick tour of the 0.8.0 issues, comments when appropriate to move the items forward;
- Follow-up on the libexpat CVE that we detected this weekend and that G iulio had a look at (thanks again)
- Sync w/ Alex on what are the next steps
- Debugging session with Alex to find out why our CI was failing on CircleCI runners. Turns out to be a problem with the AWS patched kernel (or maybe something that changed in Linux 5.x), anyway updating the runners was the solution. It kept us wondering for a few hours.
## Vendredi 06 Septembre 2024 (8h, 5/5)
- Doing another pass the the pull requests on the repo, updating them wrt to comments and new findings after a fresh read ;
- Pushed some changes on the branch which removes stdeb in favor of more modern debian packaging tools ;
- Opened a few issues as follow ups
- Finding that there actually is a tool to [automate migrating from circle CI to github actions](https://docs.github.com/en/actions/migrating-to-github-actions/using-github-actions-importer-to-automate-migrations/migrating-from-circleci-with-github-actions-importer), gave it a try.
## Jeudi 05 Septembre 2024 (8h, 5/5)
- Updated multiple PRs following Alex's review
- In depth discussion about how to handle CVEs in the future, and how to ship separated container updates in the future
- Started moving the dev_scripts data out of dz git repository
- Updated the debian packaging branch with recent developments.
- DZ Biweekly meeting (thanks again G_iulio for joining) (edited)
## Mercredi 04 Septembre 2024 (4h, 4/5)
- 1:1 w/ Erik
- Discussion about how we should handle CVEs with Alex
- Getting some more understanding of Debian packaging, more specifically on how to make it skip some specific folders
## Mardi 03 Septembre 2024 (5h, 3/5)
- Debian packaging, answering to various issues.
## Lundi 02 Septembre 2024 (7h, 4/5)
- Sync point with Alex where we covered a wide range of topics (on-host conversion, security and docker images distribution, how should we organize ourselves?)
- Discussion about how dangerzone can be used with colima
- Minor changes to the my PR fixing how the runtime is detected on Linux
- Currently ~~fighting with~~ working on using Github Workflow / Actions rather than Circle CI.
## Vendredi 30 Août 2024 (4h, 5/5) ## Vendredi 30 Août 2024 (4h, 5/5)
- Some discussion with the securedrop team about how to integrate with DZ in order to print images. - Some discussion with the securedrop team about how to integrate with DZ in order to print images.

View file

@ -4,6 +4,63 @@ save_as: umap/index.html
template: worklog template: worklog
total_days: 90 total_days: 90
--- ---
## Vendredi 27 Septembre 2024 (7h)
Je trouve une manière de faire le déploiement avec uWsgi pour le serveur de websockets.
Une session de débug avec David, pendant laquelle on trouve plusieurs problèmes, dont un qui crée des connections websocket en cascade, puisque les clients rejouent en boucle les opérations de modification du statut `syncEnabled` de la carte.
On en profite pour changer le nommage de certaines méthodes, ça faisait longtemps que ça me titillait.
J'en profite pour noter les quelques problèmes qui arrivent en lien avec les layers, dont la création est effectuée par le serveur, ce qui génère quelques soucis au niveau client, lorsque les layers ne sont pas sauvegardés et qu'on commence à faire des opérations dessus.
Je boucle en commençant une branche `display-connected-peers` qui permet de montrer les pairs qui sont actuellement connectés.
## Jeudi 26 Septembre 2024 (10h)
Je simplifie le code pour la gestion des opérations dans la PR en cours, puis je me renseigne sur la manière dont il est possible de s'intégrer avec Django Channels, et si ça à du sens.
On se fait une session de discussion avec David, puis un tour du propriétaire suivi d'une session de debug, pour se rendre compte que `makeFeature` ne passe pas sync=false en paramètre.
Je déploie sur fly.io :-)
## Mercredi 25 Septembre 2024 (6h, 3/5)
Je travaille sur le lien entre les opérations `update` et `upsert`. Le fait de gérer les cas "offline" nécessite de traiter le conflit qui existe entre les deux, pour éviter que des opérations `upsert` (qui sont envoyés à chaque modification d'une géométrie d'une feature) n'écrasent d'autres opérations arrivées depuis concernant la même feature par exemple.
Cela nécessiterait de faire la distinction entre la création d'une feature et sa modification. On utilise actuellement les événements de `Leaflet.Editable`, qui ne font pas la différence entre les deux.
J'ai pris le temps de transposer cette compréhension dans des tests fonctionnels pour `Operation.isLocalOperationNewer`.
## Mardi 24 Septembre 2024 (9h, 4/5)
- J'ai écris un test fonctionnel pour playwright, pour m'assurer que les pairs qui rejoignent une session d'édition après les autres puissent récupérer les infos qui leurs manquent.
- J'ai trouvé un bug, et je ne comprenais pas du tout ce qui le provoquait. Il semblerait que ce soit lié aux changements liés à l'ajout des cercles proportionnels. Une fois ce type de layer utilisé, il est impossible d'ajouter de nouveaux points sur la carte.
- J'ai compacté les changements et mis à jour la pull request.
- Réunion bi-hebdo avec David et Sophie.
- Commencé à rajouter des tests pour la logique de `isLocalOperationNewer`, je pense que ça va être important d'avoir quelque chose qui marche bien ici, parce que c'est cette fonction qui décide d'appliquer ou non les changements qui viennent de l'extérieur.
## Lundi 23 Septembre 2024 (9h, 5/5)
- J'ai pris le temps de faire un tour des changements effectués ces derniers mois,
- J'ai lu les propositions de Yohan pour faire évoluer le schema des fichiers stockés sur disque (geoJSON).
- J'ai testé que le sync fonctionnait bien avec les ajouts récents, entre autres pour les cercles proportionnels aux valeurs.
- J'ai `rebase` ma branche de travail par dessus les modifications qui ont eu lieu ces derniers mois.
- J'ai écris des tests pour la classe de HybridLogicalClock
- J'ai retravaillé le protocole d'échange de données entre le client et le serveur, pour que le code soit plus simple à comprendre.
## Mardi 10 Septembre 2024 (1h, 3/5)
- Weekly
## Lundi 09 Septembre 2024 (2h, 4/5)
- Retrospective
## Mercredi 04 Septembre 2024 (1h, 5/5)
- Pad to discuss and then answered to NLNet email on the umap vector tiles
## Mardi 27 Août 2024 (3h, 5/5) ## Mardi 27 Août 2024 (3h, 5/5)
- Discussions avec David et Yohan sur la manière de s'organiser pour le futur sur umap. - Discussions avec David et Yohan sur la manière de s'organiser pour le futur sur umap.