Skip to content

Scripts to watch the evolution of generated files#23

Open
gilles-peskine-arm wants to merge 5 commits intoMbed-TLS:mainfrom
gilles-peskine-arm:trace_generated_files
Open

Scripts to watch the evolution of generated files#23
gilles-peskine-arm wants to merge 5 commits intoMbed-TLS:mainfrom
gilles-peskine-arm:trace_generated_files

Conversation

@gilles-peskine-arm
Copy link
Copy Markdown
Contributor

Archive the evolution of generated files over a range of revisions.

Archive the evolution of generated files over a range of revisions.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
@mprse mprse self-requested a review September 13, 2022 06:37
This is especially useful to continue from a previous series of commits that
are already traced.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Useful when the traced files are checked into Git, or when they're generated
by some shell command (-r) rather than make.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
In case the make command doesn't have correct dependencies,
make sure that it at least regenerates the targets. This isn't
enough if intermediate files need to be updated as well, but
it's the best we can do here.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
# it's the best we can do here. If make doesn't have correct
# dependencies, make sure to delete all relevant intermediate files
# in the run_before command.
for filename in files:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does this block need to account for if the --build-dir argument is used and remove the files relative to this directory, rather than the current one?

subprocess.check_call(['git', 'diff', '--quiet'])
except subprocess.CalledProcessError:
raise UncommittedChangesException()
self.initial_revision = subprocess.check_output(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does this need to account for the scenario when we are in detached head?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants