Skip to content

Add tests for HolisticTraceAnalysis/hta/configs#344

Closed
sijiaw-meta wants to merge 1 commit into
facebookresearch:mainfrom
sijiaw-meta:export-D104876231
Closed

Add tests for HolisticTraceAnalysis/hta/configs#344
sijiaw-meta wants to merge 1 commit into
facebookresearch:mainfrom
sijiaw-meta:export-D104876231

Conversation

@sijiaw-meta

@sijiaw-meta sijiaw-meta commented May 12, 2026

Copy link
Copy Markdown
Contributor

Summary:
Purpose: Add unit test coverage for HolisticTraceAnalysis/hta/configs to meet the >=90% per-file coverage target. Baseline was 95.2% overall but event_args_yaml_parser.py was at 84.2%.

Type: Test infrastructure

Changes:

  • Add 2 new tests in test_event_args_yaml_parser.py: test_parse_event_args_yaml_loads_local_file (covers the os.path.exists True branch that loads YAML from disk via mocked open) and test_main_runs_without_error (covers the main() function via captured stdout)
  • event_args_yaml_parser.py: 84.2% -> 94.7% (folder total: 96.3%)

Differential Revision: D104876231

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 12, 2026
@meta-codesync

meta-codesync Bot commented May 12, 2026

Copy link
Copy Markdown

@sijiaw-meta has exported this pull request. If you are a Meta employee, you can view the originating Diff in D104876231.

sijiaw-meta added a commit to sijiaw-meta/HolisticTraceAnalysis that referenced this pull request May 12, 2026
Summary:

**Purpose:** Add unit test coverage for HolisticTraceAnalysis/hta/configs to meet the >=90% per-file coverage target. Baseline was 95.2% overall but event_args_yaml_parser.py was at 84.2%.

**Type:** Test infrastructure

**Changes:**
- Add 2 new tests in test_event_args_yaml_parser.py: test_parse_event_args_yaml_loads_local_file (covers the os.path.exists True branch that loads YAML from disk via mocked open) and test_main_runs_without_error (covers the main() function via captured stdout)
- event_args_yaml_parser.py: 84.2% -> 94.7% (folder total: 96.3%)

