-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add a Circle CI job to show a preview of the docs on PRs #23465
Conversation
✅ Hi, I am the SymPy bot (v167). I'm here to help you write a release notes entry. Please read the guide on how to write release notes.
Click here to see the pull request description that was parsed.
|
🟠Hi, I am the SymPy bot (v167). I've noticed that some of your commits add or delete files. Since this is sometimes done unintentionally, I wanted to alert you about it. This is an experimental feature of SymPy Bot. If you have any feedback on it, please comment at sympy/sympy-bot#75. The following commits add new files:
If these files were added/deleted on purpose, you can ignore this message. |
I pushed this branch to the main repo so I can test it before merging. |
Circle worked but I can't get the GitHub Actions build to appear (maybe I just need to wait?). Also the authors build is failing with some bug. Is it because it's on a "push" build instead of a PR build? |
Benchmark results from GitHub Actions Lower numbers are good, higher numbers are bad. A ratio less than 1 Significantly changed benchmark results (PR vs master) Significantly changed benchmark results (master vs previous release) before after ratio
[77f1d79c] [107a6793]
<sympy-1.10.1^0>
+ 99.7±0.9ms 180±0.8ms 1.81 sum.TimeSum.time_doit
Full benchmark results can be found as artifacts in GitHub Actions |
The page for the GitHub Actions says this might not work for PRs from forks. But it seems to work on every NumPy PR I checked, so I'm not sure if that's still true. If it doesn't work we can switch to Jason's idea. |
This is the reason that the benchmarks comment-on-pr workflow is separate from the main runtests workflow. Basically the runtests workflow doesn't have permissions to do things like comment on a PR. A separate workflow that runs with the master branch version of the workflow files can have these permissions. |
I see that the authors test is failing:
That ("unknown revision") suggests that the commit use in CI (in the runtests workflow) doesn't have two ancestors for the merge commit. Not sure why that might be... |
Because it's a "push" build. I pushed the branch directly up to the repo in addition to my fork so that I could test Circle without merging. You'll probably get the same error whenever you make a release branch. |
I wonder if that's why the GitHub Actions preview "build" isn't showing up. Where are those permissions set? |
I removed the merge logic from the authors script, and it seems to be passing. Was it adding some special GitHub user for the merge commit before? It doesn't seem to be doing that https://github.com/sympy/sympy/runs/6314266852?check_suite_focus=true#step:6:12 |
I can't figure out how to make the actual GitHub Actions step of this work. It isn't reporting the status with the link to the built page. Maybe it would only work once it is in master itself, although it seems to me it ought to at least work on the push build. |
The merge logic is needed for someone who has correctly set up their metadata in their commits (with |
You can't control the permissions that I am referring to. Anyone can create a fork and open a PR which modifies the workflow files. GA will then perform the actions described in the modified workflow files. Hence the workflows triggered by the PR need to have limited permissions. If you want a job to run with more permissions then you need to ensure that it runs with the unmodified workflow files. |
OK, I can't figure out how to get the GitHub Actions link to actually show up. I even tried making a PR within the same repo so there are no forks, and it didn't work there either #23469. @larsoner do you have any suggestions? I've more or less directly copied this from another repo where I know it works. The only thing I can think of is that it has to be merged into master first before it will work. I do already have this as a branch pushed to the main repo, so it seems to me that ought to be enough, but maybe it isn't. So we can try merging this. @oscarbenjamin are you OK with the mailmap_update change? If we can't get this working, I guess we can try using @moorepants's approach instead. |
Oh I didn't see your comments. I'll just revert the mailmap script change. You might need to do something about it for the release branch later. I'm also surprised it doesn't cause the master builds to fail. It sounds pretty likely that this just isn't working because it isn't in master. Since I can't think of anything else, I'm just going to merge this (after reverting the mailmap script change). If it doesn't work then, I'll keep hammering on it, or try Jason's approach if I can't figure it out. |
This reverts commit 5683935.
Yes because it operates on the |
Fixes #23460.
References to other Issues or PRs
Brief description of what is fixed or changed
Other comments
Release Notes
NO ENTRY