Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buildkit Dev plugin #464

Merged
merged 9 commits into from
May 26, 2020
Merged

Buildkit Dev plugin #464

merged 9 commits into from
May 26, 2020

Conversation

vitaliy-guliy
Copy link
Contributor

@vitaliy-guliy vitaliy-guliy commented May 11, 2020

Signed-off-by: Vitaliy Gulyy [email protected]

What does this PR do?

Adds Buildkit Dev plugin to build docker images inside running container.

Solves issue eclipse-che/che#16539

Need also to change a pattern for the plugin logo image eclipse-che/che#16894

Signed-off-by: Vitaliy Gulyy <[email protected]>
@che-bot
Copy link
Contributor

che-bot commented May 11, 2020

Happy path tests failed. Re-trigger by [ci-test] or [ci-test-happy-path]

@vitaliy-guliy
Copy link
Contributor Author

It looks like we need to change the regexp for the plugin icon verification (remove it at all)
At the moment, it's impossible to use the URI like this https://avatars3.githubusercontent.com/u/27259197

Checking plugin 'moby/buildkit/0.7.1'
	u'mountPath' is a required property
	u'mountPath' is a required property
	u'https://avatars3.githubusercontent.com/u/27259197' does not match u'[-._a-zA-Z0-9]+?\\.(?:svg|png)(?:\\?.*)?$'

Signed-off-by: Vitaliy Gulyy <[email protected]>
@che-bot
Copy link
Contributor

che-bot commented May 12, 2020

Happy path tests failed. Re-trigger by [ci-test] or [ci-test-happy-path]

@che-bot
Copy link
Contributor

che-bot commented May 12, 2020

Happy path tests failed. Re-trigger by [ci-test] or [ci-test-happy-path]

@che-bot
Copy link
Contributor

che-bot commented May 12, 2020

Happy path tests failed. Re-trigger by [ci-test] or [ci-test-happy-path]

1 similar comment
@che-bot
Copy link
Contributor

che-bot commented May 12, 2020

Happy path tests failed. Re-trigger by [ci-test] or [ci-test-happy-path]

@vitaliy-guliy
Copy link
Contributor Author

[ci-test]

@che-bot
Copy link
Contributor

che-bot commented May 12, 2020

Happy path tests failed. Re-trigger by [ci-test] or [ci-test-happy-path]

@che-bot
Copy link
Contributor

che-bot commented May 12, 2020

Happy path tests failed. Re-trigger by [ci-test] or [ci-test-happy-path]

@ericwill
Copy link
Contributor

Tests are broken for now so they will always fail when triggered.

@vitaliy-guliy
Copy link
Contributor Author

vitaliy-guliy commented May 13, 2020

Should we remove the pattern for plugin images or it's better to update it?

    "icon": {
      "type": "string",
      "pattern": "[-_a-zA-Z0-9]+?(?:\\.(?:svg|png))?(?:\\?.*)?$"
    },

It looks like it works, but I'm not sure do we need it at all.

@ericwill
Copy link
Contributor

Should we remove the pattern for plugin images or it's better to update it?

    "icon": {
      "type": "string",
      "pattern": "[-_a-zA-Z0-9]+?(?:\\.(?:svg|png))?(?:\\?.*)?$"
    },

It looks like it works, but I'm not sure do we need it at all.

We can discuss this change in the issue you filed for it, let's keep it for now in this PR.

@che-bot
Copy link
Contributor

che-bot commented May 13, 2020

Happy path tests failed. Re-trigger by [ci-test] or [ci-test-happy-path]

@vitaliy-guliy vitaliy-guliy marked this pull request as ready for review May 15, 2020 12:21
@vitaliy-guliy vitaliy-guliy requested a review from vinokurig as a code owner May 15, 2020 12:21
@rhopp
Copy link
Contributor

rhopp commented May 20, 2020

@vitaliy-guliy Tests should be fine now AFAIK... You just need to rebase on master.

"pattern": "[-._a-zA-Z0-9]+?\\.(?:svg|png)(?:\\?.*)?$"
"pattern": "[-_a-zA-Z0-9]+?(?:\\.(?:svg|png))?(?:\\?.*)?$"
Copy link
Contributor

@amisevsk amisevsk May 20, 2020

Choose a reason for hiding this comment

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

I know regexes are generally write-only, but I'm having trouble understanding the change here. If .svg or .png is optional, it should be removed -- this regex reduces to

[-_a-zA-Z0-9](?:\\?.*)?$

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right, we can omit checking for the extension here.

@che-bot
Copy link
Contributor

che-bot commented May 26, 2020

Happy path tests passed.

@che-bot
Copy link
Contributor

che-bot commented May 26, 2020

@vitaliy-guliy Happy Path PR check [build 56] failed.

Re-trigger by [ci-test] or [ci-test-happy-path].

Link URL
console https://ci.centos.org/job/devtools-che-plugin-registry-pr-check-happy-path/56/console
artifacts http://artifacts.ci.centos.org/devtools/che/che-plugin-registry-prcheck/56/

Depending on failure reason, the artifacts or deployment may not be present.

@vitaliy-guliy
Copy link
Contributor Author

[ci-test]

@che-bot
Copy link
Contributor

che-bot commented May 26, 2020

Happy path tests passed.

@vitaliy-guliy
Copy link
Contributor Author

[ci-test-happy-path]

@che-bot
Copy link
Contributor

che-bot commented May 26, 2020

Happy path tests passed.

@ericwill ericwill merged commit 0cae025 into eclipse-che:master May 26, 2020
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.

5 participants