-
Notifications
You must be signed in to change notification settings - Fork 0
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
Support paths being passed to source configuration #1
base: master
Are you sure you want to change the base?
Conversation
Allow PR jobs to only be triggered when relevant parts of the repository have been changed.
Looks great and it's a small change :) Are you using it on your side ? Do you have a docker image with these changes to test it ? |
https://hub.docker.com/r/andyhume/pullrequest-resource/ It seems to work within the constraints set out above. ie. a single path value. However, there's likely an issue with statuses in the PRs. When there is one resource version per PR, it is simple to set a status on the PR and use that to determine old/new versions. When you can have multiple versions (one per path) of a PR, then the statuses need to be managed independently, one per path. And this has not been implemented yet. I think this could lead to race-conditions where one path sets a status of "pending" and then the |
Awesome. About this problem, I may be wrong, but the If there's Can you explain deeper your use case please ? |
Do you want to support |
@jtarchie Yup, I'll try and support the same paths/ignore paths matching. @Seraf The issue (I think) is with sending status updates back to Github. With paths support, there could be multiple parallel jobs triggered from one PR. The status of these builds need to be sent back to Github individually, because they are used by the resource to determine if a version/path should be built...
(in Without this, when checking for new versions the resource won't know what paths have already had jobs started. If one has started, then |
@ahume I may be wrong, but why not using the For example, I have in my single repo a directory A and a directory B. I create a pr-resource that listen on directory A, and will output the status in the context |
Also, to add some stuff, I tried to use a path array :
It gives me this error on the check:
|
Allow PR jobs to only be triggered when relevant
parts of the repository have been changed.
This is an investigation into how easy or otherwise this will be to support. I have some further things to investigate...
This should also support ignore_paths config, to match 1:1 with git-resource. Also is globbing behaviour correct? Does it support a list of different globs?
I've only added paths support to check. What (if anything) needs to be done for in or out?
NB: I haven't written a concourse resource before, nor do I write Ruby very much.