Skip to content

Fix invocation of Alternatives task#166

Merged
adamzimmermann merged 2 commits into3.xfrom
cjfk-513-fix-broken-tugboat-refresh
Sep 27, 2023
Merged

Fix invocation of Alternatives task#166
adamzimmermann merged 2 commits into3.xfrom
cjfk-513-fix-broken-tugboat-refresh

Conversation

@apotek
Copy link
Contributor

@apotek apotek commented Sep 27, 2023

Last minute refactor didn't get tested adequately. Second argument to alternatives task must be array.

Currently tugboat deployments with latest Usher will break. This merge request fixes the issue I introduced.

Last minute refactor didn't get tested adequately.
Second argument to alternatives task must be array.
@apotek apotek self-assigned this Sep 27, 2023
@ghost
Copy link

ghost commented Sep 27, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@apotek
Copy link
Contributor Author

apotek commented Sep 27, 2023

@adamzimmermann Once this is approved are you able to cut a new release that I can then update JFK code to use?

@adamzimmermann
Copy link
Contributor

@apotek the 8.1 test isn't passing. Can you take a look at that?

@apotek
Copy link
Contributor Author

apotek commented Sep 27, 2023

@apotek the 8.1 test isn't passing. Can you take a look at that?

Yes, I saw that last night but have no idea how to fix. The error is

/home/runner/work/usher/usher/tests" does not exist.

But there is no usher/tests directory in the repo and I don't see any evidence of them having been there.

The CI call is:

      - name: PHP rector
        run: composer rector

Composer rector resolves to:

"vendor/bin/rector process --dry-run",

Nothing in there is creating any directories or files.

When I run it locally, it works

% lando composer rector
vendor/bin/rector process --dry-run
1/1 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

[OK] Rector is done!

@adamzimmermann
Copy link
Contributor

@markdorison I think we need to tag you in here to help us out.

@apotek
Copy link
Contributor Author

apotek commented Sep 27, 2023

I can't reproduce the error locally. I'm going to guess this was a temporary github error and I am re-running the job.

@apotek
Copy link
Contributor Author

apotek commented Sep 27, 2023

I can't reproduce the error locally. I'm going to guess this was a temporary github error and I am re-running the job.

Nope. It failed again.

So it looks like the command rector process --dry-run is unable to create some working directories it needs.

However, when I run it in my container, I don't see any directories being created. I do see some tmp files being made.

I have run all the CI commands locally in lando and they all work.

This PR introduces no changes to composer.json or composer.lock so the tooling should be the same. Does github "cache" its worker containers in some way? Could it be that one was initialized poorly and is there a way to start from scratch?

@adamzimmermann adamzimmermann merged commit 0503956 into 3.x Sep 27, 2023
@adamzimmermann adamzimmermann deleted the cjfk-513-fix-broken-tugboat-refresh branch September 27, 2023 14:01
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am very curious as to why this code didn't throw an error in my container but only in github's container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants