Commit f7a3822
committed
Fix two flaky tests that were failing intermittently due to race conditions
1. 'Failed deployment followed by completed deployment' test:
- The test was creating both deployments simultaneously, causing a race
where the test would try to update the status of a job that hadn't
been created yet
- Fixed by ensuring sequential execution: wait for the first deployment's
job to fail before creating the second deployment
2. 'should not reconcile after failure' test:
- The test was manually setting deployment status to 'backoff limit
exceeded' without waiting for the controller to finish its initial
reconciliation
- Fixed by waiting for ObservedGeneration to match Generation before
manually setting the failure status, ensuring the controller has
completed processing
Assisted-by: Claude-4.5-opus
Signed-off-by: rabi <[email protected]>1 parent 00c6858 commit f7a3822
File tree
2 files changed
+36
-15
lines changed- test/functional/dataplane
2 files changed
+36
-15
lines changedLines changed: 19 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1828 | 1828 | | |
1829 | 1829 | | |
1830 | 1830 | | |
1831 | | - | |
1832 | | - | |
| 1831 | + | |
| 1832 | + | |
1833 | 1833 | | |
1834 | 1834 | | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
1835 | 1839 | | |
1836 | | - | |
1837 | | - | |
1838 | | - | |
1839 | | - | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
1840 | 1844 | | |
1841 | 1845 | | |
1842 | 1846 | | |
| |||
1852 | 1856 | | |
1853 | 1857 | | |
1854 | 1858 | | |
1855 | | - | |
1856 | 1859 | | |
1857 | 1860 | | |
1858 | 1861 | | |
1859 | 1862 | | |
| 1863 | + | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
1860 | 1872 | | |
1861 | 1873 | | |
1862 | 1874 | | |
| |||
Lines changed: 17 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1734 | 1734 | | |
1735 | 1735 | | |
1736 | 1736 | | |
1737 | | - | |
| 1737 | + | |
1738 | 1738 | | |
1739 | 1739 | | |
1740 | 1740 | | |
1741 | 1741 | | |
1742 | | - | |
1743 | | - | |
1744 | | - | |
1745 | | - | |
1746 | | - | |
1747 | 1742 | | |
1748 | 1743 | | |
1749 | 1744 | | |
| |||
1752 | 1747 | | |
1753 | 1748 | | |
1754 | 1749 | | |
1755 | | - | |
| 1750 | + | |
1756 | 1751 | | |
1757 | 1752 | | |
1758 | 1753 | | |
| |||
1763 | 1758 | | |
1764 | 1759 | | |
1765 | 1760 | | |
1766 | | - | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
1767 | 1776 | | |
1768 | 1777 | | |
1769 | 1778 | | |
| |||
0 commit comments