Skip to content

fixes for history API#3530

Merged
tonistiigi merged 6 commits intomoby:masterfrom
tonistiigi:history-api-fixes
Jan 25, 2023
Merged

fixes for history API#3530
tonistiigi merged 6 commits intomoby:masterfrom
tonistiigi:history-api-fixes

Conversation

@tonistiigi
Copy link
Copy Markdown
Member

  • logs and traces were not saved if a build was canceled or finished with an error
  • exporter key was added in API, but correct value was never passed
  • cache stats was added in add cache stats to the build history API #3440, but because the field for completed step count was not added the values were useless for canceled or errored builds
  • there was no way to control the ref of the build other than running the monitor command. When two builds appeared at same time it was not possible to pair a build with a history record. @felixdesouza

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Otherwise the cache steps count values are useless
for canceled and errored builds.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@tonistiigi
Copy link
Copy Markdown
Member Author

If needed, I'll remove the last commit from the v0.11 cherry-pick because it adds a new flag.

Status and ListenHistory API return events with one-sided timestamp
for events that have not been completed yet. Because client and
server may not have exactly the same time the client can't really
be sure what these values mean without knowing the current server
time as well.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
bool pinned = 14;
int32 numCachedSteps = 15;
int32 numTotalSteps = 16;
int32 numCompletedSteps = 17;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess completed steps also include DONE steps or is it unrelated?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that is is

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

Successfully merging this pull request may close these issues.

2 participants