def METHOD_NAME(environment: str, version: str, skip_msvc_check: bool):
    """Execute compiler discovery on the builder instance."""
    with NamedTemporaryFile(suffix=".json") as temp_json_file:
        get_remote_file(RunnerInstance.instance(), "/home/ce/discovered-compilers.json", temp_json_file.name)
        temp_json_file.seek(0)
        runner_check_discovery_json_contents(temp_json_file.read().decode("utf-8"), skip_msvc_check)
        temp_json_file.seek(0)
        boto3.client("s3").put_object(
            Bucket="compiler-explorer", Key=_s3_key_for(environment, version), Body=temp_json_file, **_S3_CONFIG
        )