Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/orchestration/src/api/design.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ impl Design {
shutdown_events: &GrowableVec<ShutdownEvent>,
container: &mut GrowableVec<Program>,
) -> Result<(), CommonErrors> {
while let Some(program_data) = self.programs.pop() {
while let Some(program_data) = self.programs.remove(0) {
let mut builder = ProgramBuilder::new(program_data.0);
(program_data.1)(&mut self, &mut builder)?;
container.push(builder.build(shutdown_events, self.config())?);
Expand Down
2 changes: 1 addition & 1 deletion src/orchestration/src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ impl OrchestrationApi<_DesignTag> {
/// Returns an error if there is an issue while creating the programs, such as a design not being valid.
pub fn into_program_manager(mut self) -> Result<OrchProgramManager, CommonErrors> {
let mut programs = GrowableVec::default();
while let Some(design) = self.designs.pop() {
while let Some(design) = self.designs.remove(0) {
design.into_programs(&self.shutdown_events, &mut programs)?
}

Expand Down
5 changes: 4 additions & 1 deletion tests/test_cases/tests/orchestrator/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,13 @@ def test_valid(self, logs_nodes: LogContainer):


class TestGraphInSeparatePrograms(CommonGraphProgramConfig):
@pytest.fixture(scope="class")
def scenario_name(self) -> str:
return "orchestration.graphs.integration_graph"

def graph_name(self) -> str:
return "two_programs"

@pytest.mark.xfail(reason="https://github.com/qorix-group/inc_orchestrator_internal/issues/382")
def test_valid(self, logs_nodes: LogContainer):
n0 = logs_nodes.find_log(field="message", pattern="node0 was executed")
n1 = logs_nodes.find_log(field="message", pattern="node1 was executed")
Expand Down
Loading