Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Fix execution order of Unity tasks in sub modules #133

Merged
merged 1 commit into from
Feb 16, 2023

Conversation

Larusso
Copy link
Member

@Larusso Larusso commented Feb 15, 2023

Description

We have a new bug where some unity tasks get executed before the paket unity install tasks had any chance to be executed. This patch is addressing this by making sure that any task of type wooga.gradle.unity.UnityTask depends on

  • paketUnityInstall
  • paketUnityUnwrapUPMPackages

Changes

  • FIX execution order of Unity tasks in sub modules

@Larusso Larusso requested review from pletoss and Azurelol February 15, 2023 13:00
@Larusso Larusso force-pushed the fix/execution_order_of_unity_tasks_in_submodules branch from da00ea5 to 51a051a Compare February 16, 2023 08:49
Description
===========

We have a new bug where some unity tasks get executed before
the paket unity install tasks had any chance to be executed.
This patch is addressing this by making sure that any task
of type `wooga.gradle.unity.UnityTask` depends on
* `paketUnityInstall`
* `paketUnityUnwrapUPMPackages`

Changes
=======

* ![FIX] execution order of Unity tasks in sub modules
@Larusso Larusso force-pushed the fix/execution_order_of_unity_tasks_in_submodules branch from 51a051a to 594c83a Compare February 16, 2023 08:58
@@ -46,6 +46,26 @@ class ReleasePluginIntegrationSpec extends IntegrationSpec {
createFile("paket.dependencies")
}

def "verify paket unity install is called before any unity task is executed"() {
Copy link
Member

Choose a reason for hiding this comment

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

nice!

did you happend to TDD-ish this? e.g. did you run this test on the negative case, when this fix wasn't applied yet ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Well locally yes. But I don't provide a negative test case here because the feature is not configuratble.

Copy link
Member Author

Choose a reason for hiding this comment

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

To make this clearer and saver I should actually call multiple other Unity tasks and define custom ones. To actually proof this.

Copy link
Member Author

Choose a reason for hiding this comment

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

I take it as is for now though.

Copy link
Member

@pletoss pletoss left a comment

Choose a reason for hiding this comment

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

lgtm, thanks manne!

@Larusso Larusso merged commit d421a83 into master Feb 16, 2023
@Larusso Larusso deleted the fix/execution_order_of_unity_tasks_in_submodules branch February 16, 2023 11:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants