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

Switch documentation site to sphinx-based solution #3078

Merged
merged 20 commits into from
Feb 20, 2025

Conversation

alecgrieser
Copy link
Collaborator

@alecgrieser alecgrieser commented Jan 30, 2025

This updates our website to use sphinx for its documentation site. This includes some new content around the SQL API, as well as our API Javadoc, which we will be publishing ourselves for the first time in a while. Publishing happens at the end of the release process (which I've been able to test by first applying these changes to a test repo of mine).

@foundationdb-ci
Copy link
Contributor

Result of fdb-record-layer-pr on Linux CentOS 7

  • Commit ID: a52982d
  • Duration 1:00:13
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci
Copy link
Contributor

Result of fdb-record-layer-pr on Linux CentOS 7

  • Commit ID: 7f84161
  • Duration 0:58:05
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@alecgrieser alecgrieser added the build improvement Improvement to the build system label Feb 18, 2025
@alecgrieser alecgrieser marked this pull request as ready for review February 18, 2025 19:34
@alecgrieser alecgrieser requested a review from hatyo February 19, 2025 16:22
- name: Create Merge PR if conflict
if: failure() && steps.push_updates.conclusion == 'failure'
if: success() && steps.push_updates.outcome == 'failure'
Copy link
Contributor

@hatyo hatyo Feb 19, 2025

Choose a reason for hiding this comment

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

Why is this a if success() instead of if failure()?

Copy link
Collaborator Author

@alecgrieser alecgrieser Feb 19, 2025

Choose a reason for hiding this comment

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

It's because of the continue-on-error change to the git push step above. With that set, then even if the actual push fails, the whole job is marked as successful. We want that behavior, because that way, we continue on to push the documentation in the main action. But we only want to do that if the rest of the build has succeeded or if we've either pushed successfully or created a PR successfully.

So the behavior we want on this line is "if we have been successful so far (i.e., not been cancelled and not had any step fail) but if the git push failed, then create a merge PR". FWIW, this is also why we have .outcome here instead of .conclusion. The .conclusion value reflects the success state after continue-on-error, whereas .outcome reflects the success state before continue-on-error. So, if the push was actually successful, we skip PR creation; if the push failed (but everything else succeeded), we create the PR

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Given that this was confusing, I've added an additional comment, if you want to take a look

Copy link
Contributor

@hatyo hatyo left a comment

Choose a reason for hiding this comment

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

LGTU, (done the review together with @arnaud-lacurie).

@alecgrieser alecgrieser merged commit 08a785b into FoundationDB:main Feb 20, 2025
4 checks passed
@alecgrieser alecgrieser deleted the sphinx-doc branch February 20, 2025 12:16
@alecgrieser alecgrieser added the documentation Documentation change label Feb 20, 2025
@alecgrieser alecgrieser changed the title Update to sphinx documentation Switch documentation site to sphinx-based solution Feb 20, 2025
alecgrieser pushed a commit that referenced this pull request Feb 21, 2025
As the title describes, it should be that [this
PR](#3078) did not
synchronize the modification of the root directory's README.

Co-authored-by: zhaohaiyuan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build improvement Improvement to the build system documentation Documentation change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants