Skip to content

Conversation

amotl
Copy link
Contributor

@amotl amotl commented Dec 7, 2024

Dear Daniel,

thanks a stack for conceiving and maintaining this excellent program. When just using it the first time on the repository cratedb-examples, we discovered a minor flaw that appears when accessing GitHub action workflows that are gone, while the API still enumerates them. This patch addresses that problem.

With kind regards,
Andreas.

Problem Sample

Please visit and review both GHA workflows,

while they are not represented physically within the repository any longer.

Example Output

While the program would previously croak on non-existing workflows, it now runs to completion, while emitting relevant warning messages to the log output.

github-actions-cli --repo crate/cratedb-examples list-workflows
2024-12-07 02:47:08 sink.fritz.box root[17732] WARNING Workflow not found in repository: crate/cratedb-examples, path: .github/workflows/test-timeseries.yml
2024-12-07 02:47:31 sink.fritz.box root[17732] WARNING Workflow not found in repository: crate/cratedb-examples, path: .github/workflows/test-singer-meltano.yml
.github/workflows/lang-php-amphp.yml - PHP AMPHP
.github/workflows/application-cratedb-toolkit.yml - CrateDB Toolkit
.github/workflows/dataframe-dask.yml - Dask
.github/workflows/lang-npgsql.yml - C# Npgsql
.github/workflows/framework-streamlit.yml - Streamlit
.github/workflows/lang-python-dbapi.yml - Python DB API
.github/workflows/timeseries.yml - Time Series
.github/workflows/application-metabase.yml - Metabase
.github/workflows/framework-flink-kafka-java.yml - Apache Flink: Kafka to JDBC sink (Java)
.github/workflows/framework-gradio.yml - Gradio
.github/workflows/lang-python-sqlalchemy.yml - SQLAlchemy
.github/workflows/framework-dbt.yml - dbt
.github/workflows/lang-ruby.yml - Ruby
.github/workflows/ml-mlflow.yml - MLflow
.github/workflows/application-apache-superset.yml - Apache Superset
.github/workflows/lang-php-pdo.yml - PHP PDO
.github/workflows/ml-langchain.yml - LangChain
.github/workflows/lang-java-maven.yml - Java: JDBC, QA
.github/workflows/dataframe-pandas.yml - pandas
.github/workflows/testing-testcontainers-python.yml - Testcontainers for Python
.github/workflows/ml-automl.yml - AutoML
.github/workflows/testing-native-python.yml - Native Testing with Python
.github/workflows/ml-llamaindex.yml - LlamaIndex
.github/workflows/lang-java-jooq.yml - Java jOOQ
.github/workflows/testing-testcontainers-java.yml - Testcontainers for Java

amotl added 2 commits December 7, 2024 02:51
When workflow definition files are deleted, but had runs in the past,
the GitHub API still enumerates them as if they would exist. In reality,
however, they are gone.

This detail, however, only becomes apparent when accessing the workflow,
so this patch compensates for corresponding 404 errors returned by the
API.
@cunla cunla merged commit 6f5d2f5 into dsoftwareinc:master Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants