Open snowe2010 opened 4 months ago
Hi @snowe2010 the baseNormal is determined based on history of the current HEAD
commit. An on: schedule
job in Actions should run on the default branch's tip commit. Can you confirm locally that you are running on the same commit that the cron job used?
If you are, I'd also be interested in seeing a commit history graph: git log --decorate --oneline --graph --all
it looks the same :(
Run git rev-parse HEAD
915a25ce8ca3f9059e7d8a63995a1a456e6cd92d
Run git log --decorate --oneline --graph --all | head -n 10
* 915a25c (grafted, HEAD -> master, tag: 1.0.1-rc.6, origin/master) [debugging-3] Mountain time vs UTC... (#150)
* bdd4c48 (tag: 1.0.1-rc.5) [debugging-2] Change cron (#149)
* f6fb9bc (tag: 1.0.1-rc.4) Debug workflow for ajoberstar (#148)
| * 1540ef1 (origin/dependabot/github_actions/softprops/action-gh-release-2.0.8) Bump softprops/action-gh-release from 0.1.15 to 2.0.8
|/
* 4bae603 (tag: v25, tag: 1.0.1-rc.3) [AAA-111] Redacted
* 6fcd9cc (tag: 1.0.1-rc.2) Turn on debug mode for reckon (#145)
* 98ddd0f (tag: 1.0.1-rc.1) Revert "fix scheduled tests (#143)" (#144)
* 91ad7c6 (tag: 1.0.0, tag: 0.0.2-rc.23) fix scheduled tests (#143)
* bd52bc4 (tag: 0.0.2-rc.22) [BB8-4446] Try to fix service virtualization scheduled tests (#142)
❯ git rev-parse HEAD
915a25ce8ca3f9059e7d8a63995a1a456e6cd92d
❯ git log --decorate --oneline --graph --all | head -n 10
* 915a25c (HEAD -> master, tag: 1.0.1-rc.6, origin/master, origin/HEAD) [debugging-3] Mountain time vs UTC... (#150)
* bdd4c48 (tag: 1.0.1-rc.5) [debugging-2] Change cron (#149)
* f6fb9bc (tag: 1.0.1-rc.4) Debug workflow for ajoberstar (#148)
| * 1540ef1 (origin/dependabot/github_actions/softprops/action-gh-release-2.0.8) Bump softprops/action-gh-release from 0.1.15 to 2.0.8
|/
* 4bae603 (tag: v25, tag: 1.0.1-rc.3) [AAA-111] Redacted
* 6fcd9cc Turn on debug mode for reckon (#145)
* 98ddd0f (tag: 1.0.1-rc.2, tag: 1.0.1-rc.1) Revert "fix scheduled tests (#143)" (#144)
* 91ad7c6 (tag: 1.0.0, tag: 0.0.2-rc.23) fix scheduled tests (#143)
* bd52bc4 (tag: 0.0.2-rc.22) [BB8-4446] Try to fix service virtualization scheduled tests (#142)
Sorry it took me a while to get back to this. Nothing standing out so far, but a couple more questions:
ubuntu-latest
in your sample workflow, can I take that this a GitHub-hosted runner? (that is, it's not a self-hosted one)1.0.1-rc.2
is tagged on 98ddd0f
while in GHA it's tagged on 6fcd9cc
.From the ubuntu-latest in your sample workflow, can I take that this a GitHub-hosted runner? (that is, it's not a self-hosted one)
Yes it is a github hosted runner.
I do see a small discrepancy between the two, though I don't expect it's related to the issue. Locally 1.0.1-rc.2 is tagged on 98ddd0f while in GHA it's tagged on 6fcd9cc.
oh that's strange. I didn't even notice that. 🤔
Do you have any way to share the project or provide a reproducible sample I could do more testing against?
I can't provide the project, but I will work on a reproducible sample.
I haven't forgotten about this, I just took a very long vacation and have had other higher priority work streams pop up. I did create a small project but it was unable to replicate it, so I need to dig in deeper on what the MCVE is.
When running a scheduled github action (cron) with the last tag being an
rc
, we get the failure:Running this locally with the same parameters, we get no such error. Locally the base is chosen as
1.0.0
correctly. Reckon doesn't have any logs in this area explaining why 0.0.0 was chosen, but you can see in debug mode that1.0.0
does existOur settings:
If I create a final tag then the error goes away in github actions. This still doesn't explain why it works perfectly fine locally but not in GHA.
Simplified GH Workflow: