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

Slow update call #447

Open
drandell opened this issue May 28, 2024 · 0 comments
Open

Slow update call #447

drandell opened this issue May 28, 2024 · 0 comments
Labels

Comments

@drandell
Copy link

What happened?

Note this isn't a bug more asking for advice to see if there's anything obvious that i'm missing (the templates are only bug / idea).

The calls to update using mark in my work environment is taking a considerable amount of time. Per file its 6-8 minutes to update, i'm wondering is that expected? Is there something obvious that i'm doing wrong? Or is this something that would be based on the networking / installation of confluence?

Further Information (please complete the following information)

  • Mark Version (mark --version): 9.12.0
  • Mark Parameters: None, use base-url in my config.toml
  • Confluence Hosting: Self-hosted in Cloud
  • Confluence Version: 8.5.6
  • Environment specific Information: running via gitlab ci

Logs or other output

variables:
  MARK_CI: "true"
  MARK_SPACE: TESTCI
 
// stage
script:
    - cat $MARK_CONFIG > config.toml
    - export files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA 'wiki/*.md')
    - echo $files
    - |
      for file in $files; do
        echo "> Sync $file";
        mark -c config.toml -f $file || exit 1;
        echo;
      done

Output

echo $files
wiki/sync/1_test_sync.md
$ for file in $files; do # collapsed multi-line command
> Sync wiki/sync/1_test_sync.md
2024-05-28 09:32:11 INFO  processing wiki/sync/1_test_sync.md
2024-05-28 09:34:43 INFO  page will be stored under path: Test CI Engineering > Test Sync
2024-05-28 09:37:59. INFO  page successfully updated: [CONF_URL]/display/TESTCI/Test+Sync
/display/TESTCI/Test+Sync

FIle being sync'd:

<!-- Title: Test Sync -->

# Introduction

This is my test markdown two.

Additional context

Add any other context about the problem here.

@drandell drandell added the bug label May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant