Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple project pipeline with git X on same repo fails #970

Open
raj-dhamsaniya opened this issue Apr 18, 2024 · 0 comments
Open

Multiple project pipeline with git X on same repo fails #970

raj-dhamsaniya opened this issue Apr 18, 2024 · 0 comments

Comments

@raj-dhamsaniya
Copy link

We create pipeline in ~30 projects via terraform. When we change the pipeline yaml, and do plan and apply, plan runs fine, but during apply it fails. The issue seems to be the case that multiple threads starts doing changes to pipeline which needs to be updated to git. Now when one of that is done, it would have the new top commit on master, but other process running would have older commit as top commit ref. this fails the pipeline many times. After 5-7 retries it usually completes the apply.

Terraform Version

1.4.6

Affected Resource(s)

Please list the resources as a list, for example:

  • harness_platform_pipeline

Panic Output

│ Error: Please check the input blob id of the requested file. It should match with current blob id of the file [Org/hotstar/Projects/Sentinels/Pipelines/Service Deployment.yaml] at head of the branch [master] in Github repository [harness-ng-projects]

Expected Behavior

It should have applied the new version of yaml files via terraform.

Actual Behavior

It failes for some of the app 5-7 times, then completes successfully.

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. Have 20-30 prj managed by terraform.
  2. All the prj, points to the same repo for GitX at same branch.
  3. Create pipeline via terraform and make sure gitx is configured.
  4. Make change to pipeline and apply should fail.
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

No branches or pull requests

1 participant