Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

Connected clients not executing tests again even after resetting the job #223

Closed
@csharbel

Description

@csharbel

Hi

Was under the impression that existing clients connected to the swarm will start running a job that is reset. But found that this happens only for new clients. So if you refresh your browser it works.

If my understanding is not correct, my original requirement is this. We wanted to integrate testswarm with jenkins. So we have all supported clients always connected to the swarm. We want to reset a job in case of any code changes and all the clients should start running the test again.

Added the following lines of code into testswarm/inc/actions/WipeJobAction.php to clear all data for the job from runresults also. That is after line 106 as the second query for the ( $wipeType === 'reset' ) condition.

$db->query(str_queryf(
                        'DELETE
                        FROM runresults
                        WHERE run_id = %u;',
                        $runRow->id
));

Please do correct me if I am wrong. Do take this as an issue and fix otherwise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions