-
Notifications
You must be signed in to change notification settings - Fork 28
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
Why do new commits to a branch result in 2 shippable jobs in different "contexts"? #5165
Comments
I believe this comment answers the question about why there are 2 jobs when I push new commits to a PR: #3938 (comment) However, I am still a bit confused why the ENV for the "development" context job doesn't include the new environment variables I added to shippable.yml in my branch. |
The pull request build for the pull request to the base branch would normally run with a merged shippable.yml file if shippable.yml was updated in pull request. However, there are a few cases where it can't be determined that the file was updated. Did your pull request previously contain a few hundred more files? Too many files for the GitHub API to return is the most common reason. And if there are multiple YML files with different names, such as |
@a-murphy Thanks for the response! In this case, the pull request only changed 11 files, and there's only one file that matches What seems to be happeningThe PR-merged-to-base-branch builds don't have the secure environment available, as a security precaution. From http://docs.shippable.com/ci/env-vars/#security-considerations
This makes sense. However, it's even happening for PRs based on branches from the same repository. Seems like there may be a bug in the logic for avoiding decrypting secure variables? Example
The 2nd job fails due to trying to use the secure environment variable. You can see in the Shippable job header that the 2nd job is missing "#SHIPPABLE_SECURE_VARIABLE" from the "ENV" section, which is present in the first job. This PR is from a branch on the repository, not a branch on a fork, so I'd expect it to work. Thanks! |
i had this commented out in #277 because of a shippable bug Shippable/support#5165 now that the main PR is merged, let's try this again
i had this commented out in #277 because of a shippable bug Shippable/support#5165 now that the main PR is merged, let's try this again
Problem
My team is using Shippable for CI on our Github repo. Dashboard: https://app.shippable.com/github/gro-intelligence/api-client/dashboard/history
I noticed that when I push changes to a feature branch as part of a pull request, Shippable launches 2 jobs: one with "context" of my feature branch, and the other with the context of "development" (our main branch, which the PR was merging into).
The job with the feature branch "context" succeeded (job 3937 on branch jli-poetry2).
But the job with the development branch context failed (job 3938), due to missing an encrypted/secure environment variable that I added to
shippable.yml
in my feature branch.Questions
More details
shippable.yml
where i added the new environment variable: diff on githubThe text was updated successfully, but these errors were encountered: