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

Expose a timestamp as a PAC variable #1877

Open
arewm opened this issue Dec 20, 2024 · 0 comments
Open

Expose a timestamp as a PAC variable #1877

arewm opened this issue Dec 20, 2024 · 0 comments

Comments

@arewm
Copy link

arewm commented Dec 20, 2024

When processing the result of a pipelinerun, users may want to know the timestamps of the commit/pipelinerun in order to compare the freshness of produced artifacts. It would be nice to have PAC be able to inject a timestamp into the PLR so that it can be used for comparison. Two options are:

  • The timestamp of the commit. This can be overridden by users when committing so it might not be strictly monotonically increasing with successive commits in a branch
  • The timestamp of the trigger event. This would be beneficial if the system is under load so tasks might take longer to complete, increasing the discrepancy variability if the timestamp is determined within a task in the triggered pipeline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant