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

Rep001 2 hooks #811

Closed
wants to merge 17 commits into from
Closed

Rep001 2 hooks #811

wants to merge 17 commits into from

Conversation

nerdvegas
Copy link
Contributor

Implements pre-install/release running of package tests.

Note that this is not done as a pre-release hook plugin, because the way this works doesn't match up to the places in which these hooks are run.

The way pre-install (and release) tests are run is like so:

  • variant (ie its payload) is installed to correct location (package.py is not yet updated)
  • separate temp package is created, containing just the installed variant
  • this tmp pkg uses a new internal attrib (_redirected_base) to point back to the true package install location
  • the tests are run on this temp pkg
  • if tests fail, true variant payload is deleted
  • if tests succeed, package.py is then updated as per usual, and new variant becomes visible.

Note that #807 must be merged before this PR.

ajohns added 12 commits November 21, 2019 15:27
-stop early on test fail (mirrors stop early on build fail)
-do we want stop-on-fail config settings for variants, tests?
…ring pre-install/release

-show summary of all tests at end of build/release
-do a little better at cleaning up failed variant installs
-current behaviour is OK (state is always valid), but can leave .building files and package version dirs
@@ -353,18 +370,26 @@ def _uid(self):
class PackageRepositoryManager(object):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: These minor changes weren't really needed as part of this PR - this work was done when I started investigating a different direction. In any case, these changes fix a bug, where repositories would've been cached into an LRU pool that's shared across all instances of this class.

@nerdvegas nerdvegas mentioned this pull request Dec 3, 2019
@nerdvegas
Copy link
Contributor Author

@nerdvegas nerdvegas closed this Jan 18, 2020
@bpabel bpabel deleted the rep001-2-hooks branch January 19, 2023 20:35
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.

None yet

1 participant