Skip to content

Add performance check section to PR template and re-numbered later se…

Sign in for the full log view
GitHub Actions / Repro Test Results failed Jan 5, 2026 in 0s

1 fail, 1 pass in 2m 21s

2 tests   1 ✅  2m 21s ⏱️
1 suites  0 💤
1 files    1 ❌

Results for commit 7e32158.

Annotations

Check warning on line 0 in test-venv.lib.python3.10.site-packages.model_config_tests.config_tests.test_bit_reproducibility.TestBitReproducibility

See this annotation in the file changed.

@github-actions github-actions / Repro Test Results

test_repro_historical (test-venv.lib.python3.10.site-packages.model_config_tests.config_tests.test_bit_reproducibility.TestBitReproducibility) failed

/opt/testing/checksum/test_report.xml [took 2m 20s]
Raw output
AssertionError: Checksums were not equal. The new checksums have been written to /scratch/tm70/repro-ci/experiments/access-esm1.6-configs/11fdbc4f0955598823d21bba8fc3938eccd1e97b/checksum/historical-24hr-checksum.json.
assert {'output': {'...ion': '1-0-0'} == {'output': {'...ion': '1-0-0'}
  
  Omitting 1 identical items, use -vv to show
  Differing items:
  {'output': {'Final Absolute Norm': ['8.152139654762455E-003', '7.719163252730094E-003', '8.702483598336560E-003', '7.983158113034306E-003', '7.213017097697780E-003', '7.776356377115519E-003', ...]}} != {'output': {'Final Absolute Norm': ['8.752632344813402E-003', '8.135317946511084E-003', '9.104308031624136E-003', '9.246731523897073E-003', '9.013796570372557E-003', '9.275358609293101E-003', ...]}}
  Use -v to get more diff
self = <test_bit_reproducibility.TestBitReproducibility object at 0x7f95a385d510>
output_path = PosixPath('/scratch/tm70/repro-ci/experiments/access-esm1.6-configs/11fdbc4f0955598823d21bba8fc3938eccd1e97b')
control_path = PosixPath('/scratch/tm70/repro-ci/experiments/access-esm1.6-configs/11fdbc4f0955598823d21bba8fc3938eccd1e97b/base-experiment')
requested_experiments = {'exp_default_runtime': <model_config_tests.exp_test_helper.ExpTestHelper object at 0x7f95a385ce80>}
checksum_path = PosixPath('/scratch/tm70/repro-ci/experiments/access-esm1.6-configs/11fdbc4f0955598823d21bba8fc3938eccd1e97b/compared/testing/checksum/historical-24hr-checksum.json')

    @pytest.mark.repro
    @pytest.mark.repro_historical
    @pytest.mark.experiments(
        {
            EXP_DEFAULT_RUNTIME: {"n_runs": 1},
        }
    )
    def test_repro_historical(
        self,
        output_path: Path,
        control_path: Path,
        requested_experiments: dict[str, ExpTestHelper],
        checksum_path: Optional[Path],
    ):
        """
        Historical reproducibility test that confirms results from a model
        run match a stored previous result. Any generated results are
        added to a "checksum" subdirectory in the output directory.
    
        Parameters
        ----------
        output_path: Path
            Output directory for test output and where the control and
            lab directories are stored for the payu experiments. Default is
            set in conftest.py.
        control_path: Path
            Path to the model configuration to test. This is copied for
            for control directories in experiments. Default is set in
            conftests.py.
        requested_experiments: dict[str, ExpTestHelper]
            A dictionary of requested experiments, where the key is the
            experiment name and the value is an instance of ExpTestHelper.
        checksum_path: Optional[Path]
            Path to checksums to compare model output against. Default is
            set to checksums saved on model configuration. This is a
            fixture defined in conftests.py
        """
        # Get output directory for the checksums
        checksum_output_dir = set_checksum_output_dir(output_path=output_path)
    
        # Use default runtime experiment to get the historical checksums
        exp = requested_experiments.get(EXP_DEFAULT_RUNTIME)
    
        # Set the checksum output filename using the model default runtime
        runtime_hours = exp.model.default_runtime_seconds // HOUR_IN_SECONDS
        checksum_filename = f"historical-{runtime_hours}hr-checksum.json"
    
        # Read the historical checksum file
        hist_checksums = read_historical_checksums(
            control_path, checksum_filename, checksum_path
        )
    
        # Use historical file checksums schema version for parsing checksum,
        # otherwise use the model default, if file does not exist
        schema_version = (
            hist_checksums["schema_version"]
            if hist_checksums
            else exp.model.default_schema_version
        )
    
        # Extract checksums
        checksums = exp.extract_checksums(schema_version=schema_version)
    
        # Write out checksums to output file
        checksum_output_file = checksum_output_dir / checksum_filename
        with open(checksum_output_file, "w") as file:
            json.dump(checksums, file, indent=2)
    
>       assert (
            hist_checksums == checksums
        ), f"Checksums were not equal. The new checksums have been written to {checksum_output_file}."
E       AssertionError: Checksums were not equal. The new checksums have been written to /scratch/tm70/repro-ci/experiments/access-esm1.6-configs/11fdbc4f0955598823d21bba8fc3938eccd1e97b/checksum/historical-24hr-checksum.json.
E       assert {'output': {'...ion': '1-0-0'} == {'output': {'...ion': '1-0-0'}
E         
E         Omitting 1 identical items, use -vv to show
E         Differing items:
E         {'output': {'Final Absolute Norm': ['8.152139654762455E-003', '7.719163252730094E-003', '8.702483598336560E-003', '7.983158113034306E-003', '7.213017097697780E-003', '7.776356377115519E-003', ...]}} != {'output': {'Final Absolute Norm': ['8.752632344813402E-003', '8.135317946511084E-003', '9.104308031624136E-003', '9.246731523897073E-003', '9.013796570372557E-003', '9.275358609293101E-003', ...]}}
E         Use -v to get more diff

../test-venv/lib/python3.10/site-packages/model_config_tests/config_tests/test_bit_reproducibility.py:234: AssertionError

Check notice on line 0 in .github

See this annotation in the file changed.

@github-actions github-actions / Repro Test Results

2 tests found

There are 2 tests, see "Raw output" for the full list of tests.
Raw output
test-venv.lib.python3.10.site-packages.model_config_tests.config_tests.test_bit_reproducibility.TestBitReproducibility ‑ test_repro_determinism
test-venv.lib.python3.10.site-packages.model_config_tests.config_tests.test_bit_reproducibility.TestBitReproducibility ‑ test_repro_historical