feat: add container and pod security context support for kubernetes workloads #3101
GitHub Actions / Test Results β Unit
succeeded
Apr 13, 2026 in 0s
246 passed, 0 failed and 3 skipped
β Β junit-unit.xml
249 tests were completed in 43s with 246 passed, 0 failed and 3 skipped.
| Test suite | Passed | Failed | Skipped | Time |
|---|---|---|---|---|
| pytest | 246β | 3βͺ | 43s |
β Β pytest
test.unit.configs.test_config_naming.TestConfigNaming
β
test_flow_completes
β
test_config_with_underscore
β
test_config_with_dash
β
test_config_with_mixed_naming
test.unit.configs.test_config_plain.TestConfigPlain
β
test_flow_completes
β
test_plain_string_without_parser
β
test_plain_list_with_parser
β
test_plain_tuple_with_parser
test.unit.inheritance.test_inheritance.TestComprehensiveLinear
β
test_flow_completes
β
test_all_parameters_accessible
β
test_all_configs_accessible
β
test_computation_with_configs
test.unit.inheritance.test_inheritance.TestMutatorWithBaseConfig
β
test_flow_completes
β
test_base_parameters_accessible
β
test_base_config_accessible
β
test_mutator_injects_from_base_config
β
test_computation_with_injected_params
test.unit.inheritance.test_inheritance.TestMutatorWithDerivedConfig
β
test_flow_completes
β
test_all_parameters_accessible
β
test_all_configs_accessible
β
test_base_mutator_uses_derived_config
β
test_computation_with_forward_injected_params
test.unit.inheritance.test_inheritance.TestComprehensiveDiamond
β
test_flow_completes
β
test_parameters_from_all_branches
β
test_configs_from_all_branches
β
test_mro_resolution
β
test_computation_across_branches
test.unit.inheritance.test_inheritance.TestComprehensiveMultiHierarchy
β
test_flow_completes
β
test_parameters_from_first_hierarchy
β
test_parameters_from_second_hierarchy
β
test_merge_point_parameters
β
test_configs_from_both_hierarchies
β
test_step_override_from_merge_point
β
test_cross_hierarchy_computation
β
test_mutator_from_first_hierarchy_executes
β
test_decorated_step_from_first_hierarchy
test.unit.inheritance.test_inheritance.TestInheritanceIntegration
β
test_all_flows_complete_successfully[comprehensive_linear_run]
β
test_all_flows_complete_successfully[mutator_with_base_config_run]
β
test_all_flows_complete_successfully[mutator_with_derived_config_run]
β
test_all_flows_complete_successfully[comprehensive_diamond_run]
β
test_all_flows_complete_successfully[comprehensive_multi_hierarchy_run]
β
test_expected_steps_present[comprehensive_linear_run-expected_steps0]
β
test_expected_steps_present[mutator_with_base_config_run-expected_steps1]
β
test_expected_steps_present[mutator_with_derived_config_run-expected_steps2]
β
test_expected_steps_present[comprehensive_diamond_run-expected_steps3]
β
test_expected_steps_present[comprehensive_multi_hierarchy_run-expected_steps4]
test.unit.localbatch.test_localbatch.TestBatchAPI
β
test_health
β
test_describe_queues_returns_default
β
test_default_queue_is_healthy
β
test_describe_compute_environments
β
test_register_job_definition
β
test_revision_increments_on_re_register
β
test_describe_job_definitions_by_name
β
test_submit_job_returns_id_and_name
β
test_job_reaches_terminal_state
β
test_describe_jobs_returns_correct_shape
β
test_terminate_job_transitions_to_failed
β
test_list_jobs_returns_summary_list
β
test_ecs_metadata_endpoint
test.unit.localbatch.test_localbatch.TestDockerExecution
β
test_successful_container
β
test_failed_container_reports_exit_code
β
test_inject_env_is_visible_inside_container
test.unit.localbatch.test_localbatch.TestMetaflowE2E
βͺ test_batch_step_artifacts_are_persisted
βͺ test_run_succeeds
βͺ test_all_steps_have_tasks
test.unit.test_argo_workflows_cli
β
test_sanitize_for_argo[a-valid-name-a-valid-name]
β
test_sanitize_for_argo[removing---@+_characters@_+-removing---characters]
β
test_sanitize_for_argo[numb3rs-4r3-0k-123-numb3rs-4r3-0k-123]
β
test_sanitize_for_argo[proj3ct.br4nch.flow_name-proj3ct.br4nch.flowname]
β
test_sanitize_for_argo[---1breaking1---.--2subdomain2--.-3rules3-----1breaking1.2subdomain2.3rules3----]
β
test_sanitize_for_argo[1brea---king1.2sub---domain2.-3ru-les3---1brea---king1.2sub---domain2.3ru-les3--]
β
test_sanitize_for_argo[project.branch-cut-short-.flowname-project.branch-cut-short.flowname]
β
test_sanitize_for_argo[test...name-test.name]
test.unit.test_aws_util
β
test_validate_aws_tag[test-value-False]
β
test_validate_aws_tag[test-with@chars+ - = ._/-value@with.chars-+ - = ._/-False]
β
test_validate_aws_tag[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-ok-False]
β
test_validate_aws_tag[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-ok-True]
β
test_validate_aws_tag[ok-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-False]
β
test_validate_aws_tag[ok-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-True]
β
test_validate_aws_tag[aWs:not-allowed-ok-True]
β
test_validate_aws_tag[ok-AWS:not-allowed-True]
β
test_validate_aws_tag[ok-aws:-middleaWs:not-allowed-False]
test.unit.test_compute_resource_attributes
β
test_compute_resource_attributes
β
test_compute_resource_attributes_string
test.unit.test_conda_decorator
β
test_decorator_custom_attributes
β
test_decorator_custom_attributes_with_backward_compatibility
test.unit.test_config_value
β
test_isinstance
β
test_todict
β
test_container_has_config_value
β
test_non_modifiable
β
test_json_dumpable
β
test_dict_like_behavior
test.unit.test_kubernetes
β
test_kubernetes_decorator_validate_kube_labels[None]
β
test_kubernetes_decorator_validate_kube_labels[labels1]
β
test_kubernetes_decorator_validate_kube_labels[labels2]
β
test_kubernetes_decorator_validate_kube_labels[labels3]
β
test_kubernetes_decorator_validate_kube_labels[labels4]
β
test_kubernetes_decorator_validate_kube_labels[labels5]
β
test_kubernetes_decorator_validate_kube_labels[labels6]
β
test_kubernetes_decorator_validate_kube_labels[labels7]
β
test_kubernetes_decorator_validate_kube_labels_fail[labels0]
β
test_kubernetes_decorator_validate_kube_labels_fail[labels1]
β
test_kubernetes_decorator_validate_kube_labels_fail[labels2]
β
test_kubernetes_decorator_validate_kube_labels_fail[labels3]
β
test_kubernetes_decorator_validate_kube_labels_fail[labels4]
β
test_kubernetes_decorator_validate_kube_labels_fail[labels5]
β
test_kubernetes_parse_keyvalue_list[items0-True]
β
test_kubernetes_parse_keyvalue_list[items1-True]
test.unit.test_kubernetes_security_context.TestContainerSecurityContext
β
test_security_context_applied_to_container
β
test_empty_security_context_not_applied
β
test_security_context_with_capabilities
test.unit.test_kubernetes_security_context.TestPodSecurityContext
β
test_pod_security_context_applied
β
test_empty_pod_security_context_not_applied
β
test_both_security_contexts_applied
test.unit.test_kubernetes_security_context.TestSecurityContextEnvVarDefaults
β
test_env_var_security_context_parsed
β
test_env_var_pod_security_context_parsed
β
test_decorator_overrides_env_var
test.unit.test_local_metadata_provider
β
test_deduce_run_id_from_meta_dir
test.unit.test_multicore_utils
β
test_parallel_map
test.unit.test_packaging_utils
β
test_walk_includes_files_when_hidden_dir_is_ancestor_of_root
β
test_walk_excludes_hidden_dirs_under_root
test.unit.test_pypi_decorator
β
test_decorator_custom_attributes
test.unit.test_pypi_parsers
β
test_yml_parser
β
test_requirements_parser
β
test_toml_parser
test.unit.test_remove_decorator
β
test_remove_decorator
test.unit.test_s3_storage
β
test_save_bytes_put_many_preserves_metadata_slot
β
test_save_bytes_sequential_preserves_metadata
test.unit.test_secrets_decorator.TestSecretsDecorator
β
test_constructors
β
test_missing_default_secrets_backend_type
β
test_secrets_provider_resolution
test.unit.test_secrets_decorator.TestEnvVarValidations
β
test_validate_env_vars
β
test_validate_env_vars_across_secrets
β
test_validate_env_vars_vs_existing_env
test.unit.test_system_context.TestExecutionPhase
β
test_enum_values
test.unit.test_system_context.TestPhaseFromCliArgs
β
test_none_args
β
test_empty_args
β
test_run_is_launch
β
test_resume_is_launch
β
test_step_is_task
β
test_init_is_task
β
test_spin_step_is_task
β
test_batch_is_trampoline
β
test_kubernetes_is_trampoline
β
test_deployment_is_launch
β
test_unknown_is_launch
test.unit.test_system_context.TestSystemContextPhase
β
test_phase_queries
β
test_trampoline_phase
β
test_task_phase
test.unit.test_system_context.TestSystemContextUpdate
β
test_initial_values_are_none
β
test_progressive_update
β
test_update_overwrites
β
test_update_invalid_key_raises
β
test_reset
test.unit.test_system_context.TestSystemContextInputPaths
β
test_input_paths_initial_none
β
test_input_paths_update
test.unit.test_system_context.TestDecoratorBaseClassProperties
β
test_system_ctx_property
β
test_step_decorator_has_property
β
test_flow_decorator_has_property
test.unit.test_system_context.TestCtxVariantDefaults
β
test_step_decorator_ctx_variants_are_none
β
test_flow_decorator_ctx_variant_is_none
test.unit.test_system_context.TestCtxVariantOverride
β
test_step_init_ctx_override
β
test_task_step_completed_ctx_override_success
β
test_task_step_completed_ctx_handles_exception
β
test_task_decorate_ctx_override
β
test_flow_init_ctx_override
β
test_legacy_hook_still_works
test.unit.test_system_context.TestSystemContextSharedState
β
test_publish_and_get
β
test_get_missing_namespace
β
test_get_missing_key
β
test_get_default
β
test_has_published_namespace
β
test_has_published_key
β
test_get_all_published
β
test_get_all_published_missing
β
test_overwrite_published
β
test_multiple_namespaces
test.unit.test_system_context.TestSystemContextStepIsolation
β
test_isolated_shared_state
test.unit.test_system_context.TestSystemContextRegistration
β
test_register_and_get_step_decorators
β
test_get_step_decorators_missing_step
β
test_reset_clears_shared_and_decorators
test.unit.test_tutorial_01_02_csv_parsing
β
test_playlist_csv_parsing
β
test_stats_csv_parsing
test.cmd.develop.test_stub_generator.TestStubGenerator
β
test_get_element_name_basic_types
β
test_get_element_name_class_objects
β
test_get_element_name_generic_alias_with_class_objects
β
test_get_element_name_nested_generics
β
test_get_element_name_callable_with_class_args
β
test_get_element_name_forward_references
β
test_get_element_name_string_annotations
β
test_get_element_name_self_reference
β
test_function_stub_generation
β
test_class_stub_generation
β
test_exploit_annotation_method
β
test_imports_and_typing_imports
β
test_safe_module_aliasing
β
test_get_element_name_union_types
β
test_get_element_name_tuple_types
β
test_get_element_name_tuple_with_ellipsis
β
test_get_element_name_callable_with_ellipsis
β
test_get_element_name_newtype
β
test_get_element_name_classvar
β
test_get_element_name_final
β
test_get_element_name_literal
β
test_get_element_name_deeply_nested
β
test_get_element_name_error_handling_none_module
β
test_get_element_name_error_handling_eval_failure
β
test_get_element_name_generic_origin_without_name
β
test_get_element_name_builtin_collections
β
test_get_element_name_type_with_special_chars
β
test_get_element_name_nested_classes
β
test_generator_state_isolation
β
test_get_element_name_nonetype_handling
test.cmd.develop.test_stub_generator
β
test_class_objects_in_generic_types_no_leakage
test.cmd.diff.test_metaflow_diff.TestMetaflowDiff
β
test_extract_code_package
β
test_perform_diff_output_false[True]
β
test_perform_diff_output_false[False]
β
test_perform_diff_output_true
β
test_run_op
β
test_op_patch
test.plugins.conda.test_conda_decorator_unit.TestCondaStepDecorator
β
test_default_attributes
β
test_user_defined_python
β
test_user_defined_packages
β
test_libraries_backward_compat
β
test_disabled_flag
β
test_packages_and_libraries_merged
test.plugins.conda.test_conda_environment_unit.TestManifestConcurrentWrites
β
test_concurrent_writes_no_corruption
test.plugins.conda.test_conda_environment_unit.TestCleanupCondaFile
β
test_cleanup_temp_file
β
test_cleanup_nonexistent_file_no_error
test.plugins.conda.test_parsers.TestRequirementsTxtParser
β
test_simple_package
β
test_multiple_packages
β
test_python_version
β
test_comments_and_blank_lines
β
test_inline_comments
β
test_extras
β
test_direct_reference
β
test_environment_markers_rejected
β
test_invalid_requirement
β
test_multiple_python_specs_rejected
β
test_empty_content
β
test_rye_lockfile_skip
test.plugins.conda.test_parsers.TestCondaEnvironmentYmlParser
β
test_simple_deps
β
test_python_version
β
test_no_version
β
test_comments_skipped
β
test_subsection_rejected
β
test_inline_comments
β
test_empty_deps
β
test_double_equals
Loading