-
Notifications
You must be signed in to change notification settings - Fork 75
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
Orb not working properly for BitBucket #22
Comments
Thanks for the detailed write up! I'll need to confirm that the 2 suggested dates are authoritative to the ordering of commits on the repo, and if so can swap this out. |
@eddiewebb Any update on this issue? We would like to use this Orb as we hit failed deployments at least once a week and having this working would prevent that. |
This seems odd as At least, that's my understanding. Which still leaves me wondering why bitbucket isn't giving that value. |
From my understanding, both It's quite strange that I'll create a PR that uses |
The new v2 API exposes means to get the date the underlying trigger was received, which should be authoritative. This will be a2 step call to get the pipeline id of the current job, and then get pipeline details, which includes the received date of trigger. https://eddiewebb.github.io/circleci-samples/ includes API docs. This new endpoint also should help us eliminate race scenario by collecting status of workflows, and not individual jobs |
@kobim has contributed a fix that should address this, please anyone who can test and feedback on |
99: version catchup [semver:patch] r=eddiewebb a=eddiewebb ### THIS IS A BREAKING CHANGE Per issue #22 , BB did not pass commit specific timing, and so we used worklflow. ### Motivation, issues In a world of dynamic config many workflows can start after their initial pipeline, and will not follow in sequential order. We therefore cant use workflow timing data. ### Description <!--- Describe your changes in detail, preferably in an imperative mood, i.e., "add `commandA` to `jobB`" --> Co-authored-by: Achilleas Triantafyllou <axilleastriant10@gmail.com> Co-authored-by: Eddie Webb <ollitech@gmail.com> Co-authored-by: Eddie Webbinaro <ollitech@gmail.com>
99: version catchup [semver:patch] r=eddiewebb a=eddiewebb ### THIS IS A BREAKING CHANGE Per issue #22 , BB did not pass commit specific timing, and so we used worklflow. ### Motivation, issues In a world of dynamic config many workflows can start after their initial pipeline, and will not follow in sequential order. We therefore cant use workflow timing data. ### Description <!--- Describe your changes in detail, preferably in an imperative mood, i.e., "add `commandA` to `jobB`" --> Co-authored-by: Achilleas Triantafyllou <axilleastriant10@gmail.com> Co-authored-by: Eddie Webb <ollitech@gmail.com> Co-authored-by: Eddie Webbinaro <ollitech@gmail.com>
I am trying to use this as the first step in one of my jobs.
I triggered 2 workflows that utilized the same job.
I expected it not to continue but it still did with the following output.
The
This Workflow Timestamp: ""
line looked suspicious so I decided to dig into the code.I found that when calling the API, I was seeing this for all jobs:
Seeing that this was likely the cause, I went and copied all the code and swapped out
committer_date
withauthor_date
and also triedqueued_at
. Both allowed this step to work as intended.Is it possible to get a new version of this orb that utilizes
author_date
orqueued_at
in the case wherecommitter_date
is not populated?The text was updated successfully, but these errors were encountered: