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

[Harness] Create IBuildToolTask and use it in the RunTestTask. #8375

Merged
merged 3 commits into from
Apr 14, 2020

Conversation

mandel-macaque
Copy link
Member

In order to de-couple the RunTestTask from Jenkins, create an interface
to be implemented, which is pass to use as a member (Composition
pattern). In order to do that, do not expose Jenkins as a property of
the interface because it is required just by the base constructor.

Moving the the use an interfance meant a lot of small changes that
should have no real effect (the compiler should have caught any possible
issues).

…the RunTestTask.

The initial idea of the refactoring looked nice but as soon as we want
to get the RunTestTask out of jenkins, we have a number of naming
issues. Move the tools to not use the *Task postfix so that it is
cleaner and we can later extra the RunTestTask better.
In order to de-couple the RunTestTask from Jenkins, create an interface
to be implemented, which is pass to use as a member (Composition
pattern). In order to do that, do not expose Jenkins as a property of
the interface because it is required just by the base constructor.

Moving the the use an interfance meant a lot of small changes that
should have no real effect (the compiler should have caught any possible
issues).
@mandel-macaque mandel-macaque added the run-internal-tests If tests should be executed on the internal Jenkins instance. label Apr 13, 2020
@mandel-macaque
Copy link
Member Author

Created as a draft pr so that the review is simpler.

@xamarin-release-manager
Copy link
Collaborator

Build was (probably) aborted

🔥 Jenkins job (on internal Jenkins) failed in stage(s) 'Install Provisioning Profiles' 🔥 : hudson.AbortException: script returned exit code 104

Build succeeded
✅ Packages:

@monojenkins
Copy link
Collaborator

Build success
Build succeeded
API Diff (from stable)
API Diff (from PR only) (no change)
Generator Diff (no change)
Test run succeeded

@mandel-macaque mandel-macaque changed the base branch from rename-tests-tasks-to-avoid-overlap to master April 14, 2020 12:04
@mandel-macaque mandel-macaque marked this pull request as ready for review April 14, 2020 12:05
@monojenkins
Copy link
Collaborator

Build failure
Build failed or was aborted

@xamarin-release-manager
Copy link
Collaborator

Build was (probably) aborted

🔥 Jenkins job (on internal Jenkins) failed in stage(s) 'Install Provisioning Profiles' 🔥 : hudson.AbortException: script returned exit code 104

Build succeeded
✅ Packages:

@monojenkins
Copy link
Collaborator

Build success
Build succeeded
API Diff (from stable)
API Diff (from PR only) (no change)
Generator Diff (no change)
Test run succeeded

@mandel-macaque mandel-macaque merged commit dbc89f0 into master Apr 14, 2020
@mandel-macaque mandel-macaque deleted the use-ibuiltooltask-interface branch May 21, 2020 04:04
mandel-macaque added a commit that referenced this pull request Aug 5, 2020
In order to de-couple the RunTestTask from Jenkins, create an interface
to be implemented, which is pass to use as a member (Composition
pattern). In order to do that, do not expose Jenkins as a property of
the interface because it is required just by the base constructor.

Moving the the use an interface meant a lot of small changes that
should have no real effect (the compiler should have caught any possible
issues).
mandel-macaque added a commit that referenced this pull request Oct 12, 2020
In order to de-couple the RunTestTask from Jenkins, create an interface
to be implemented, which is pass to use as a member (Composition
pattern). In order to do that, do not expose Jenkins as a property of
the interface because it is required just by the base constructor.

Moving the the use an interface meant a lot of small changes that
should have no real effect (the compiler should have caught any possible
issues).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-internal-tests If tests should be executed on the internal Jenkins instance.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants