L10 - Version Control 2 Flashcards

1
Q

Why should we run tests locally before committing to VC ?

A
  • Local tests run much faster than on the VC system
  • Ensures that we know tests will pass on VC system
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why should we always ensure tests pass before moving on?

A

Ensures you don’t forget what tests were run, and what changes you made

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why should we avoid commits on a red build?

A

Building on a red build will make debugging harder and snowball, compound and overflow bugs as we increase development iterations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Should we build on a red build?

A

No. If build fails, no more changes should be made until build has been made to a Green Build

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Why should developers never go home on a red build?

A
  • Fixing a red build before leaving ensures you don’t forget changes you made that could’ve contributed to the bugs
  • Changes made are fresh in your mind
  • Stalls all progress → Must fix so the rest of the team can move forward and avoid stagnation of development
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What working practice can be employed to avoid going home on a red build? Why is this a good practice?

A

Check in first thing in the morning as opposed to the end of the day → If a red build occurs, you have the whole team fresh in the morning to tackle it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Why should we be prepared to revert?

A

In case we need to technologically pivot or software becomes overly complex.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Why should we avoid commenting out tests?

A

Ensuring tests are always active provides consistent safeguarding

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Regression Testing?

A

Re-running previous tests to ensure that they still pass

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Why is it important to take responsibility for breakages? What does this ensure?

A
  • If you commit and your tests pass but others break… It’s your responsibility to fix it, regardless of who wrote the code
  • Ensures that all developers are capable of working effectively across the entire code base
How well did you know this?
1
Not at all
2
3
4
5
Perfectly