dotnet / dotnet/docfx

[Bug] The nightly job checks different version, not the one freshly created

Open
#11,136 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.4k
Forks
890
Avg merge
2h 11m
Merged PRs (30d)
10

Description

**Describe the bug**
The nightly action uses `dotnet tool install docfx -g --prerelease` to get the newest version when testing.

https://github.com/dotnet/docfx/actions/runs/34293130495/job/102283830157

This would be OK, provided that the latest version has the highest number. This should be `2.78.6-preview.52`. However, version `2.79.1-preview.3` was pushed to the registry 11 months ago and is now checked every time the nightly action runs, not the version created by the job.

This could also cause problems when you try to install the latest version of DocFX, as with `--prerelease` you woudn't get the newest version. Because of this, version `2.78.6-preview.52` has been downloaded significantly more times than subsequent versions.

**Expected behavior**

The versions should be consistent, with the latest build having the highest version number.

**Additional context**
#11089, #11123

Contributor guide

Open the contributing guide

Research direction

Start with the nightly GitHub Actions run linked in the issue and locate the workflow step invoking `dotnet tool install docfx -g --prerelease`. Trace how the newly created version is published and selected, then verify that nightly checks use that version rather than the older `2.79.1-preview.3` registry entry.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, github-actions
Domain
ci-cd, release
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.