Question 470
Two independently scoped GitHub Copilot requirements are being reviewed. Requirement A: A team wants to generate integration tests for an API with transient failures. Requirement B: A new contributor needs an explanation of an unfamiliar repository's modules. Choose TWO changes that directly cover A and B.
Explanation
Correct Answers
This action addresses requirement B: A new contributor needs an explanation of an unfamiliar repository's modules. Copilot can reduce learning time but source verification remains necessary. Verify by observing: The onboarding notes accurately identify module boundaries and supported workflows.
This action addresses requirement A: A team wants to generate integration tests for an API with transient failures. Copilot-generated test cases are proposals; realistic failure injection, assertions and execution against pinned dependencies establish useful coverage. Verify by observing: Tests document bounded retries without duplicate side effects and verify the handler's final response/cleanup after injected transient faults.
Incorrect Answers
Synthetic sample generation is useful when varied fixtures are independently reviewed. The two requirements instead call for these controls: (A) Provide the real API retry/idempotency contract and simulate timeout, server-5xx, duplicate delivery and cancellation paths in isolated integration tests, then run them against the actual handler; (B) Use Copilot to summarize selected entry points and dependencies, then verify with source files.
Documentation quality requires testing code samples. The two requirements instead call for these controls: (A) Provide the real API retry/idempotency contract and simulate timeout, server-5xx, duplicate delivery and cancellation paths in isolated integration tests, then run them against the actual handler; (B) Use Copilot to summarize selected entry points and dependencies, then verify with source files.
Summaries improve workflow only when grounded in actual changes. The two requirements instead call for these controls: (A) Provide the real API retry/idempotency contract and simulate timeout, server-5xx, duplicate delivery and cancellation paths in isolated integration tests, then run them against the actual handler; (B) Use Copilot to summarize selected entry points and dependencies, then verify with source files.