Skip to content

fix: Split kwargs passed to gitlab client and graphql client#1151

Merged
amimas merged 6 commits intogitlabform:mainfrom
thomascizeron:fix/pass-kwargs-to-graphql
Jan 4, 2026
Merged

fix: Split kwargs passed to gitlab client and graphql client#1151
amimas merged 6 commits intogitlabform:mainfrom
thomascizeron:fix/pass-kwargs-to-graphql

Conversation

@thomascizeron
Copy link
Copy Markdown
Contributor

@thomascizeron thomascizeron commented Jan 2, 2026

Linked to #1140

Problem: Turns out python-gitlab dont pass kwargs to the graphql client, some kwargs would crash the init of the client.

Solution: Added explicit parameter whitelists in GitlabWrapper to pass parameters to the gitlab client or the graphql client

I have tested setting max_retries against a personnal gitlab instance and it worked. Dont know if an acceptance test would be useful here, let me know

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.31%. Comparing base (734a39f) to head (49c4c22).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1151      +/-   ##
==========================================
+ Coverage   87.14%   88.31%   +1.16%     
==========================================
  Files          73       73              
  Lines        3461     3465       +4     
==========================================
+ Hits         3016     3060      +44     
+ Misses        445      405      -40     
Flag Coverage Δ
integration 86.89% <100.00%> (+1.69%) ⬆️
unittests 37.89% <100.00%> (+0.07%) ⬆️
Files with missing lines Coverage Δ
gitlabform/gitlab/__init__.py 100.00% <100.00%> (ø)

... and 6 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@thomascizeron thomascizeron force-pushed the fix/pass-kwargs-to-graphql branch from 589ba7a to 0c43a70 Compare January 2, 2026 12:47
@thomascizeron thomascizeron had a problem deploying to Integrate Pull Request January 2, 2026 12:47 — with GitHub Actions Failure
@thomascizeron thomascizeron had a problem deploying to Integrate Pull Request January 2, 2026 12:47 — with GitHub Actions Failure
@thomascizeron thomascizeron temporarily deployed to Integrate Pull Request January 2, 2026 12:51 — with GitHub Actions Inactive
@thomascizeron thomascizeron temporarily deployed to Integrate Pull Request January 2, 2026 12:51 — with GitHub Actions Inactive
Copy link
Copy Markdown
Collaborator

@amimas amimas left a comment

Choose a reason for hiding this comment

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

Thank you so much for looking into this. I only have one concern about maintaining a hard coded list of attributes for an external library. This is probably okay as a last resort. Would you be able to explore other alternatives?

I'm not experienced enough to suggest required code changes but left a comment below with a suggestion. Please take a look and let me know your thoughts or if you could try it out.

Comment thread gitlabform/gitlab/__init__.py Outdated
@thomascizeron thomascizeron had a problem deploying to Integrate Pull Request January 3, 2026 21:08 — with GitHub Actions Failure
@thomascizeron thomascizeron had a problem deploying to Integrate Pull Request January 3, 2026 21:08 — with GitHub Actions Failure
@thomascizeron thomascizeron had a problem deploying to Integrate Pull Request January 3, 2026 22:18 — with GitHub Actions Failure
@thomascizeron thomascizeron had a problem deploying to Integrate Pull Request January 3, 2026 22:18 — with GitHub Actions Failure
@amimas amimas temporarily deployed to Integrate Pull Request January 4, 2026 17:19 — with GitHub Actions Inactive
@amimas amimas temporarily deployed to Integrate Pull Request January 4, 2026 17:19 — with GitHub Actions Inactive
Copy link
Copy Markdown
Collaborator

@amimas amimas left a comment

Choose a reason for hiding this comment

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

Looks good. Thank you again for the quick fix. I'll merge it now and will look into releasing this soon along with the original feature you've contributed.

@amimas amimas merged commit 4d7aa3d into gitlabform:main Jan 4, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants