Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Creating pipelines zip archive in docs CI on every push to a PR branch

未关闭 适合新手
#714 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
88/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
冷清
技术栈
github-actions

调研方向

从 .github/workflows/httomo_docs.yml 开始,检查第 43-45 行和第 56-60 行的 artifact 创建,以及第 51 行附近的 docs 上传条件。调整 workflow 条件,使 pipelines artifact 仅在 releases 中创建,然后验证推送到 PR 分支时不会上传它,而 release 运行仍会上传它。

由索引模型根据 Issue 内容生成。

描述

ci

I noticed that there's an artifact getting uploaded as part of the docs build CI even if the CI wasn't triggered by a tag push:

https://github.com/DiamondLightSource/httomo/blob/899a43da8c63a1431d0804dcb48773be08b46710/.github/workflows/httomo_docs.yml#L43-L45

https://github.com/DiamondLightSource/httomo/blob/899a43da8c63a1431d0804dcb48773be08b46710/.github/workflows/httomo_docs.yml#L56-L60

The artifact isn't very big (taken from https://github.com/DiamondLightSource/httomo/actions/runs/24771337928/job/72478300291?pr=708):

With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Beginning upload of artifact content to blob storage
Uploaded bytes 16937
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact zip is 5e9dd090dcaad7c024f063b92dcd1c1b6e945ce80a57d2491132ba2461fd364a
Finalizing artifact upload
Artifact full_pipelines-artifact.zip successfully finalized. Artifact ID 6575004505
Artifact full_pipelines-artifact has been successfully uploaded! Final size is 16937 bytes. Artifact ID is 6575004505
Artifact download URL: https://github.com/DiamondLightSource/httomo/actions/runs/24771337928/artifacts/6575004505

but if this happens every time a push is done to a PR branch then this could accumulate, and I imagine it'd accumulate somewhere associated with the repo and it'll eventually reach a storage limit of some kind.

We probably want to only create this artifact for releases, which would be equivalent to something like the following condition used for the docs upload, just without the main part: https://github.com/DiamondLightSource/httomo/blob/899a43da8c63a1431d0804dcb48773be08b46710/.github/workflows/httomo_docs.yml#L51

主要语言
Python
星标
10
派生
5
平均合并
6 分钟
30 天内合并 PR
1

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

DiamondLightSource/httomo 的其他 Issue

查看 DiamondLightSource/httomo 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。