2de82e5be2b80033ec910b60a9192242f19cc435,tests/python/pants_test/task/test_task.py,TaskTest,test_implementation_version,#TaskTest#,312

Before Change



    one = "1\n"
    two = "2\n"
    task, target = self._fixture(incremental=True)

    // Run twice, with a different implementation version the second time.
    DummyTask._implementation_version = 0
    self._create_clean_file(target, one)

After Change


  def test_implementation_version(self):
    When the implementation version changes, previous artifacts are not available.

    self._write_build_file()

    one = "1\n"
    two = "2\n"

    // Run twice, with a different implementation version the second time.
    DummyTask._implementation_version = 0
    self._create_clean_file(one)
    task = self._task(incremental=True)
    vtA, _ = task.execute()
    self.assertContent(vtA, one)
    DummyTask._implementation_version = 1
    self._create_clean_file(two)
    task = self._task(incremental=True)
    vtB, _ = task.execute()

    // No incrementalism.
    self.assertFalse(vtA.is_incremental)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: 2de82e5be2b80033ec910b60a9192242f19cc435
Time: 2018-09-18
Author: dawagner@gmail.com
File Name: tests/python/pants_test/task/test_task.py
Class Name: TaskTest
Method Name: test_implementation_version


Project Name: pantsbuild/pants
Commit Name: 2de82e5be2b80033ec910b60a9192242f19cc435
Time: 2018-09-18
Author: dawagner@gmail.com
File Name: tests/python/pants_test/task/test_task.py
Class Name: TaskTest
Method Name: test_incremental


Project Name: pantsbuild/pants
Commit Name: 2de82e5be2b80033ec910b60a9192242f19cc435
Time: 2018-09-18
Author: dawagner@gmail.com
File Name: tests/python/pants_test/task/test_task.py
Class Name: TaskTest
Method Name: test_revert_after_failure


Project Name: pantsbuild/pants
Commit Name: 2de82e5be2b80033ec910b60a9192242f19cc435
Time: 2018-09-18
Author: dawagner@gmail.com
File Name: tests/python/pants_test/task/test_task.py
Class Name: TaskTest
Method Name: test_non_incremental