2de82e5be2b80033ec910b60a9192242f19cc435,tests/python/pants_test/task/test_task.py,TaskTest,test_incremental,#TaskTest#,246

Before Change


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

    // Clean - this is the first run so the VT is invalid.
    self._create_clean_file(target, one)
    vtA, was_A_valid = task.execute()
    self.assertFalse(was_A_valid)
    self.assertContent(vtA, one)

After Change


  def test_incremental(self):
    Run three times with two unique fingerprints.

    self._write_build_file()

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

    // Clean - this is the first run so the VT is invalid.
    self._create_clean_file(one)
    task = self._task(incremental=True)
    vtA, was_A_valid = task.execute()
    self.assertFalse(was_A_valid)
    self.assertContent(vtA, one)

    // Changed the source file, so it copies the results from vtA.
    self._create_clean_file(two)
    task = self._task(incremental=True)
    vtB, was_B_valid = task.execute()
    self.assertFalse(was_B_valid)
    self.assertEqual(vtB.previous_cache_key, vtA.cache_key)
    self.assertContent(vtB, one + two)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

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_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_non_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_incremental