Skip to content

Ensure that ONBUILD triggers aren't committed to grandchildren#6451

Merged
unclejack merged 2 commits intomoby:masterfrom
cyphar:6445-fix-onbuild-passing-to-grandchildren
Jun 19, 2014
Merged

Ensure that ONBUILD triggers aren't committed to grandchildren#6451
unclejack merged 2 commits intomoby:masterfrom
cyphar:6445-fix-onbuild-passing-to-grandchildren

Conversation

@cyphar
Copy link
Contributor

@cyphar cyphar commented Jun 16, 2014

This patch fixes the bug where ONBUILD triggers are committed each build
step created during the ONBUILD trigger execution, since the triggers are
only wiped after all ONBUILD trigger steps have been committed. This was
fixed by simply copying the ONBUILD triggers and wiping the config
before committing anything.

Fixes #6445.

Docker-DCO-1.1-Signed-off-by: Aleksa Sarai [email protected] (github: cyphar)

/cc @shykes

@tiborvass
Copy link
Contributor

@cyphar would be great to add a test case for this one :)

ping @vieux @crosbymichael @unclejack

@unclejack
Copy link
Contributor

@cyphar please add a cli integration test.

@cyphar
Copy link
Contributor Author

cyphar commented Jun 17, 2014

There. Added an integration-cli test.

/ping @tiborvass @unclejack

Copy link
Contributor

Choose a reason for hiding this comment

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

This test should be called TestBuildOnBuildUnwantedInheritance or something along those lines. There's a conflict with another test which uses this name right now.

The test should also have a comment above it with the issue it fixes and what it's doing.
e.g.:
// #6445 ensure ONBUILD triggers aren't committed to grand children

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@unclejack Fixed.

cyphar added 2 commits June 19, 2014 20:33
This patch fixes the bug where ONBUILD triggers are committed each build
step created during the ONBUILD trigger execution, since the triggers are
only wiped *after* all ONBUILD trigger steps have been committed. This was
fixed by simply copying the ONBUILD triggers and wiping the config
*before* committing anything.

Docker-DCO-1.1-Signed-off-by: Aleksa Sarai <[email protected]> (github: cyphar)
This patch adds CLI integration tests to ensure that NOCACHE instructions
in Dockerfiles only apply to direct children of the original image.

Docker-DCO-1.1-Signed-off-by: Aleksa Sarai <[email protected]> (github: cyphar)
@tiborvass
Copy link
Contributor

LGTM

1 similar comment
@unclejack
Copy link
Contributor

LGTM

unclejack added a commit that referenced this pull request Jun 19, 2014
…dchildren

Ensure that ONBUILD triggers aren't committed to grandchildren
@unclejack unclejack merged commit 181e54b into moby:master Jun 19, 2014
@cyphar cyphar deleted the 6445-fix-onbuild-passing-to-grandchildren branch June 20, 2014 11:57
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.

ONBUILD triggers are passed to grandchildren

3 participants