microsoft / azure-pipelines-agent

Azure Pipelines Agent 🚀
MIT License
1.72k stars 867 forks source link

Wrong identification of primary repository in some cases #3482

Closed echalone closed 1 month ago

echalone commented 3 years ago

Synopsis

In some cases the first repository checked out in a Yaml pipeline with a multiple repository checkout scenario is wrongly identified as the primary repository. The self repository should instead always be identified as primary repository (if it was checked out).

I would have already fixed the bug and have already created a pull request to the master branch of this repository: https://github.com/microsoft/azure-pipelines-agent/pull/4217 The pull request needs to be reviewed and accepted.

This bug leads to the following wrong behaviours

Agent Version and Platform

Agent Version: v2.189.0 (latest release, bug is in code of current master branch) and below OS of the machine running the agent: Windows (but should be OS independent)

Azure DevOps Type and Version

dev.azure.com and on-premises Azure DevOps Server 2020 onwards. Bug is in agent, not Azure DevOps Server, therefore the bug is independent of the server version or type. However, Azure DevOps Server 2019 and below doesn't allow a multi checkout scenario yet and will therefore not be able to recreate this issue.

github-actions[bot] commented 2 years ago

This issue has had no activity in 180 days. Please comment if it is not actually stale

anatolybolshakov commented 2 years ago

Removing stale to check the request.

github-actions[bot] commented 2 years ago

This issue has had no activity in 180 days. Please comment if it is not actually stale

echalone commented 2 years ago

Not actually stale, right? ^^

github-actions[bot] commented 1 year ago

This issue has had no activity in 180 days. Please comment if it is not actually stale

echalone commented 1 year ago

not really stale

echalone commented 1 year ago

According to the suggestion of @ismayilov-ismayil the pull request for these changes has been recreated. It previously contained other changes too and in the new pull request these changes have been isolated and now only contain the changes needed to fix this bug. New pull request is here: https://github.com/microsoft/azure-pipelines-agent/pull/4217

github-actions[bot] commented 1 year ago

This issue has had no activity in 180 days. Please comment if it is not actually stale

echalone commented 1 year ago

not stale

github-actions[bot] commented 8 months ago

This issue has had no activity in 180 days. Please comment if it is not actually stale

echalone commented 7 months ago

Once upon a time, in the kingdom of the azure-pipeline-agent repository, there lurked a mischievous creature known as the GitHub Stale Bot. This bot had a peculiar habit of labeling open pull requests and feature requests with a "stale" label after half a year of inactivity. And if that wasn't enough, it would ruthlessly close these issues after another week if nobody dared to utter a word in their defense. The developers of the azure-pipeline-agent repository lived in constant fear of this relentless bot. They would toil away at their keyboards, creating magnificent lines of code, only to have their creations labeled as "stale" and cast aside into the abyss of forgotten tickets. But one day, those brave developers stood up to challenge of the GitHub Stale Bot. Armed with nothing but their wit and a keyboard they devised a cunning plan to outsmart the bot once and for all. As the deadline approached, and passed, for the bot to strike, we sprung into action. We crafted a comment so clever, so witty, that even the most heartless of bots would have to pause and reconsider its actions. The comment echoed through the digital halls of GitHub, reaching the circuits of the Stale Bot's mechanical heart. And to nobody's surprise, the bot replied: "removed the stale label" From that day forward, we became a legend in the kingdom of the azure-pipeline-agent repository. Whenever the GitHub Stale Bot threatened to strike, developers would flock to us for advice on crafting the perfect comment to save their creations.

This is that comment. This is our story.

github-actions[bot] commented 1 month ago

This issue has had no activity in 180 days. Please comment if it is not actually stale