Skip to content

Commit

Permalink
Final big migration push [7/22] (#2394)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #2394

Reviewed By: kinto0

Differential Revision: D54731232

fbshipit-source-id: 2cf2afd0037c164c530531a453152d3d1747eb09
  • Loading branch information
connernilsen authored and facebook-github-bot committed Mar 11, 2024
1 parent 654b508 commit c8e3049
Show file tree
Hide file tree
Showing 114 changed files with 228 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fbpcs/bolt/hooks/test/test_exception_thrower.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe


from unittest import IsolatedAsyncioTestCase
from unittest.mock import Mock
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/bolt/hooks/test/test_stage_canceller.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe


from unittest import IsolatedAsyncioTestCase
from unittest.mock import AsyncMock
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/bolt/test/test_bolt_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from dataclasses import dataclass
from typing import List, TypeVar
from unittest import IsolatedAsyncioTestCase
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/bolt/test/test_bolt_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import unittest
from unittest import mock

Expand Down
2 changes: 2 additions & 0 deletions fbpcs/bolt/test/test_bolt_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import time
import unittest
from enum import Enum
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/bolt/test/test_oss_bolt_pcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe


import unittest
from collections import defaultdict
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/common/entity/dataclasses_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe


from abc import abstractmethod
from dataclasses import dataclass
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/common/entity/dataclasses_mutability.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe


from dataclasses import dataclass, field
from enum import Enum
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/common/entity/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from typing import Any


Expand Down
2 changes: 2 additions & 0 deletions fbpcs/common/entity/update_generic_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe


from typing import Any, Callable, Iterable, Optional, TypeVar

Expand Down
2 changes: 2 additions & 0 deletions fbpcs/common/entity/update_other_field_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe


from typing import Any, Callable, Iterable, Optional, TypeVar

Expand Down
2 changes: 2 additions & 0 deletions fbpcs/common/service/input_data_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import logging
import re
from dataclasses import dataclass
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/common/service/test/test_input_data_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import unittest
from unittest.mock import patch

Expand Down
2 changes: 2 additions & 0 deletions fbpcs/common/service/test/test_pcs_container_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import unittest
from typing import List, Optional
from unittest.mock import call, MagicMock, patch
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/common/service/test/test_pii_scrubber.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from unittest import TestCase

from fbpcs.common.service.pii_scrubber import PiiLoggingScrubber
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/common/service/test/test_secret_scrubber.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from unittest import TestCase

from fbpcs.common.service.secret_scrubber import SecretScrubber
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/common/service/test/test_trace_logging_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from typing import Dict
from unittest import TestCase

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

# pyer-strict

import unittest
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/common/tests/entity/test_frozen_field_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

# pyer-strict

import unittest
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/common/tests/entity/test_instance_base_mutability.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import unittest
from dataclasses import dataclass
from typing import Generic, List, Optional, TypeVar
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/common/tests/entity/test_range_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

# pyer-strict

import unittest
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/common/tests/entity/test_update_other_field_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

# pyer-strict

import unittest
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/common/tests/repository/test_instance_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import copy
import unittest
from pathlib import Path
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/common/tests/test_stage_state_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import dataclasses
import unittest
from unittest.mock import MagicMock, patch
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/data_processing/pid_preparer/preparer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import abc
import logging
import pathlib
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/data_processing/service/id_spine_combiner.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from typing import List, Optional

from fbpcp.util.arg_builder import build_cmd_args
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/data_processing/service/pid_prepare_binary_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe


from typing import Optional

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from dataclasses import dataclass
from typing import Optional

Expand Down
2 changes: 2 additions & 0 deletions fbpcs/experimental/cloud_logs/log_retriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from abc import ABC, abstractmethod
from typing import List

Expand Down
2 changes: 2 additions & 0 deletions fbpcs/experimental/cloud_logs/test/test_log_retriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import unittest

from fbpcp.service.log_cloudwatch import CloudWatchLogService
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import base64
import json
from datetime import datetime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from abc import ABC


Expand Down
2 changes: 2 additions & 0 deletions fbpcs/infra/restore_run_state/tests/test_restore_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe


from unittest import mock, TestCase
from unittest.mock import ANY
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/pc_pre_validation/tests/binary_path_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from unittest import TestCase

from fbpcs.pc_pre_validation.binary_path import (
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/pl_coordinator/bolt_graphapi_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import json
import logging
import os
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/pl_coordinator/pl_study_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe


import asyncio
import calendar
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/pl_coordinator/tests/test_bolt_graphapi_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import json
import unittest
from typing import Any
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/pl_coordinator/tests/test_token_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe


import json
from datetime import datetime, timedelta
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/private_computation/entity/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe


class PCInfraConfigError(Exception):
pass
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/private_computation/entity/infra_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import time
from dataclasses import dataclass, field
from enum import Enum
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/private_computation/entity/pc_infra_config_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from dataclasses import dataclass
from enum import Enum
from typing import Set
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/private_computation/entity/product_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from dataclasses import dataclass, field
from enum import Enum, IntEnum
from typing import Any, Dict, Optional
Expand Down
2 changes: 2 additions & 0 deletions fbpcs/private_computation/pc_attribution_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe


import asyncio

Expand Down
2 changes: 2 additions & 0 deletions fbpcs/private_computation/service/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe


class PrivateComputationServiceBaseException(Exception):
pass
Expand Down
Loading

0 comments on commit c8e3049

Please sign in to comment.