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

Statistic Listener does sometimes not store the start time of a task execution #73

Open
1 task done
schmalzing opened this issue Jan 10, 2025 · 0 comments
Open
1 task done
Labels

Comments

@schmalzing
Copy link
Member

Are you able replicate the bug in the latest version of MontiCore.

Describe the bug

The de.monticore.gradle.StatisticListener stores the start time of a task execution inside a map during the execution of beforeExecute(Task task). However, Gradle does not call that method reliably before task execution. In these cases, the start time of the task execution is missing.

I assume the Listener is added by the MontiCore gradle Plugin after beforeExecute is called. Given that beforeExecute is intended to be removed because of incompatibilities with the build cache, we may need to find another solution altogether.

Steps to reproduce

I have so far not found a reliable way to reproduce this issue.

Expected behaviour

I would expect the start time of every task to be set.

Minimal reproducible example

I have so far not found a minimal example.

Relevant CI workflow/pipeline

No response

Gradle Log

No response

Additional information

No response

@schmalzing schmalzing added the bug label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant