cumulusci-plus 5.0.11__py3-none-any.whl → 5.0.13__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of cumulusci-plus might be problematic. Click here for more details.

cumulusci/__about__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "5.0.11"
1
+ __version__ = "5.0.13"
cumulusci/cli/cci.py CHANGED
@@ -1,6 +1,5 @@
1
1
  import code
2
2
  import contextlib
3
- import os
4
3
  import pdb
5
4
  import runpy
6
5
  import signal
@@ -80,33 +79,8 @@ def _cleanup_on_signal(signum):
80
79
  except Exception as e:
81
80
  console.print(f"[red]Error during cleanup: {e}[/red]")
82
81
 
83
- # Terminate child processes in the process group
84
- try:
85
- console.print("[yellow]Terminating child processes...[/yellow]")
86
-
87
- # Temporarily ignore the signal to prevent recursion
88
- old_handler = signal.signal(signum, signal.SIG_IGN)
89
-
90
- try:
91
- # Only use process group termination on Unix systems
92
- if hasattr(os, "getpgrp") and hasattr(os, "killpg"):
93
- pgrp = os.getpgrp()
94
- # Send signal to all processes in the group except ourselves
95
- os.killpg(pgrp, signum)
96
- else:
97
- # On Windows, we can't use process groups, so just log the attempt
98
- console.print(
99
- "[yellow]Process group termination not supported on this platform[/yellow]"
100
- )
101
- finally:
102
- # Restore the original signal handler
103
- signal.signal(signum, old_handler)
104
-
105
- except ProcessLookupError:
106
- # Process group may not exist or may already be terminated
107
- pass
108
- except Exception as e:
109
- console.print(f"[red]Warning: Error terminating child processes: {e}[/red]")
82
+ # The parent process's trap is now responsible for killing the process group.
83
+ # This process will exit gracefully after receiving the signal from the parent.
110
84
 
111
85
  # Exit with appropriate failure code
112
86
  exit_code = 143 if signum == signal.SIGTERM else 130 # Standard exit codes
@@ -130,15 +104,8 @@ def main(args=None):
130
104
  """
131
105
  global _exit_stack
132
106
 
133
- # Create a new process group so we can terminate all child processes
134
- # when we receive a termination signal
135
- try:
136
- if hasattr(os, "setpgrp"):
137
- # On Unix systems, create a new process group
138
- os.setpgrp()
139
- except Exception:
140
- # On Windows or if setpgrp fails, continue without process group
141
- pass
107
+ # By not creating a new process group, cci remains in the parent's group.
108
+ # This allows the parent's trap command to correctly terminate cci and its children.
142
109
 
143
110
  # Set up signal handlers for graceful termination
144
111
  signal.signal(signal.SIGTERM, _signal_handler)
@@ -10,7 +10,12 @@ from cumulusci.core.config import OrgConfig
10
10
  from cumulusci.core.config.project_config import BaseProjectConfig
11
11
  from cumulusci.core.dependencies.utils import TaskContext
12
12
  from cumulusci.core.exceptions import DependencyResolutionError, VcsNotFoundError
13
- from cumulusci.core.flowrunner import FlowCallback, FlowCoordinator
13
+ from cumulusci.core.flowrunner import (
14
+ FlowCallback,
15
+ FlowCoordinator,
16
+ StepResult,
17
+ StepVersion,
18
+ )
14
19
  from cumulusci.core.sfdx import (
15
20
  SourceFormat,
16
21
  convert_sfdx_source,
@@ -662,8 +667,11 @@ class UnmanagedVcsDependencyFlow(UnmanagedStaticDependency, ABC):
662
667
  flow_config = project_config.get_flow(self.flow_name)
663
668
  flow_config.name = self.flow_name
664
669
 
670
+ managed = not self._get_unmanaged(org)
671
+
665
672
  pre_post_options = {
666
- "unmanaged": self._get_unmanaged(org),
673
+ "unmanaged": not managed,
674
+ "managed": managed,
667
675
  "namespace_inject": self.namespace_inject,
668
676
  "namespace_strip": self.namespace_strip,
669
677
  }
@@ -673,14 +681,25 @@ class UnmanagedVcsDependencyFlow(UnmanagedStaticDependency, ABC):
673
681
  flow_config,
674
682
  name=flow_config.name,
675
683
  options={
676
- "flow": pre_post_options,
677
684
  "deploy_pre": pre_post_options,
678
685
  "deploy_post": pre_post_options,
686
+ "update_admin_profile": pre_post_options,
679
687
  },
680
688
  skip=None,
681
689
  callbacks=self.callback_class(),
682
690
  )
683
691
 
692
+ coordinator.results.append(
693
+ StepResult(
694
+ step_num=StepVersion("0.0.0"),
695
+ task_name="flow",
696
+ path=f"{self.flow_name}.flow",
697
+ result=None,
698
+ return_values=pre_post_options,
699
+ exception=None,
700
+ )
701
+ )
702
+
684
703
  start_time = datetime.now()
685
704
  coordinator.run(org)
686
705
  duration = datetime.now() - start_time
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cumulusci-plus
3
- Version: 5.0.11
3
+ Version: 5.0.13
4
4
  Summary: Build and release tools for Salesforce developers
5
5
  Project-URL: Homepage, https://github.com/jorgesolebur/CumulusCI
6
6
  Project-URL: Changelog, https://cumulusci.readthedocs.io/en/stable/history.html
@@ -127,7 +127,7 @@ license](https://github.com/SFDO-Tooling/CumulusCI/blob/main/LICENSE)
127
127
  and is not covered by the Salesforce Master Subscription Agreement.
128
128
 
129
129
  <!-- Changelog -->
130
- ## v5.0.11 (2025-07-26)
130
+ ## v5.0.13 (2025-07-28)
131
131
 
132
132
  <!-- Release notes generated using configuration in .github/release.yml at main -->
133
133
 
@@ -135,7 +135,6 @@ and is not covered by the Salesforce Master Subscription Agreement.
135
135
 
136
136
  ### Changes
137
137
 
138
- - Add default context for VCS create status. by [@rupeshjSFDC](https://github.com/rupeshjSFDC) in [#45](https://github.com/jorgesolebur/CumulusCI/pull/45)
139
- - All pre executions are always deployed unmanaged. by [@rupeshjSFDC](https://github.com/rupeshjSFDC) in [#47](https://github.com/jorgesolebur/CumulusCI/pull/47)
138
+ - Feature/dependency flow update admin profile by [@rupeshjSFDC](https://github.com/rupeshjSFDC) in [#51](https://github.com/jorgesolebur/CumulusCI/pull/51)
140
139
 
141
- **Full Changelog**: https://github.com/jorgesolebur/CumulusCI/compare/v5.0.10...v5.0.11
140
+ **Full Changelog**: https://github.com/jorgesolebur/CumulusCI/compare/v5.0.12...v5.0.13
@@ -1,10 +1,10 @@
1
- cumulusci/__about__.py,sha256=nisK3LG_BAeQmrCARwL3dyx7vnTHAaaefYouo1HDd9s,23
1
+ cumulusci/__about__.py,sha256=VgaqnJKcHE2kPMo2iVggR6FMSCMWTkCvZlTuQeKITE0,23
2
2
  cumulusci/__init__.py,sha256=jdanFQ_i8vbdO7Eltsf4pOfvV4mwa_Osyc4gxWKJ8ng,764
3
3
  cumulusci/__main__.py,sha256=kgRH-n5AJrH_daCK_EJwH7azAUxdXEmpi-r-dPGMR6Y,43
4
4
  cumulusci/conftest.py,sha256=AIL98BDwNAQtdo8YFmLKwav0tmrQ5dpbw1cX2FyGouQ,5108
5
5
  cumulusci/cumulusci.yml,sha256=qJscpADSMzcxNYYapfbsZO2LXqjjyv7QLs62Pn2qALI,72445
6
6
  cumulusci/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
- cumulusci/cli/cci.py,sha256=nho1RrdyCWsOKpMwwzoDVA7dOpNEHpb4jx0JeKkmOIE,11714
7
+ cumulusci/cli/cci.py,sha256=ZSebArvNvIcHdoUQiNXhCpJroTn9MXE8xiBW3h1WLoQ,10548
8
8
  cumulusci/cli/error.py,sha256=znj0YN8D2Grozm1u7mZAsJlmmdGebbuy0c1ofQluL4Q,4410
9
9
  cumulusci/cli/flow.py,sha256=rN_9WL2Z6dcx-oRngChIgei3E5Qmg3XVzk5ND1o0i3s,6171
10
10
  cumulusci/cli/logger.py,sha256=bpzSD0Bm0BAwdNbVR6yZXMREh2vm7jOytZevEaNoVR4,2267
@@ -65,7 +65,7 @@ cumulusci/core/config/tests/test_config.py,sha256=ZtIQSIzQWebw7mYXgehnp3CvoatC_t
65
65
  cumulusci/core/config/tests/test_config_expensive.py,sha256=__3JEuoAQ8s5njTcbyZlpXHr0jR0Qtne96xyF7fzqjQ,30137
66
66
  cumulusci/core/config/tests/test_config_util.py,sha256=X1SY9PIhLoQuC8duBKgs804aghN3n12DhqiC_f6jSmM,3177
67
67
  cumulusci/core/dependencies/__init__.py,sha256=Txf4VCrRW-aREKHqzK3ZyauQMsgtCXjiLkQzpMQT0kI,1533
68
- cumulusci/core/dependencies/base.py,sha256=iLyEFVBMR7Ukk08wgs5v186mSMJuciR6JZaAxTtZ34A,22969
68
+ cumulusci/core/dependencies/base.py,sha256=I2-UrkYdpMlnoT21iSlSuDdmKjDoK-hCxaviwUFNgSE,23420
69
69
  cumulusci/core/dependencies/dependencies.py,sha256=74KjrCRn7AjKPBSGOm4pU34eJd8GSp1wNs7EFIC0wBE,8689
70
70
  cumulusci/core/dependencies/github.py,sha256=ozpRc5ADJsRDD5C_T-TLFygnBDE5Y9_03ZLCtZ-qr98,5897
71
71
  cumulusci/core/dependencies/github_resolvers.py,sha256=Em8p41Q-npoKv1ZAYNxXVrluQmYitzVfLLXlmln-MGw,9196
@@ -736,9 +736,9 @@ cumulusci/vcs/tests/dummy_service.py,sha256=RltOUpMIhSDNrfxk0LhLqlH4ppC0sK6NC2cO
736
736
  cumulusci/vcs/tests/test_vcs_base.py,sha256=9mp6uZ3lTxY4onjUNCucp9N9aB3UylKS7_2Zu_hdAZw,24331
737
737
  cumulusci/vcs/tests/test_vcs_bootstrap.py,sha256=N0NA48-rGNIIjY3Z7PtVnNwHObSlEGDk2K55TQGI8g4,27954
738
738
  cumulusci/vcs/utils/__init__.py,sha256=py4fEcHM7Vd0M0XWznOlywxaeCtG3nEVGmELmEKVGU8,869
739
- cumulusci_plus-5.0.11.dist-info/METADATA,sha256=jkSflshQIngcoioewAh3n7fUBZVcMXUITWL_ALC7ucg,5925
740
- cumulusci_plus-5.0.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
741
- cumulusci_plus-5.0.11.dist-info/entry_points.txt,sha256=nTtu04b9iLXhzADcTrb5PwmdXE6e2MTUAMh9OK6Z2pg,80
742
- cumulusci_plus-5.0.11.dist-info/licenses/AUTHORS.rst,sha256=PvewjKImdKPhhJ6xR2EEZ4T7GbpY2ZeAeyWm2aLtiMQ,676
743
- cumulusci_plus-5.0.11.dist-info/licenses/LICENSE,sha256=NFsF_s7RVXk2dU6tmRAN8wF45pnD98VZ5IwqOsyBcaU,1499
744
- cumulusci_plus-5.0.11.dist-info/RECORD,,
739
+ cumulusci_plus-5.0.13.dist-info/METADATA,sha256=G9H877Vr0UFQetOSYqnJLoDlOmYC7xZQRF2eLqZnZ70,5765
740
+ cumulusci_plus-5.0.13.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
741
+ cumulusci_plus-5.0.13.dist-info/entry_points.txt,sha256=nTtu04b9iLXhzADcTrb5PwmdXE6e2MTUAMh9OK6Z2pg,80
742
+ cumulusci_plus-5.0.13.dist-info/licenses/AUTHORS.rst,sha256=PvewjKImdKPhhJ6xR2EEZ4T7GbpY2ZeAeyWm2aLtiMQ,676
743
+ cumulusci_plus-5.0.13.dist-info/licenses/LICENSE,sha256=NFsF_s7RVXk2dU6tmRAN8wF45pnD98VZ5IwqOsyBcaU,1499
744
+ cumulusci_plus-5.0.13.dist-info/RECORD,,