Skip to content

Conversation

pull[bot]
Copy link

@pull pull bot commented Sep 15, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

The "yq" tool dependency is managed via the Go modules system. It must be invoked via `go tool` in order for the managed
version to be used.
The "Task" task runner tool is used to perform all common development and maintenance operations for the project.

Previously, the version of Task was not well managed.

The GitHub Actions workflows used the latest version of Task, only constrained by major version. This meant that the
GitHub Actions workflows could break at any time through a new release of Task that contained regressions or breaking
changes.

The contributors used whichever version of Task happened to be installed on their machine. This meant that they might
get different results from that produced by the environment of the GitHub Actions workflows.

The better solution is to take the same approach for managing the Task dependency as is done for the project's other
dependencies:

* Install a specific version of Task according to a single source of versioning data.
* Use the Dependabot service to get automated update pull requests.

Since Task is a Go module-based project, this can be accomplished by using the Go modules system, which has explicit
support for tool dependencies as of the Go 1.24 release.
Manage versioning of Task tool dependency
Several rules check whether URLs provided in project metadata load.

Previously, the handling of various HTTP response status codes of these rule functions was tested by using the
convenient httpstat.us site. Unfortunately the maintainers of that site shut it down months ago due to abuse. This
caused the spurious failure of the unit tests. Although the httpstat.us maintainers state that they plan to eventually
resume service, there hasn't been any indication of progress on that front.

So it will be best to make the tests self contained, without any dependence on an external site. This is accomplished by
creating a local HTTP server that responds with the intended status code. Unfortunately this does require the addition
of code to the test in order to generate test data on the fly in order to reference the arbitrary port of the test
server.
Make tests for URL load check rule functions self contained
Configure tools to exclude folders containing generated files
Remove trailing space from rule ID string
@pull pull bot locked and limited conversation to collaborators Sep 15, 2025
@pull pull bot added the ⤵️ pull label Sep 15, 2025
@pull pull bot merged commit 6d9e480 into blog2i2j:main Sep 15, 2025
16 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant