Page MenuHomeSoftware Heritage

weekly-planning: Use curl instead of httpie
ClosedPublic

Authored by ardumont on Jan 31 2022, 12:32 PM.

Details

Summary

http is writing file on disk and the 'nobody' user is not allowed to do that. curl is
fine without the need to write anything.

Related to P1270

Test Plan

Executing on pergamon as user nobody the following works (vs the original which failed,
see paste)

Diff Detail

Repository
rSPSITE puppet-swh-site
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

site-modules/profile/files/weekly_planning_bot/weekly-planning-bot
6

well, no! ;)

6

keep the old dest.

vsellier added a subscriber: vsellier.
site-modules/profile/files/weekly_planning_bot/weekly-planning-bot
16–17

Any reason to use --data-binary instead of --data ?

This revision is now accepted and ready to land.Jan 31 2022, 12:37 PM
site-modules/profile/files/weekly_planning_bot/weekly-planning-bot
16–17

my attempt failed with --data iirc.
That does some more conversion we don't need here iirc (from the manpage).

olasd added inline comments.
site-modules/profile/files/weekly_planning_bot/weekly-planning-bot
2

-x is probably not needed now that the debugging happened.

site-modules/profile/files/weekly_planning_bot/weekly-planning-bot
2

right!