Stream: python

Topic: logs from GitHub Actions


view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 24 2025 at 14:56):

@Jan Range see https://github.com/gdcc/api-test-runner

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 24 2025 at 14:56):

      - name: Dump docker logs on failure
        if: failure()
        uses: jwalton/gh-docker-logs@v2
        with:
          dest: './logs'
      - name: Tar logs
        if: failure()
        run: tar cvzf ./logs.tgz ./logs
      - name: Upload logs to GitHub
        if: failure()
        uses: actions/upload-artifact@master
        with:
          name: logs.tgz
          path: ./logs.tgz

view this post on Zulip Jan Range (Sep 24 2025 at 16:59):

@Philip Durbin ๐Ÿš€ I have added the log saves to the script in pyDataverse. Will add it to the action as well now

view this post on Zulip Jan Range (Sep 24 2025 at 18:50):

Looking at the GitHub Action, adding the log step as a post-step will be difficult. Since we are using a composite action, all steps defined will be run in sequence, and only then the next steps in any CI will be taken. Either we rewrite the action in JavaScript, which allows both pre- and post-runs, or we simply document how one can retrieve the logs in the CI. What are your thoughts?

view this post on Zulip Jan Range (Sep 24 2025 at 19:51):

Okay, I went down the Node actions rabbit hole with a little help from Claude, and I think I am almost there. Only thing missing is that the logs are pushed as artifacts, but they are present in the action runs now :slight_smile:

https://github.com/gdcc/dataverse-action/actions/runs/17987836304/job/51170398822

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 24 2025 at 19:53):

Oh! That's better, i think, to be able to just see the logs instead of having to download a tarball. :thinking:

view this post on Zulip Jan Range (Sep 24 2025 at 20:06):

Awesome! I also like that it is within the run logs. At first I thought it may be cluttered, but it actually looks nice :smile:

view this post on Zulip Jan Range (Sep 24 2025 at 20:06):

I'd still try to get the logs as an artifact. Maybe there is a use case for it :slight_smile:

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 24 2025 at 20:09):

Belt and suspenders. Sure.

view this post on Zulip Jan Range (Sep 24 2025 at 20:15):

Logs are now uploaded :slight_smile:

https://github.com/gdcc/dataverse-action/actions/runs/17988383629

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 24 2025 at 20:31):

It's definitely nice to have both.

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 24 2025 at 20:31):

Now we just need something to break! :bomb:

view this post on Zulip Jan Range (Sep 24 2025 at 20:34):

We will catch all the bugs! :smiling_devil:

view this post on Zulip Jan Range (Sep 24 2025 at 20:34):

Today is the day of pull requests :smile:

view this post on Zulip Jan Range (Sep 24 2025 at 20:34):

https://github.com/gdcc/dataverse-action/pull/18

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 24 2025 at 20:39):

Husky? :dog:

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 24 2025 at 20:39):

this? https://github.com/typicode/husky

view this post on Zulip Jan Range (Sep 24 2025 at 20:40):

Yes, exactly this!

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 24 2025 at 20:40):

Git hooks made easy :puppy: woof!

view this post on Zulip Jan Range (Sep 24 2025 at 20:41):

Love the name :smile:

view this post on Zulip Jan Range (Sep 24 2025 at 20:41):

Just recently found it and it is quite cool

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 24 2025 at 20:43):

My daughter is a Husky: https://en.wikipedia.org/wiki/Northeastern_Huskies

view this post on Zulip Jan Range (Sep 25 2025 at 08:42):

Cool! All disciplines or specific ones like hockey?

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 25 2025 at 10:15):

Well, she was a rower :woman_rowing_boat: in high school but she just joined the rugby team. :rugby:


Last updated: Nov 01 2025 at 14:11 UTC