Differential Revision: D104876231
@meta-codesync meta-codesync Bot changed the title Add tests for HolisticTraceAnalysis/hta/configs Add tests for HolisticTraceAnalysis/hta/configs (#344) May 12, 2026
sijiaw-meta added a commit to sijiaw-meta/HolisticTraceAnalysis that referenced this pull request May 12, 2026
Summary:

**Purpose:** Add unit test coverage for HolisticTraceAnalysis/hta/configs to meet the >=90% per-file coverage target. Baseline was 95.2% overall but event_args_yaml_parser.py was at 84.2%.

**Type:** Test infrastructure

**Changes:**
- Add 2 new tests in test_event_args_yaml_parser.py: test_parse_event_args_yaml_loads_local_file (covers the os.path.exists True branch that loads YAML from disk via mocked open) and test_main_runs_without_error (covers the main() function via captured stdout)
- event_args_yaml_parser.py: 84.2% -> 94.7% (folder total: 96.3%)

Differential Revision: D104876231
sijiaw-meta added a commit to sijiaw-meta/HolisticTraceAnalysis that referenced this pull request May 12, 2026
Summary:

**Purpose:** Add unit test coverage for HolisticTraceAnalysis/hta/configs to meet the >=90% per-file coverage target. Baseline was 95.2% overall but event_args_yaml_parser.py was at 84.2%.

**Type:** Test infrastructure

**Changes:**
- Add 2 new tests in test_event_args_yaml_parser.py: test_parse_event_args_yaml_loads_local_file (covers the os.path.exists True branch that loads YAML from disk via mocked open) and test_main_runs_without_error (covers the main() function via captured stdout)
- event_args_yaml_parser.py: 84.2% -> 94.7% (folder total: 96.3%)

Differential Revision: D104876231
sijiaw-meta added a commit to sijiaw-meta/HolisticTraceAnalysis that referenced this pull request May 12, 2026
Summary:

**Purpose:** Add unit test coverage for HolisticTraceAnalysis/hta/configs to meet the >=90% per-file coverage target. Baseline was 95.2% overall but event_args_yaml_parser.py was at 84.2%.

**Type:** Test infrastructure

**Changes:**
- Add 2 new tests in test_event_args_yaml_parser.py: test_parse_event_args_yaml_loads_local_file (covers the os.path.exists True branch that loads YAML from disk via mocked open) and test_main_runs_without_error (covers the main() function via captured stdout)
- event_args_yaml_parser.py: 84.2% -> 94.7% (folder total: 96.3%)

Differential Revision: D104876231
sijiaw-meta added a commit to sijiaw-meta/HolisticTraceAnalysis that referenced this pull request May 12, 2026
Summary:

**Purpose:** Add unit test coverage for HolisticTraceAnalysis/hta/configs to meet the >=90% per-file coverage target. Baseline was 95.2% overall but event_args_yaml_parser.py was at 84.2%.

**Type:** Test infrastructure

**Changes:**
- Add 2 new tests in test_event_args_yaml_parser.py: test_parse_event_args_yaml_loads_local_file (covers the os.path.exists True branch that loads YAML from disk via mocked open) and test_main_runs_without_error (covers the main() function via captured stdout)
- event_args_yaml_parser.py: 84.2% -> 94.7% (folder total: 96.3%)

Differential Revision: D104876231
@meta-codesync meta-codesync Bot changed the title Add tests for HolisticTraceAnalysis/hta/configs (#344) Add tests for HolisticTraceAnalysis/hta/configs May 20, 2026
sijiaw-meta added a commit to sijiaw-meta/HolisticTraceAnalysis that referenced this pull request May 20, 2026
Summary:

**Purpose:** Add unit test coverage for HolisticTraceAnalysis/hta/configs to meet the >=90% per-file coverage target. Baseline was 95.2% overall but event_args_yaml_parser.py was at 84.2%.

**Type:** Test infrastructure

**Changes:**
- Add 2 new tests in test_event_args_yaml_parser.py: test_parse_event_args_yaml_loads_local_file (covers the os.path.exists True branch that loads YAML from disk via mocked open) and test_main_runs_without_error (covers the main() function via captured stdout)
- event_args_yaml_parser.py: 84.2% -> 94.7% (folder total: 96.3%)

Differential Revision: D104876231
sijiaw-meta added a commit to sijiaw-meta/HolisticTraceAnalysis that referenced this pull request May 20, 2026
Summary:

**Purpose:** Add unit test coverage for HolisticTraceAnalysis/hta/configs to meet the >=90% per-file coverage target. Baseline was 95.2% overall but event_args_yaml_parser.py was at 84.2%.

**Type:** Test infrastructure

**Changes:**
- Add 2 new tests in test_event_args_yaml_parser.py: test_parse_event_args_yaml_loads_local_file (covers the os.path.exists True branch that loads YAML from disk via mocked open) and test_main_runs_without_error (covers the main() function via captured stdout)
- event_args_yaml_parser.py: 84.2% -> 94.7% (folder total: 96.3%)

Differential Revision: D104876231
Summary:
**Purpose:** Add unit test coverage for HolisticTraceAnalysis/hta/configs to meet the >=90% per-file coverage target. Baseline was 95.2% overall but event_args_yaml_parser.py was at 84.2%.

**Type:** Test infrastructure

**Changes:**
- Add 2 new tests in test_event_args_yaml_parser.py: test_parse_event_args_yaml_loads_local_file (covers the os.path.exists True branch that loads YAML from disk via mocked open) and test_main_runs_without_error (covers the main() function via captured stdout)
- event_args_yaml_parser.py: 84.2% -> 94.7% (folder total: 96.3%)

Differential Revision: D104876231
sijiaw-meta added a commit to sijiaw-meta/HolisticTraceAnalysis that referenced this pull request May 20, 2026
Summary:

**Purpose:** Add unit test coverage for HolisticTraceAnalysis/hta/configs to meet the >=90% per-file coverage target. Baseline was 95.2% overall but event_args_yaml_parser.py was at 84.2%.

**Type:** Test infrastructure

**Changes:**
- Add 2 new tests in test_event_args_yaml_parser.py: test_parse_event_args_yaml_loads_local_file (covers the os.path.exists True branch that loads YAML from disk via mocked open) and test_main_runs_without_error (covers the main() function via captured stdout)
- event_args_yaml_parser.py: 84.2% -> 94.7% (folder total: 96.3%)

Differential Revision: D104876231
@meta-codesync meta-codesync Bot closed this in 8e5a120 May 21, 2026
@meta-codesync

meta-codesync Bot commented May 21, 2026

Copy link
Copy Markdown

This pull request has been merged in 8e5a120.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant